hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2024.04.27. 08:58



Jelenlévő felhasználók

Jelenleg 521 felhasználó van jelen :: 3 regisztrált, 0 rejtett és 518 vendég

A legtöbb felhasználó (1565 fő) 2020.11.21. 11:26-kor tartózkodott itt.

Regisztrált felhasználók: Bing [Bot], Google [Bot], Majestic-12 [Bot] az elmúlt 5 percben aktív felhasználók alapján

Utoljára aktív
Ahhoz hogy lásd ki volt utoljára aktív, be kell jelentkezned.



Az oldal teljeskörű
használatához regisztrálj.

Regisztráció

Kereső


Új téma nyitása  Hozzászólás a témához  [ 9 hozzászólás ] 
Szerző Üzenet
 Hozzászólás témája: Miért nem műkődik ?
HozzászólásElküldve: 2023.08.21. 15:55 
Offline
Jómunkásember

Csatlakozott: 2020.06.14. 17:59
Hozzászólások: 368
Megköszönt másnak: 64 alkalommal
Megköszönték neki: 10 alkalommal
Sziasztok!

Nincs ölésem de már elérhető a skin ? miért van ?

Segítséget köszönöm előre is!

Kép


  1. public m4a1_menu(id) {
  2.    
  3.     new sText[256], iSize = sizeof(WeaponM4A1);
  4.    
  5.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wM4A1 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][M4A1]);
  6.     new iMenu = menu_create(sText, "m4a1_handler");
  7.    
  8.     for(new i; i < iSize; i++){
  9.         formatex(sText, charsmax(sText), WeaponM4A1[i][Points] <= g_uPoints[id][M4A1] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponM4A1[i][GunName], g_uPoints[id][M4A1], WeaponM4A1[i][Points])
  10.         menu_additem(iMenu, sText);
  11.     }
  12.    
  13.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  14.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  15.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  16.    
  17.     menu_display(id, iMenu, 0);
  18. }
  19.  
  20. public m4a1_handler(id, iMenu, item) {
  21.     if( item == MENU_EXIT ) {
  22.         menu_destroy(iMenu);
  23.         return PLUGIN_HANDLED;
  24.     }
  25.    
  26.     if(WeaponM4A1[item][Points] <= g_uPoints[id][M4A1]) {
  27.         g_SelectedGun[id][M4A1] = item;
  28.         } else {
  29.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  30.     }
  31.    
  32.     menu_destroy(iMenu);
  33.     return PLUGIN_HANDLED;


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Miért nem műkődik ?
HozzászólásElküldve: 2023.08.21. 18:45 
Offline
Őstag
Avatar

Csatlakozott: 2017.08.21. 15:51
Hozzászólások: 1109
Megköszönt másnak: 36 alkalommal
Megköszönték neki: 195 alkalommal
Az ifnél nem lehet, hogy másik irányba kellene néznie a kacsacsőrnek?


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Miért nem műkődik ?
HozzászólásElküldve: 2023.08.22. 22:27 
Offline
Tud valamit
Avatar

Csatlakozott: 2020.05.14. 11:32
Hozzászólások: 142
Megköszönt másnak: 13 alkalommal
Megköszönték neki: 56 alkalommal
.

_________________
[ExTasY] Furien Hero [CRAFT SYSTEM]
213.181.206.21:27140

[ExTasY] Super Deathmatch [SENTRY GUN]
213.181.206.27:27069

[ExTasY] Zombie Mutation [ZOMBIE NPC]
213.181.206.28:27057
Facebook
Discord

Kép


A hozzászólást 1 alkalommal szerkesztették, utoljára DexoN 2023.08.22. 23:57-kor.

Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Miért nem műkődik ?
HozzászólásElküldve: 2023.08.22. 23:57 
Offline
Tud valamit
Avatar

Csatlakozott: 2020.05.14. 11:32
Hozzászólások: 142
Megköszönt másnak: 13 alkalommal
Megköszönték neki: 56 alkalommal
Ahogy Pika írta, csak megcsináltam neked:
Pika írta:
Az ifnél nem lehet, hogy másik irányba kellene néznie a kacsacsőrnek?


  1. public m4a1_menu(id) {
  2.    
  3.     new sText[256], iSize = sizeof(WeaponM4A1);
  4.    
  5.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wM4A1 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][M4A1]);
  6.     new iMenu = menu_create(sText, "m4a1_handler");
  7.    
  8.     for(new i; i < iSize; i++){
  9.         formatex(sText, charsmax(sText), WeaponM4A1[i][Points] <= g_uPoints[id][M4A1] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponM4A1[i][GunName], g_uPoints[id][M4A1], WeaponM4A1[i][Points])
  10.         menu_additem(iMenu, sText);
  11.     }
  12.    
  13.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  14.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  15.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  16.    
  17.     menu_display(id, iMenu, 0);
  18. }
  19.  
  20. public m4a1_handler(id, iMenu, item) {
  21.     if( item == MENU_EXIT ) {
  22.         menu_destroy(iMenu);
  23.         return PLUGIN_HANDLED;
  24.     }
  25.    
  26.     if(WeaponM4A1[item][Points] >= g_uPoints[id][M4A1]) {
  27.         g_SelectedGun[id][M4A1] = item;
  28.         } else {
  29.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  30.     }
  31.    
  32.     menu_destroy(iMenu);
  33.     return PLUGIN_HANDLED;


A menüben lévő problémához (m4a1 | 0/0):
Több kódrészre van szükségünk, így nem tudunk segíteni, nem látjuk hogy mit csinálsz a változókkal / hogyan hozod létre őket.

_________________
[ExTasY] Furien Hero [CRAFT SYSTEM]
213.181.206.21:27140

[ExTasY] Super Deathmatch [SENTRY GUN]
213.181.206.27:27069

[ExTasY] Zombie Mutation [ZOMBIE NPC]
213.181.206.28:27057
Facebook
Discord

Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Miért nem műkődik ?
HozzászólásElküldve: 2023.08.23. 08:15 
Offline
Jómunkásember

Csatlakozott: 2020.06.14. 17:59
Hozzászólások: 368
Megköszönt másnak: 64 alkalommal
Megköszönték neki: 10 alkalommal
DexoN írta:
Ahogy Pika írta, csak megcsináltam neked:
Pika írta:
Az ifnél nem lehet, hogy másik irányba kellene néznie a kacsacsőrnek?


  1. public m4a1_menu(id) {
  2.    
  3.     new sText[256], iSize = sizeof(WeaponM4A1);
  4.    
  5.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wM4A1 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][M4A1]);
  6.     new iMenu = menu_create(sText, "m4a1_handler");
  7.    
  8.     for(new i; i < iSize; i++){
  9.         formatex(sText, charsmax(sText), WeaponM4A1[i][Points] <= g_uPoints[id][M4A1] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponM4A1[i][GunName], g_uPoints[id][M4A1], WeaponM4A1[i][Points])
  10.         menu_additem(iMenu, sText);
  11.     }
  12.    
  13.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  14.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  15.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  16.    
  17.     menu_display(id, iMenu, 0);
  18. }
  19.  
  20. public m4a1_handler(id, iMenu, item) {
  21.     if( item == MENU_EXIT ) {
  22.         menu_destroy(iMenu);
  23.         return PLUGIN_HANDLED;
  24.     }
  25.    
  26.     if(WeaponM4A1[item][Points] >= g_uPoints[id][M4A1]) {
  27.         g_SelectedGun[id][M4A1] = item;
  28.         } else {
  29.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  30.     }
  31.    
  32.     menu_destroy(iMenu);
  33.     return PLUGIN_HANDLED;


A menüben lévő problémához (m4a1 | 0/0):
Több kódrészre van szükségünk, így nem tudunk segíteni, nem látjuk hogy mit csinálsz a változókkal / hogyan hozod létre őket.




  1. public m4a1_menu(id) {
  2.        
  3.         new sText[256], iSize = sizeof(WeaponM4A1);
  4.        
  5.         format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wM4A1 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][M4A1]);
  6.         new iMenu = menu_create(sText, "m4a1_handler");
  7.        
  8.         for(new i; i < iSize; i++){
  9.             formatex(sText, charsmax(sText), WeaponM4A1[i][Points] <= g_uPoints[id][M4A1] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponM4A1[i][GunName], g_uPoints[id][M4A1], WeaponM4A1[i][Points])
  10.             menu_additem(iMenu, sText);
  11.         }
  12.        
  13.         menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  14.         menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  15.         menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  16.        
  17.         menu_display(id, iMenu, 0);
  18.     }
  19.      
  20.     public m4a1_handler(id, iMenu, item) {
  21.         if( item == MENU_EXIT ) {
  22.             menu_destroy(iMenu);
  23.             return PLUGIN_HANDLED;
  24.         }
  25.        
  26.         if(WeaponM4A1[item][Points] >= g_uPoints[id][M4A1]) {
  27.             g_SelectedGun[id][M4A1] = item;
  28.             } else {
  29.             client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  30.         }
  31.        
  32.         menu_destroy(iMenu);
  33.         return PLUGIN_HANDLED;
  34. }
  35. public ak47_menu(id) {
  36.    
  37.     new sText[256], iSize = sizeof(WeaponAK47);
  38.    
  39.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wAK47 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][AK47]);
  40.     new iMenu = menu_create(sText, "ak47_handler");
  41.    
  42.     for(new i; i < iSize; i++){
  43.         formatex(sText, charsmax(sText), WeaponAK47[i][Points] <= g_uPoints[id][AK47] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponAK47[i][GunName], g_uPoints[id][AK47], WeaponAK47[i][Points])
  44.         menu_additem(iMenu, sText);
  45.     }
  46.    
  47.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  48.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  49.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  50.    
  51.     menu_display(id, iMenu, 0);
  52. }
  53.  
  54. public ak47_handler(id, iMenu, item) {
  55.     if( item == MENU_EXIT ) {
  56.         menu_destroy(iMenu);
  57.         return PLUGIN_HANDLED;
  58.     }
  59.    
  60.     if(WeaponAK47[item][Points] <= g_uPoints[id][AK47]) {
  61.         g_SelectedGun[id][AK47] = item;
  62.         } else {
  63.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  64.     }
  65.    
  66.     menu_destroy(iMenu);
  67.     return PLUGIN_HANDLED;
  68.    
  69. }
  70. public awp_menu(id) {
  71.    
  72.     new sText[256], iSize = sizeof(WeaponAWP);
  73.    
  74.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wAWP Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][AWP]);
  75.     new iMenu = menu_create(sText, "awp_handler");
  76.    
  77.     for(new i; i < iSize; i++){
  78.         formatex(sText, charsmax(sText), WeaponAWP[i][Points] <= g_uPoints[id][AWP] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponAWP[i][GunName], g_uPoints[id][AWP], WeaponAWP[i][Points])
  79.         menu_additem(iMenu, sText);
  80.     }
  81.    
  82.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  83.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  84.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  85.    
  86.     menu_display(id, iMenu, 0);
  87. }
  88. public awp_handler(id, iMenu, item) {
  89.     if( item == MENU_EXIT ) {
  90.         menu_destroy(iMenu);
  91.         return PLUGIN_HANDLED;
  92.     }
  93.    
  94.     if(WeaponAWP[item][Points] <= g_uPoints[id][AWP]) {
  95.         g_SelectedGun[id][AWP] = item;
  96.         } else {
  97.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  98.     }
  99.    
  100.     menu_destroy(iMenu);
  101.     return PLUGIN_HANDLED
  102. }
  103. public scout_menu(id) {
  104.    
  105.     new sText[256], iSize = sizeof(WeaponSCOUT);
  106.    
  107.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wSCOUT Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][SCOUT]);
  108.     new iMenu = menu_create(sText, "scout_handler");
  109.    
  110.     for(new i; i < iSize; i++){
  111.         formatex(sText, charsmax(sText), WeaponSCOUT[i][Points] <= g_uPoints[id][SCOUT] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponSCOUT[i][GunName], g_uPoints[id][SCOUT], WeaponSCOUT[i][Points])
  112.         menu_additem(iMenu, sText);
  113.     }
  114.    
  115.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  116.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  117.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  118.    
  119.     menu_display(id, iMenu, 0);
  120. }
  121.  
  122. public scout_handler(id, iMenu, item) {
  123.     if( item == MENU_EXIT ) {
  124.         menu_destroy(iMenu);
  125.         return PLUGIN_HANDLED;
  126.     }
  127.    
  128.     if(WeaponSCOUT[item][Points] <= g_uPoints[id][SCOUT]) {
  129.         g_SelectedGun[id][SCOUT] = item;
  130.         } else {
  131.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  132.     }
  133.    
  134.     menu_destroy(iMenu);
  135.     return PLUGIN_HANDLED;
  136. }
  137. public famas_menu(id) {
  138.    
  139.     new sText[256], iSize = sizeof(WeaponFAMAS);
  140.    
  141.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wFAMAS Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][FAMAS]);
  142.     new iMenu = menu_create(sText, "famas_handler");
  143.    
  144.     for(new i; i < iSize; i++){
  145.         formatex(sText, charsmax(sText), WeaponFAMAS[i][Points] <= g_uPoints[id][FAMAS] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponFAMAS[i][GunName], g_uPoints[id][FAMAS], WeaponFAMAS[i][Points])
  146.         menu_additem(iMenu, sText);
  147.     }
  148.    
  149.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  150.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  151.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  152.    
  153.     menu_display(id, iMenu, 0);
  154. }
  155.  
  156. public famas_handler(id, iMenu, item) {
  157.     if( item == MENU_EXIT ) {
  158.         menu_destroy(iMenu);
  159.         return PLUGIN_HANDLED;
  160.     }
  161.    
  162.     if(WeaponFAMAS[item][Points] <= g_uPoints[id][FAMAS]) {
  163.         g_SelectedGun[id][FAMAS] = item;
  164.         } else {
  165.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  166.     }
  167.    
  168.     menu_destroy(iMenu);
  169.     return PLUGIN_HANDLED;
  170.    
  171. }
  172. public aug_menu(id) {
  173.    
  174.     new sText[256], iSize = sizeof(WeaponAUG);
  175.    
  176.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wAUG Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][AUG]);
  177.     new iMenu = menu_create(sText, "galil_handler");
  178.    
  179.     for(new i; i < iSize; i++){
  180.         formatex(sText, charsmax(sText), WeaponAUG[i][Points] <= g_uPoints[id][AUG] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponAUG[i][GunName], g_uPoints[id][AUG], WeaponAUG[i][Points])
  181.         menu_additem(iMenu, sText);
  182.     }
  183.    
  184.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  185.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  186.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  187.    
  188.     menu_display(id, iMenu, 0);
  189. }
  190.  
  191. public aug_handler(id, iMenu, item) {
  192.     if( item == MENU_EXIT ) {
  193.         menu_destroy(iMenu);
  194.         return PLUGIN_HANDLED;
  195.     }
  196.    
  197.     if(WeaponAUG[item][Points] <= g_uPoints[id][AUG]) {
  198.         g_SelectedGun[id][AUG] = item;
  199.         } else {
  200.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  201.     }
  202.    
  203.     menu_destroy(iMenu);
  204.     return PLUGIN_HANDLED
  205.    
  206. }
  207. public galil_menu(id) {
  208.    
  209.     new sText[256], iSize = sizeof(WeaponGALIL);
  210.    
  211.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wGALIL Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][GALIL]);
  212.     new iMenu = menu_create(sText, "galil_handler");
  213.    
  214.     for(new i; i < iSize; i++){
  215.         formatex(sText, charsmax(sText), WeaponFAMAS[i][Points] <= g_uPoints[id][GALIL] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponGALIL[i][GunName], g_uPoints[id][GALIL], WeaponGALIL[i][Points])
  216.         menu_additem(iMenu, sText);
  217.     }
  218.    
  219.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  220.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  221.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  222.    
  223.     menu_display(id, iMenu, 0);
  224. }
  225.  
  226. public galil_handler(id, iMenu, item) {
  227.     if( item == MENU_EXIT ) {
  228.         menu_destroy(iMenu);
  229.         return PLUGIN_HANDLED;
  230.     }
  231.    
  232.     if(WeaponGALIL[item][Points] <= g_uPoints[id][GALIL]) {
  233.         g_SelectedGun[id][GALIL] = item;
  234.         } else {
  235.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  236.     }
  237.    
  238.     menu_destroy(iMenu);
  239.     return PLUGIN_HANDLED;
  240.    
  241. }
  242. public m3_menu(id) {
  243.    
  244.     new sText[256], iSize = sizeof(WeaponM3);
  245.    
  246.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wM3 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][M3]);
  247.     new iMenu = menu_create(sText, "m3_handler");
  248.    
  249.     for(new i; i < iSize; i++){
  250.         formatex(sText, charsmax(sText), WeaponM3[i][Points] <= g_uPoints[id][M3] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponM3[i][GunName], g_uPoints[id][M3], WeaponM3[i][Points])
  251.         menu_additem(iMenu, sText);
  252.     }
  253.    
  254.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  255.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  256.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  257.    
  258.     menu_display(id, iMenu, 0);
  259. }
  260.  
  261. public m3_handler(id, iMenu, item) {
  262.     if( item == MENU_EXIT ) {
  263.         menu_destroy(iMenu);
  264.         return PLUGIN_HANDLED;
  265.     }
  266.    
  267.     if(WeaponM3[item][Points] <= g_uPoints[id][M3]) {
  268.         g_SelectedGun[id][M3] = item;
  269.         } else {
  270.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  271.     }
  272.    
  273.     menu_destroy(iMenu);
  274.     return PLUGIN_HANDLED;
  275.    
  276. }
  277. public xm1014_menu(id) {
  278.    
  279.     new sText[256], iSize = sizeof(WeaponXM1014);
  280.    
  281.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wXM1014 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][M3]);
  282.     new iMenu = menu_create(sText, "xm1014_handler");
  283.    
  284.     for(new i; i < iSize; i++){
  285.         formatex(sText, charsmax(sText), WeaponXM1014[i][Points] <= g_uPoints[id][XM1014] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponXM1014[i][GunName], g_uPoints[id][XM1014], WeaponXM1014[i][Points])
  286.         menu_additem(iMenu, sText);
  287.     }
  288.    
  289.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  290.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  291.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  292.    
  293.     menu_display(id, iMenu, 0);
  294. }
  295.  
  296. public xm1014_handler(id, iMenu, item) {
  297.     if( item == MENU_EXIT ) {
  298.         menu_destroy(iMenu);
  299.         return PLUGIN_HANDLED;
  300.     }
  301.    
  302.     if(WeaponXM1014[item][Points] <= g_uPoints[id][XM1014]) {
  303.         g_SelectedGun[id][XM1014] = item;
  304.         } else {
  305.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  306.     }
  307.    
  308.     menu_destroy(iMenu);
  309.     return PLUGIN_HANDLED;
  310.    
  311. }
  312. public knife_menu(id) {
  313.    
  314.     new sText[256], iSize = sizeof(WeaponXM1014);
  315.    
  316.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wKNIFE Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][KNIFE]);
  317.     new iMenu = menu_create(sText, "knife_handler");
  318.    
  319.     for(new i; i < iSize; i++){
  320.         formatex(sText, charsmax(sText), WeaponKNIFE[i][Points] <= g_uPoints[id][KNIFE] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponKNIFE[i][GunName], g_uPoints[id][KNIFE], WeaponKNIFE[i][Points])
  321.         menu_additem(iMenu, sText);
  322.     }
  323.    
  324.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  325.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  326.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  327.    
  328.     menu_display(id, iMenu, 0);
  329. }
  330.  
  331. public knife_handler(id, iMenu, item) {
  332.     if( item == MENU_EXIT ) {
  333.         menu_destroy(iMenu);
  334.         return PLUGIN_HANDLED;
  335.     }
  336.    
  337.     if(WeaponKNIFE[item][Points] <= g_uPoints[id][KNIFE]) {
  338.         g_SelectedGun[id][KNIFE] = item;
  339.         } else {
  340.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  341.     }
  342.    
  343.     menu_destroy(iMenu);
  344.     return PLUGIN_HANDLED;
  345.    
  346. }
  347. public deagle_menu(id) {
  348.    
  349.     new sText[256], iSize = sizeof(WeaponDEAGLE);
  350.    
  351.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wDEAGLE Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][DEAGLE]);
  352.     new iMenu = menu_create(sText, "deagle_handler");
  353.    
  354.     for(new i; i < iSize; i++){
  355.         formatex(sText, charsmax(sText), WeaponDEAGLE[i][Points] <= g_uPoints[id][DEAGLE] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponDEAGLE[i][GunName], g_uPoints[id][DEAGLE], WeaponDEAGLE[i][Points])
  356.         menu_additem(iMenu, sText);
  357.     }
  358.    
  359.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  360.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  361.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  362.    
  363.     menu_display(id, iMenu, 0);
  364. }
  365.  
  366. public deagle_handler(id, iMenu, item) {
  367.     if( item == MENU_EXIT ) {
  368.         menu_destroy(iMenu);
  369.         return PLUGIN_HANDLED;
  370.     }
  371.    
  372.     if(WeaponDEAGLE[item][Points] <= g_uPoints[id][DEAGLE]) {
  373.         g_SelectedGun[id][DEAGLE] = item;
  374.         } else {
  375.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  376.     }
  377.    
  378.     menu_destroy(iMenu);
  379.     return PLUGIN_HANDLED;
  380.    
  381. }
  382. public usp_menu(id) {
  383.    
  384.     new sText[256], iSize = sizeof(WeaponUSP);
  385.    
  386.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wUSP Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][USP]);
  387.     new iMenu = menu_create(sText, "usp_handler");
  388.    
  389.     for(new i; i < iSize; i++){
  390.         formatex(sText, charsmax(sText), WeaponUSP[i][Points] <= g_uPoints[id][USP] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponUSP[i][GunName], g_uPoints[id][USP], WeaponUSP[i][Points])
  391.         menu_additem(iMenu, sText);
  392.     }
  393.    
  394.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  395.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  396.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  397.    
  398.     menu_display(id, iMenu, 0);
  399. }
  400.  
  401. public usp_handler(id, iMenu, item) {
  402.     if( item == MENU_EXIT ) {
  403.         menu_destroy(iMenu);
  404.         return PLUGIN_HANDLED;
  405.     }
  406.    
  407.     if(WeaponUSP[item][Points] <= g_uPoints[id][USP]) {
  408.         g_SelectedGun[id][USP] = item;
  409.         } else {
  410.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3pontod az öléshez.^3!", gChatPrefix);
  411.     }
  412.    
  413.     menu_destroy(iMenu);
  414.     return PLUGIN_HANDLED
  415.    
  416. }
  417. public glock_menu(id) {
  418.    
  419.     new sText[256], iSize = sizeof(WeaponGLOCK);
  420.    
  421.     format(sText, charsmax(sText), "^3[%s]^4 \r» \wGLOCK Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][GLOCK]);
  422.     new iMenu = menu_create(sText, "glock_handler");
  423.    
  424.     for(new i; i < iSize; i++){
  425.         formatex(sText, charsmax(sText), WeaponGLOCK[i][Points] <= g_uPoints[id][GLOCK] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponGLOCK[i][GunName], g_uPoints[id][GLOCK], WeaponGLOCK[i][Points])
  426.         menu_additem(iMenu, sText);
  427.     }
  428.    
  429.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  430.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  431.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  432.    
  433.     menu_display(id, iMenu, 0);
  434. }
  435.  
  436. public glock_handler(id, iMenu, item) {
  437.     if( item == MENU_EXIT ) {
  438.         menu_destroy(iMenu);
  439.         return PLUGIN_HANDLED;
  440.     }
  441.    
  442.     if(WeaponDEAGLE[item][Points] <= g_uPoints[id][DEAGLE]) {
  443.         g_SelectedGun[id][DEAGLE] = item;
  444.         } else {
  445.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  446.     }
  447.    
  448.     menu_destroy(iMenu);
  449.     return PLUGIN_HANDLED;


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Miért nem műkődik ?
HozzászólásElküldve: 2023.08.23. 15:27 
Offline
Tud valamit
Avatar

Csatlakozott: 2020.05.14. 11:32
Hozzászólások: 142
Megköszönt másnak: 13 alkalommal
Megköszönték neki: 56 alkalommal
Ezek csak menük, nem mutatják meg hogy miket csinálgatsz a változókkal sajt32. Az egész kódra van szükségünk.

_________________
[ExTasY] Furien Hero [CRAFT SYSTEM]
213.181.206.21:27140

[ExTasY] Super Deathmatch [SENTRY GUN]
213.181.206.27:27069

[ExTasY] Zombie Mutation [ZOMBIE NPC]
213.181.206.28:27057
Facebook
Discord

Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Miért nem műkődik ?
HozzászólásElküldve: 2023.08.23. 16:42 
Offline
Jómunkásember

Csatlakozott: 2020.06.14. 17:59
Hozzászólások: 368
Megköszönt másnak: 64 alkalommal
Megköszönték neki: 10 alkalommal
DexoN írta:
Ezek csak menük, nem mutatják meg hogy miket csinálgatsz a változókkal sajt32. Az egész kódra van szükségünk.



  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <engine>
  4. #include <fakemeta>
  5. #include <cstrike>
  6. #include <sqlx>
  7. //////////////////////////////////////////////////////
  8. #define Tablename "newrangmod" //SQL Tábla neve!//
  9. //////////////////////////////////////////////////////
  10. #define TULAJ ADMIN_IMMUNITY
  11. //#define FOADMIN_
  12. #define ADMIN ADMIN_BAN
  13. #define VIP ADMIN_LEVEL_H
  14. //////////////////////////////////////////////////////
  15. #define KILL_POINT 1 // Sima Ölés
  16. #define HEADSHOT_POINT 2 // Fejlővés
  17. //////////////////////////////////////////////////////
  18. enum _:GunDatas {
  19.     M4A1,
  20.     AK47,
  21.     AWP,
  22.     SCOUT,
  23.     FAMAS,
  24.     GALIL,
  25.     AUG,
  26.     M3,
  27.     XM1014,
  28.     KNIFE,
  29.     DEAGLE,
  30.     USP,
  31.     GLOCK
  32. }
  33. new g_SelectedGun[33][GunDatas], g_uPoints[33][GunDatas];
  34. new betoltve[33];
  35. new sSteamID[33];
  36. new Rang[33], Oles[33];
  37. new hudkibe[33];
  38. new gSyncHud;
  39. new Masodpercek[33];
  40.  
  41. new const gMenuPrefix[] = "\w[~|ChamPs|~]\y";
  42. new const gChatPrefix[] = "~|ChamPs|~";
  43.  
  44. enum _:DATA {
  45.     GunName[512],
  46.     ModelName[512],
  47.     Points[8]
  48. }  
  49.  
  50. enum _:Rangs { Szint[32], Xp[8] };
  51. new const Rangok[][Rangs] ={
  52.    
  53.     { "Újonc", 100 },
  54.     { "Honvéd", 200 },
  55.     { "Örvezető", 300 },
  56.     { "Szakaszvezető", 400 },
  57.     { "Őrmester", 500 },
  58.     { "Hadnagy", 600 },
  59.     { "Főhadnagy", 700 },
  60.     { "Százados", 800 },
  61.     { "Örnagy", 900 },
  62.     { "Alezredes", 1000 },
  63.     { "Ezredes", 1100 },
  64.     { "Dandártábornok", 1200 },
  65.     { "Vezérnagy", 1300 },
  66.     { "Altábornok", 1400 },
  67.     { "Vezérezredes", 1500 }
  68. };
  69.  
  70.  
  71. new const WeaponM4A1[][DATA] = {
  72.     {"M4A1 | Default", "models/v_m4a1.mdl", 0, },
  73.     {"M4A1 | Galaxyy", "models/champs_skins/m4a1/v_m4a1_Galaxyy.mdl", 0, }
  74. };
  75. new const WeaponAK47[][DATA] = {
  76.     {"AK47 | Default", "models/v_ak47.mdl", 0, }
  77. };
  78. new const WeaponAWP[][DATA] = {
  79.     {"AWP | Default", "models/v_awp.mdl", 0, }
  80. };
  81. new const WeaponSCOUT[][DATA] = {
  82.     {"SCOUT | Default", "models/v_scout.mdl", 0, }
  83. };
  84. new const WeaponFAMAS[][DATA] = {
  85.     {"FAMAS | Default", "models/v_famas.mdl", 0, }
  86. };
  87. new const WeaponGALIL[][DATA] = {
  88.     {"GALIL | Default", "models/v_galil.mdl", 0, }
  89. };
  90. new const WeaponAUG[][DATA] = {
  91.     {"AUG | Default", "models/v_aug.mdl", 0, }
  92. };
  93. new const WeaponM3[][DATA] = {
  94.     {"M3 | Default", "models/v_m3.mdl", 0, }
  95. };
  96. new const WeaponXM1014[][DATA] = {
  97.     {"XM1014 | Default", "models/v_xm1014.mdl", 0, }
  98. };
  99. new const WeaponKNIFE[][DATA] = {
  100.     {"KNIFE | Default", "models/v_knife.mdl", 0, }
  101. };
  102. new const WeaponDEAGLE[][DATA] = {
  103.     {"DEAGLE | Default", "models/v_deagle.mdl", 0, }
  104. };
  105. new const WeaponUSP[][DATA] = {
  106.     {"USP | Default", "models/v_usp.mdl", 0, }
  107. };
  108. new const WeaponGLOCK[][DATA] = {
  109.     {"GLOCK18 | Default", "models/v_glock18.mdl", 0, }
  110. };
  111. public plugin_init() {
  112.     register_plugin("Hlmodra", "valamiverziosiskell?", "szeretjükatejetazbiztos!");
  113.     register_clcmd("say /add", "Addolas");
  114.    
  115.     register_clcmd("say /rang", "showrang"); // Rang rendszer //
  116.     register_clcmd("say /hud", "hudkibekapcs"); // HUD Rednszer //
  117.    
  118.     register_impulse(201, "main_menu"); // T betü
  119.    
  120.     register_clcmd("say /menu", "main_menu"); // ha nem jelenik meg
  121.     register_clcmd("say /menu", "main_menu"); // ha nem jelenik meg
  122.    
  123.     register_event("DeathMsg","Halal","a"); // Kill Ölések //
  124.     register_event("DeathMsg","kills","a") // Rang Ölések //
  125.    
  126.     RegisterHam(Ham_Item_Deploy, "weapon_m4a1", "WeaponChange_p", 1);
  127.     RegisterHam(Ham_Item_Deploy, "weapon_ak47", "WeaponChange_p", 1);
  128.     RegisterHam(Ham_Item_Deploy, "weapon_awp", "WeaponChange_p", 1);
  129.     RegisterHam(Ham_Item_Deploy, "weapon_scout", "WeaponChange_p", 1);
  130.     RegisterHam(Ham_Item_Deploy, "weapon_famas", "WeaponChange_p", 1);
  131.     RegisterHam(Ham_Item_Deploy, "weapon_galil", "WeaponChange_p", 1);
  132.     RegisterHam(Ham_Item_Deploy, "weapon_aug", "WeaponChange_p", 1);
  133.     RegisterHam(Ham_Item_Deploy, "weapon_m3", "WeaponChange_p", 1);
  134.     RegisterHam(Ham_Item_Deploy, "weapon_xm1014", "WeaponChange_p", 1);
  135.     RegisterHam(Ham_Item_Deploy, "weapon_knife", "WeaponChange_p", 1);
  136.     RegisterHam(Ham_Item_Deploy, "weapon_deagle", "WeaponChange_p", 1);
  137.     RegisterHam(Ham_Item_Deploy, "weapon_usp", "WeaponChange_p", 1);
  138.     RegisterHam(Ham_Item_Deploy, "weapon_glock18", "WeaponChange_p", 1);
  139.    
  140.     ////////////////////////////////////////
  141.     //register_clcmd("say", "sayhook");     //Maradjon alul!
  142.     ////////////////////////////////////////
  143.     gSyncHud = CreateHudSyncObj();
  144.    
  145.     set_task(1.0, "hudrendszer",_,_,_,"b");
  146.    
  147.    
  148.    
  149. }
  150. public hudrendszer(id){
  151.    
  152.     if(is_user_alive(id) && hudkibe[id])
  153.     {
  154.         new iMasodperc, iPerc, iOra, Nev[32];
  155.         get_user_name(id, Nev, 31);
  156.         iMasodperc = Masodpercek[id] + get_user_time(id);
  157.         iPerc = iMasodperc / 60;
  158.         iOra = iPerc / 60;
  159.         iMasodperc = iMasodperc - iPerc * 60;
  160.         iPerc = iPerc - iOra * 60;
  161.        
  162.        
  163.         set_hudmessage(random(255), random(255), random(255), 0.01, 0.15, 0, 6.0, 1.1, 0.0, 0.0, -1);
  164.         ShowSyncHudMsg(id, gSyncHud, "Üdv! %s^nÖlésed: [%d]^nRangod: [%s]^nJátszott idő: [%d] Óra [%d] Perc [%d] Másodperc",Nev, Oles[id],Rangok[Rang[id]][Szint],iOra, iPerc, iMasodperc);
  165.     }
  166.     else
  167.     {
  168.         return  
  169.     }
  170. }  
  171. public hudkibekapcs(id)
  172. {
  173.     if(hudkibe[id])
  174.     {
  175.         client_print_color(id, print_team_default, "^4[%s] ^1Kikapcsoltad a hudot.", gChatPrefix);
  176.         hudkibe[id] = false;
  177.     }
  178.     else
  179.     {
  180.         client_print_color(id, print_team_default, "^4[%s] ^1Bekapcsoltad a hudot.", gChatPrefix);
  181.         hudkibe[id] = true;
  182.     }
  183. }
  184. public showrang(id)
  185. {
  186.     if(Rangok[Rang[id]+1][Szint])
  187.     {
  188.         client_print_color(id, print_team_default, "^4[%s] ^3Rang: ^4%s ^1| ^3Öléseid: ^4%d ^1| ^3Kell még: ^4%d", gChatPrefix, Rangok[Rang[id]][Szint], Oles[id], Rangok[Rang[id]][Xp]);
  189.     }
  190.     else
  191.     {
  192.         client_print_color(id, print_team_default, "^4[%s] ^3Rang: ^4%s ^1| ^3Ölések: ^4%d", gChatPrefix, Rangok[Rang[id]][Szint], Oles[id]);
  193.         client_print_color(id, print_team_default, "^4[%s] ^1Elérted a legmagasabb ^3rangot.", gChatPrefix);
  194.     }
  195.     return PLUGIN_HANDLED;
  196. }
  197. public kills()
  198. {
  199.     new Gyilkos = read_data(1);
  200.     new Aldozat = read_data(2);
  201.    
  202.     if(Gyilkos == Aldozat)
  203.         return PLUGIN_HANDLED;
  204.    
  205.     Oles[Gyilkos] ++;
  206.    
  207.     while(Oles[Gyilkos] >= Rangok[Rang[Gyilkos]][Xp])
  208.         Rang[Gyilkos]++;
  209.    
  210.     return PLUGIN_HANDLED;
  211. }
  212. public Addolas(id)
  213. {
  214.     g_uPoints[id][M4A1] += 50;
  215.     g_uPoints[id][AK47] += 50;
  216.     g_uPoints[id][AWP] += 50;
  217.     g_uPoints[id][SCOUT] += 50;
  218.     g_uPoints[id][FAMAS] += 50;
  219.     g_uPoints[id][GALIL] += 50;
  220.     g_uPoints[id][AUG] += 50;
  221.     g_uPoints[id][M3] += 50;
  222.     g_uPoints[id][XM1014] += 50;
  223.     g_uPoints[id][KNIFE] += 50;
  224.     g_uPoints[id][DEAGLE] += 50;
  225.     g_uPoints[id][USP] += 50;
  226.     g_uPoints[id][GLOCK] += 50;
  227. }
  228. public plugin_precache() {
  229.     for(new i;i < sizeof(WeaponM4A1); i++) precache_model(WeaponM4A1[i][ModelName]);
  230.     for(new i;i < sizeof(WeaponAK47); i++) precache_model(WeaponAK47[i][ModelName]);
  231.     for(new i;i < sizeof(WeaponAWP); i++) precache_model(WeaponAWP[i][ModelName]);
  232.     for(new i;i < sizeof(WeaponSCOUT); i++) precache_model(WeaponSCOUT[i][ModelName]);
  233.     for(new i;i < sizeof(WeaponFAMAS); i++) precache_model(WeaponFAMAS[i][ModelName]);
  234.     for(new i;i < sizeof(WeaponGALIL); i++) precache_model(WeaponGALIL[i][ModelName]);
  235.     for(new i;i < sizeof(WeaponAUG); i++) precache_model(WeaponAUG[i][ModelName]);
  236.     for(new i;i < sizeof(WeaponM3); i++) precache_model(WeaponM3[i][ModelName]);
  237.     for(new i;i < sizeof(WeaponXM1014); i++) precache_model(WeaponXM1014[i][ModelName]);
  238.     for(new i;i < sizeof(WeaponKNIFE); i++) precache_model(WeaponKNIFE[i][ModelName]);
  239.     for(new i;i < sizeof(WeaponDEAGLE); i++) precache_model(WeaponDEAGLE[i][ModelName]);
  240.     for(new i;i < sizeof(WeaponUSP); i++) precache_model(WeaponUSP[i][ModelName]);
  241.     for(new i;i < sizeof(WeaponGLOCK); i++) precache_model(WeaponGLOCK[i][ModelName]);
  242. }
  243. public WeaponChange_p(iEnt)
  244. {
  245.     new id = get_pdata_cbase(iEnt, 41, 4);
  246.    
  247.     if(!is_user_alive(id) || !is_user_connected(id))
  248.         return HAM_IGNORED;
  249.    
  250.     new Weapon = cs_get_weapon_id(iEnt);
  251.    
  252.     switch(Weapon)
  253.     {
  254.         case CSW_M4A1: entity_set_string(id, EV_SZ_viewmodel, WeaponM4A1[g_SelectedGun[id][M4A1]][ModelName]);
  255.             case CSW_AK47: entity_set_string(id, EV_SZ_viewmodel, WeaponAK47[g_SelectedGun[id][AK47]][ModelName]);
  256.             case CSW_AWP: entity_set_string(id, EV_SZ_viewmodel, WeaponAWP[g_SelectedGun[id][AWP]][ModelName]);
  257.             case CSW_SCOUT: entity_set_string(id, EV_SZ_viewmodel, WeaponSCOUT[g_SelectedGun[id][SCOUT]][ModelName]);
  258.             case CSW_FAMAS: entity_set_string(id, EV_SZ_viewmodel, WeaponFAMAS[g_SelectedGun[id][FAMAS]][ModelName]);
  259.             case CSW_GALIL: entity_set_string(id, EV_SZ_viewmodel, WeaponGALIL[g_SelectedGun[id][GALIL]][ModelName]);
  260.             case CSW_AUG: entity_set_string(id, EV_SZ_viewmodel, WeaponAUG[g_SelectedGun[id][AUG]][ModelName]);
  261.             case CSW_M3: entity_set_string(id, EV_SZ_viewmodel, WeaponM3[g_SelectedGun[id][M3]][ModelName]);
  262.             case CSW_XM1014: entity_set_string(id, EV_SZ_viewmodel, WeaponXM1014[g_SelectedGun[id][XM1014]][ModelName]);
  263.             case CSW_KNIFE: entity_set_string(id, EV_SZ_viewmodel, WeaponKNIFE[g_SelectedGun[id][KNIFE]][ModelName]);
  264.             case CSW_DEAGLE: entity_set_string(id, EV_SZ_viewmodel, WeaponDEAGLE[g_SelectedGun[id][DEAGLE]][ModelName]);
  265.             case CSW_USP: entity_set_string(id, EV_SZ_viewmodel, WeaponUSP[g_SelectedGun[id][USP]][ModelName]);
  266.             case CSW_GLOCK18: entity_set_string(id, EV_SZ_viewmodel, WeaponGLOCK[g_SelectedGun[id][GLOCK]][ModelName]);
  267.         }
  268.     return HAM_IGNORED;
  269. }
  270. public Halal() {
  271.    
  272.     new iAttacker = read_data(1);
  273.     new iVictim = read_data(2);
  274.     new iHs = read_data(3);
  275.    
  276.     if(iAttacker == iVictim || iAttacker == 0) return PLUGIN_HANDLED;
  277.     new iPoints = iHs ? HEADSHOT_POINT : KILL_POINT;
  278.    
  279.     switch(get_user_weapon(iAttacker)) {
  280.         case CSW_M4A1: g_uPoints[iAttacker][M4A1] += iPoints;
  281.             case CSW_AK47: g_uPoints[iAttacker][AK47] += iPoints;
  282.             case CSW_AWP: g_uPoints[iAttacker][AWP] += iPoints;
  283.             case CSW_SCOUT: g_uPoints[iAttacker][SCOUT] += iPoints;
  284.             case CSW_FAMAS: g_uPoints[iAttacker][FAMAS] += iPoints;
  285.             case CSW_GALIL: g_uPoints[iAttacker][GALIL] += iPoints;
  286.             case CSW_AUG: g_uPoints[iAttacker][AUG] += iPoints;
  287.             case CSW_M3: g_uPoints[iAttacker][M3] += iPoints;
  288.             case CSW_XM1014: g_uPoints[iAttacker][XM1014] += iPoints;
  289.             case CSW_KNIFE: g_uPoints[iAttacker][KNIFE] += iPoints;
  290.             case CSW_DEAGLE: g_uPoints[iAttacker][DEAGLE] += iPoints;
  291.             case CSW_USP: g_uPoints[iAttacker][USP] += iPoints;
  292.             case CSW_GLOCK18: g_uPoints[iAttacker][GLOCK] += iPoints;
  293.         }
  294.     set_hudmessage(random(256), random(256), random(256), -1.0, 0.20, 0, 6.0, 3.0);
  295.     ShowSyncHudMsg(gSyncHud, iAttacker, "+%i Pont", iPoints);
  296.     return PLUGIN_CONTINUE;
  297. }
  298. public main_menu(id)
  299. {
  300.     new sTitle[128];
  301.     format(sTitle, charsmax(sTitle), "[%s] \r» \d[ Főmenü \r]", gMenuPrefix);
  302.     new iMenu = menu_create(sTitle, "menu_main_h");
  303.    
  304.     menu_additem(iMenu, "\rFegyver Skinek", "1", 0);
  305.     menu_additem(iMenu, "\rBeállitások", "2", 0);
  306.    
  307.     menu_display(id, iMenu, 0);
  308.    
  309. }
  310. public menu_main_h(id, menu, item)
  311. {
  312.     if(item == MENU_EXIT)
  313.     {
  314.         menu_destroy(menu);
  315.         return;
  316.     }
  317.    
  318.     new data[9], Name[64];
  319.     new access, callback;
  320.     menu_item_getinfo(menu, item, access, data,charsmax(data), Name,charsmax(Name), callback);
  321.     new key = str_to_num(data);
  322.    
  323.     switch(key)
  324.     {
  325.         case 1: menu_storage(id);
  326.         }
  327. }
  328. public menu_storage(id)
  329. {
  330.     new sTitle[128];
  331.     format(sTitle, charsmax(sTitle), "[%s] \r» \d[ Fegyver Skinek \r]", gChatPrefix);
  332.     new iMenu = menu_create(sTitle, "menu_storage_h");
  333.    
  334.     menu_additem(iMenu, "\rM4A1 \ySkinek", "1", 0);
  335.     menu_additem(iMenu, "\rAK47 \ySkinek", "2", 0);
  336.     menu_additem(iMenu, "\rAWP \ySkinek", "3", 0);
  337.     menu_additem(iMenu, "\rSCOUT \ySkinek", "4", 0);
  338.     menu_additem(iMenu, "\rFAMAS \ySkinek", "5", 0);
  339.     menu_additem(iMenu, "\rGALIL  \ySkinek", "6", 0);
  340.     menu_additem(iMenu, "\rAUG \ySkinek", "7", 0);
  341.     menu_additem(iMenu, "\rM3 \ySkinek", "8", 0);
  342.     menu_additem(iMenu, "\rXM1014 \ySkinek", "9", 0);
  343.     menu_additem(iMenu, "\rKNIFE \ySkinek", "10", 0);
  344.     menu_additem(iMenu, "\rDEAGLE \ySkinek", "11", 0);
  345.     menu_additem(iMenu, "\rUSP \ySkinek", "12", 0);
  346.     menu_additem(iMenu, "\rGLOCK18 \ySkinek", "13", 0);
  347.    
  348.     menu_display(id, iMenu, 0);
  349.    
  350. }
  351. public menu_storage_h(id, menu, item)
  352. {
  353.     if(item == MENU_EXIT)
  354.     {
  355.         menu_destroy(menu);
  356.         return;
  357.     }
  358.    
  359.     new data[9], Name[64];
  360.     new access, callback;
  361.     menu_item_getinfo(menu, item, access, data,charsmax(data), Name,charsmax(Name), callback);
  362.     new key = str_to_num(data);
  363.    
  364.     switch(key)
  365.     {
  366.         case 1: m4a1_menu(id);
  367.             case 2: ak47_menu(id);
  368.             case 3: awp_menu(id);
  369.             case 4: scout_menu(id);
  370.             case 5: famas_menu(id);
  371.             case 6: aug_menu(id);
  372.             case 7: galil_menu(id);
  373.             case 8: m3_menu(id);
  374.             case 9: xm1014_menu(id);
  375.             case 10: knife_menu(id);
  376.             case 11: deagle_menu(id);
  377.             case 12: usp_menu(id);
  378.             case 13: glock_menu(id);
  379.            
  380.     }
  381. }  
  382.     public m4a1_menu(id) {
  383.        
  384.         new sText[256], iSize = sizeof(WeaponM4A1);
  385.        
  386.         format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wM4A1 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][M4A1]);
  387.         new iMenu = menu_create(sText, "m4a1_handler");
  388.        
  389.         for(new i; i < iSize; i++){
  390.             formatex(sText, charsmax(sText), WeaponM4A1[i][Points] <= g_uPoints[id][M4A1] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponM4A1[i][GunName], g_uPoints[id][M4A1], WeaponM4A1[i][Points])
  391.             menu_additem(iMenu, sText);
  392.         }
  393.        
  394.         menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  395.         menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  396.         menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  397.        
  398.         menu_display(id, iMenu, 0);
  399.     }
  400.      
  401.     public m4a1_handler(id, iMenu, item) {
  402.         if( item == MENU_EXIT ) {
  403.             menu_destroy(iMenu);
  404.             return PLUGIN_HANDLED;
  405.         }
  406.        
  407.         if(WeaponM4A1[item][Points] >= g_uPoints[id][M4A1]) {
  408.             g_SelectedGun[id][M4A1] = item;
  409.             } else {
  410.             client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  411.         }
  412.        
  413.         menu_destroy(iMenu);
  414.         return PLUGIN_HANDLED;
  415. }
  416. public ak47_menu(id) {
  417.    
  418.     new sText[256], iSize = sizeof(WeaponAK47);
  419.    
  420.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wAK47 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][AK47]);
  421.     new iMenu = menu_create(sText, "ak47_handler");
  422.    
  423.     for(new i; i < iSize; i++){
  424.         formatex(sText, charsmax(sText), WeaponAK47[i][Points] <= g_uPoints[id][AK47] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponAK47[i][GunName], g_uPoints[id][AK47], WeaponAK47[i][Points])
  425.         menu_additem(iMenu, sText);
  426.     }
  427.    
  428.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  429.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  430.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  431.    
  432.     menu_display(id, iMenu, 0);
  433. }
  434.  
  435. public ak47_handler(id, iMenu, item) {
  436.     if( item == MENU_EXIT ) {
  437.         menu_destroy(iMenu);
  438.         return PLUGIN_HANDLED;
  439.     }
  440.    
  441.     if(WeaponAK47[item][Points] <= g_uPoints[id][AK47]) {
  442.         g_SelectedGun[id][AK47] = item;
  443.         } else {
  444.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  445.     }
  446.    
  447.     menu_destroy(iMenu);
  448.     return PLUGIN_HANDLED;
  449.    
  450. }
  451. public awp_menu(id) {
  452.    
  453.     new sText[256], iSize = sizeof(WeaponAWP);
  454.    
  455.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wAWP Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][AWP]);
  456.     new iMenu = menu_create(sText, "awp_handler");
  457.    
  458.     for(new i; i < iSize; i++){
  459.         formatex(sText, charsmax(sText), WeaponAWP[i][Points] <= g_uPoints[id][AWP] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponAWP[i][GunName], g_uPoints[id][AWP], WeaponAWP[i][Points])
  460.         menu_additem(iMenu, sText);
  461.     }
  462.    
  463.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  464.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  465.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  466.    
  467.     menu_display(id, iMenu, 0);
  468. }
  469. public awp_handler(id, iMenu, item) {
  470.     if( item == MENU_EXIT ) {
  471.         menu_destroy(iMenu);
  472.         return PLUGIN_HANDLED;
  473.     }
  474.    
  475.     if(WeaponAWP[item][Points] <= g_uPoints[id][AWP]) {
  476.         g_SelectedGun[id][AWP] = item;
  477.         } else {
  478.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  479.     }
  480.    
  481.     menu_destroy(iMenu);
  482.     return PLUGIN_HANDLED
  483. }
  484. public scout_menu(id) {
  485.    
  486.     new sText[256], iSize = sizeof(WeaponSCOUT);
  487.    
  488.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wSCOUT Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][SCOUT]);
  489.     new iMenu = menu_create(sText, "scout_handler");
  490.    
  491.     for(new i; i < iSize; i++){
  492.         formatex(sText, charsmax(sText), WeaponSCOUT[i][Points] <= g_uPoints[id][SCOUT] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponSCOUT[i][GunName], g_uPoints[id][SCOUT], WeaponSCOUT[i][Points])
  493.         menu_additem(iMenu, sText);
  494.     }
  495.    
  496.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  497.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  498.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  499.    
  500.     menu_display(id, iMenu, 0);
  501. }
  502.  
  503. public scout_handler(id, iMenu, item) {
  504.     if( item == MENU_EXIT ) {
  505.         menu_destroy(iMenu);
  506.         return PLUGIN_HANDLED;
  507.     }
  508.    
  509.     if(WeaponSCOUT[item][Points] <= g_uPoints[id][SCOUT]) {
  510.         g_SelectedGun[id][SCOUT] = item;
  511.         } else {
  512.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  513.     }
  514.    
  515.     menu_destroy(iMenu);
  516.     return PLUGIN_HANDLED;
  517. }
  518. public famas_menu(id) {
  519.    
  520.     new sText[256], iSize = sizeof(WeaponFAMAS);
  521.    
  522.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wFAMAS Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][FAMAS]);
  523.     new iMenu = menu_create(sText, "famas_handler");
  524.    
  525.     for(new i; i < iSize; i++){
  526.         formatex(sText, charsmax(sText), WeaponFAMAS[i][Points] <= g_uPoints[id][FAMAS] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponFAMAS[i][GunName], g_uPoints[id][FAMAS], WeaponFAMAS[i][Points])
  527.         menu_additem(iMenu, sText);
  528.     }
  529.    
  530.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  531.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  532.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  533.    
  534.     menu_display(id, iMenu, 0);
  535. }
  536.  
  537. public famas_handler(id, iMenu, item) {
  538.     if( item == MENU_EXIT ) {
  539.         menu_destroy(iMenu);
  540.         return PLUGIN_HANDLED;
  541.     }
  542.    
  543.     if(WeaponFAMAS[item][Points] <= g_uPoints[id][FAMAS]) {
  544.         g_SelectedGun[id][FAMAS] = item;
  545.         } else {
  546.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  547.     }
  548.    
  549.     menu_destroy(iMenu);
  550.     return PLUGIN_HANDLED;
  551.    
  552. }
  553. public aug_menu(id) {
  554.    
  555.     new sText[256], iSize = sizeof(WeaponAUG);
  556.    
  557.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wAUG Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][AUG]);
  558.     new iMenu = menu_create(sText, "galil_handler");
  559.    
  560.     for(new i; i < iSize; i++){
  561.         formatex(sText, charsmax(sText), WeaponAUG[i][Points] <= g_uPoints[id][AUG] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponAUG[i][GunName], g_uPoints[id][AUG], WeaponAUG[i][Points])
  562.         menu_additem(iMenu, sText);
  563.     }
  564.    
  565.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  566.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  567.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  568.    
  569.     menu_display(id, iMenu, 0);
  570. }
  571.  
  572. public aug_handler(id, iMenu, item) {
  573.     if( item == MENU_EXIT ) {
  574.         menu_destroy(iMenu);
  575.         return PLUGIN_HANDLED;
  576.     }
  577.    
  578.     if(WeaponAUG[item][Points] <= g_uPoints[id][AUG]) {
  579.         g_SelectedGun[id][AUG] = item;
  580.         } else {
  581.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  582.     }
  583.    
  584.     menu_destroy(iMenu);
  585.     return PLUGIN_HANDLED
  586.    
  587. }
  588. public galil_menu(id) {
  589.    
  590.     new sText[256], iSize = sizeof(WeaponGALIL);
  591.    
  592.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wGALIL Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][GALIL]);
  593.     new iMenu = menu_create(sText, "galil_handler");
  594.    
  595.     for(new i; i < iSize; i++){
  596.         formatex(sText, charsmax(sText), WeaponFAMAS[i][Points] <= g_uPoints[id][GALIL] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponGALIL[i][GunName], g_uPoints[id][GALIL], WeaponGALIL[i][Points])
  597.         menu_additem(iMenu, sText);
  598.     }
  599.    
  600.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  601.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  602.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  603.    
  604.     menu_display(id, iMenu, 0);
  605. }
  606.  
  607. public galil_handler(id, iMenu, item) {
  608.     if( item == MENU_EXIT ) {
  609.         menu_destroy(iMenu);
  610.         return PLUGIN_HANDLED;
  611.     }
  612.    
  613.     if(WeaponGALIL[item][Points] <= g_uPoints[id][GALIL]) {
  614.         g_SelectedGun[id][GALIL] = item;
  615.         } else {
  616.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  617.     }
  618.    
  619.     menu_destroy(iMenu);
  620.     return PLUGIN_HANDLED;
  621.    
  622. }
  623. public m3_menu(id) {
  624.    
  625.     new sText[256], iSize = sizeof(WeaponM3);
  626.    
  627.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wM3 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][M3]);
  628.     new iMenu = menu_create(sText, "m3_handler");
  629.    
  630.     for(new i; i < iSize; i++){
  631.         formatex(sText, charsmax(sText), WeaponM3[i][Points] <= g_uPoints[id][M3] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponM3[i][GunName], g_uPoints[id][M3], WeaponM3[i][Points])
  632.         menu_additem(iMenu, sText);
  633.     }
  634.    
  635.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  636.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  637.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  638.    
  639.     menu_display(id, iMenu, 0);
  640. }
  641.  
  642. public m3_handler(id, iMenu, item) {
  643.     if( item == MENU_EXIT ) {
  644.         menu_destroy(iMenu);
  645.         return PLUGIN_HANDLED;
  646.     }
  647.    
  648.     if(WeaponM3[item][Points] <= g_uPoints[id][M3]) {
  649.         g_SelectedGun[id][M3] = item;
  650.         } else {
  651.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  652.     }
  653.    
  654.     menu_destroy(iMenu);
  655.     return PLUGIN_HANDLED;
  656.    
  657. }
  658. public xm1014_menu(id) {
  659.    
  660.     new sText[256], iSize = sizeof(WeaponXM1014);
  661.    
  662.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wXM1014 Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][M3]);
  663.     new iMenu = menu_create(sText, "xm1014_handler");
  664.    
  665.     for(new i; i < iSize; i++){
  666.         formatex(sText, charsmax(sText), WeaponXM1014[i][Points] <= g_uPoints[id][XM1014] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponXM1014[i][GunName], g_uPoints[id][XM1014], WeaponXM1014[i][Points])
  667.         menu_additem(iMenu, sText);
  668.     }
  669.    
  670.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  671.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  672.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  673.    
  674.     menu_display(id, iMenu, 0);
  675. }
  676.  
  677. public xm1014_handler(id, iMenu, item) {
  678.     if( item == MENU_EXIT ) {
  679.         menu_destroy(iMenu);
  680.         return PLUGIN_HANDLED;
  681.     }
  682.    
  683.     if(WeaponXM1014[item][Points] <= g_uPoints[id][XM1014]) {
  684.         g_SelectedGun[id][XM1014] = item;
  685.         } else {
  686.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  687.     }
  688.    
  689.     menu_destroy(iMenu);
  690.     return PLUGIN_HANDLED;
  691.    
  692. }
  693. public knife_menu(id) {
  694.    
  695.     new sText[256], iSize = sizeof(WeaponXM1014);
  696.    
  697.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wKNIFE Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][KNIFE]);
  698.     new iMenu = menu_create(sText, "knife_handler");
  699.    
  700.     for(new i; i < iSize; i++){
  701.         formatex(sText, charsmax(sText), WeaponKNIFE[i][Points] <= g_uPoints[id][KNIFE] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponKNIFE[i][GunName], g_uPoints[id][KNIFE], WeaponKNIFE[i][Points])
  702.         menu_additem(iMenu, sText);
  703.     }
  704.    
  705.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  706.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  707.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  708.    
  709.     menu_display(id, iMenu, 0);
  710. }
  711.  
  712. public knife_handler(id, iMenu, item) {
  713.     if( item == MENU_EXIT ) {
  714.         menu_destroy(iMenu);
  715.         return PLUGIN_HANDLED;
  716.     }
  717.    
  718.     if(WeaponKNIFE[item][Points] <= g_uPoints[id][KNIFE]) {
  719.         g_SelectedGun[id][KNIFE] = item;
  720.         } else {
  721.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  722.     }
  723.    
  724.     menu_destroy(iMenu);
  725.     return PLUGIN_HANDLED;
  726.    
  727. }
  728. public deagle_menu(id) {
  729.    
  730.     new sText[256], iSize = sizeof(WeaponDEAGLE);
  731.    
  732.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wDEAGLE Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][DEAGLE]);
  733.     new iMenu = menu_create(sText, "deagle_handler");
  734.    
  735.     for(new i; i < iSize; i++){
  736.         formatex(sText, charsmax(sText), WeaponDEAGLE[i][Points] <= g_uPoints[id][DEAGLE] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponDEAGLE[i][GunName], g_uPoints[id][DEAGLE], WeaponDEAGLE[i][Points])
  737.         menu_additem(iMenu, sText);
  738.     }
  739.    
  740.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  741.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  742.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  743.    
  744.     menu_display(id, iMenu, 0);
  745. }
  746.  
  747. public deagle_handler(id, iMenu, item) {
  748.     if( item == MENU_EXIT ) {
  749.         menu_destroy(iMenu);
  750.         return PLUGIN_HANDLED;
  751.     }
  752.    
  753.     if(WeaponDEAGLE[item][Points] <= g_uPoints[id][DEAGLE]) {
  754.         g_SelectedGun[id][DEAGLE] = item;
  755.         } else {
  756.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  757.     }
  758.    
  759.     menu_destroy(iMenu);
  760.     return PLUGIN_HANDLED;
  761.    
  762. }
  763. public usp_menu(id) {
  764.    
  765.     new sText[256], iSize = sizeof(WeaponUSP);
  766.    
  767.     format(sText, charsmax(sText), "[~|ChamPs|~] \r» \wUSP Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][USP]);
  768.     new iMenu = menu_create(sText, "usp_handler");
  769.    
  770.     for(new i; i < iSize; i++){
  771.         formatex(sText, charsmax(sText), WeaponUSP[i][Points] <= g_uPoints[id][USP] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponUSP[i][GunName], g_uPoints[id][USP], WeaponUSP[i][Points])
  772.         menu_additem(iMenu, sText);
  773.     }
  774.    
  775.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  776.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  777.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  778.    
  779.     menu_display(id, iMenu, 0);
  780. }
  781.  
  782. public usp_handler(id, iMenu, item) {
  783.     if( item == MENU_EXIT ) {
  784.         menu_destroy(iMenu);
  785.         return PLUGIN_HANDLED;
  786.     }
  787.    
  788.     if(WeaponUSP[item][Points] <= g_uPoints[id][USP]) {
  789.         g_SelectedGun[id][USP] = item;
  790.         } else {
  791.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3pontod az öléshez.^3!", gChatPrefix);
  792.     }
  793.    
  794.     menu_destroy(iMenu);
  795.     return PLUGIN_HANDLED
  796.    
  797. }
  798. public glock_menu(id) {
  799.    
  800.     new sText[256], iSize = sizeof(WeaponGLOCK);
  801.    
  802.     format(sText, charsmax(sText), "^3[%s]^4 \r» \wGLOCK Skinek \r[\dPontjaid: \y%d\r]", g_uPoints[id][GLOCK]);
  803.     new iMenu = menu_create(sText, "glock_handler");
  804.    
  805.     for(new i; i < iSize; i++){
  806.         formatex(sText, charsmax(sText), WeaponGLOCK[i][Points] <= g_uPoints[id][GLOCK] ? "\w%s \y[\d%d\w/\r%d\y]":"\w%s \y*Elérve", WeaponGLOCK[i][GunName], g_uPoints[id][GLOCK], WeaponGLOCK[i][Points])
  807.         menu_additem(iMenu, sText);
  808.     }
  809.    
  810.     menu_setprop(iMenu, MPROP_BACKNAME, "Vissza");
  811.     menu_setprop(iMenu, MPROP_NEXTNAME, "Tovább");
  812.     menu_setprop(iMenu, MPROP_EXITNAME, "Kilépés");
  813.    
  814.     menu_display(id, iMenu, 0);
  815. }
  816.  
  817. public glock_handler(id, iMenu, item) {
  818.     if( item == MENU_EXIT ) {
  819.         menu_destroy(iMenu);
  820.         return PLUGIN_HANDLED;
  821.     }
  822.    
  823.     if(WeaponDEAGLE[item][Points] <= g_uPoints[id][DEAGLE]) {
  824.         g_SelectedGun[id][DEAGLE] = item;
  825.         } else {
  826.         client_print_color(id, print_team_default, "^3[%s]^4 ^1Sajnálom, nincs elegendő ^3Pontod^3!");
  827.     }
  828.    
  829.     menu_destroy(iMenu);
  830.     return PLUGIN_HANDLED
  831. }
  832. public client_putinserver(id)
  833. {
  834.     if(is_user_bot(id))
  835.         return;
  836.    
  837.     set_task(1.0, "hudrendszer", id, _, _, "b");
  838.    
  839.     betoltve[id] = false;
  840.     Masodpercek[id] = 0;
  841.     Rang[id] = 0;
  842.     Oles[id] = 0;
  843.     hudkibe[id] = 1;
  844.     g_uPoints[id][M4A1] = 0;
  845.     g_uPoints[id][AK47] = 0;
  846.     g_uPoints[id][AWP] = 0;
  847.     g_uPoints[id][SCOUT] = 0;
  848.     g_uPoints[id][FAMAS] = 0;
  849.     g_uPoints[id][GALIL] = 0;
  850.     g_uPoints[id][AUG] = 0;
  851.     g_uPoints[id][M3] = 0;
  852.     g_uPoints[id][XM1014] = 0;
  853.     g_uPoints[id][KNIFE] = 0;
  854.     g_uPoints[id][DEAGLE] = 0;
  855.     g_uPoints[id][USP] = 0;
  856.     g_uPoints[id][GLOCK] = 0;
  857.     g_SelectedGun[id][M4A1] = 0;
  858.     g_SelectedGun[id][AK47] = 0;
  859.     g_SelectedGun[id][AWP] = 0;
  860.     g_SelectedGun[id][SCOUT] = 0;
  861.     g_SelectedGun[id][FAMAS] = 0;
  862.     g_SelectedGun[id][GALIL] = 0;
  863.     g_SelectedGun[id][AUG] = 0;
  864.     g_SelectedGun[id][M3] = 0;
  865.     g_SelectedGun[id][XM1014] = 0;
  866.     g_SelectedGun[id][KNIFE] = 0;
  867.     g_SelectedGun[id][DEAGLE] = 0;
  868.     g_SelectedGun[id][USP] = 0;
  869.     g_SelectedGun[id][GLOCK] = 0;
  870.    
  871.     SelectDataTable(id);
  872. }
  873. public client_disconnected(id)
  874. {
  875.     if(is_user_bot(id))
  876.         return;
  877.    
  878.     TableUpdate(id);
  879.    
  880. }
  881. new Handle:g_SqlTuple;
  882. public plugin_cfg()
  883. {
  884.     //Kiszolgáló | Felhasználó | Jelszó | Adatbázis
  885.    
  886.     g_SqlTuple = SQL_MakeDbTuple("mysql8.srkhost.eu:3306", "u29514_Q9S6QiB1On", "9DuKrQSL4!4z9Rcr9R4.sf1Y", "s29514_valami");
  887.     CreateTable();
  888. }
  889. public CreateTable(){
  890.     new iLen;
  891.     static sQuery[10048];
  892.    
  893.     iLen += formatex(sQuery[iLen], charsmax(sQuery), "CREATE TABLE IF NOT EXISTS \`%s\` ", Tablename);
  894.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "( ");
  895.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`Id\` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,");
  896.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`SteamId\` varchar(64) NOT NULL,");
  897.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`Masodpercek\` int(11) NOT NULL,");
  898.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`Szint\` int(11) NOT NULL,");
  899.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`Oles\` int(11) NOT NULL,");
  900.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`hudkibe\` int(11) NOT NULL,");
  901.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsM4A1\` int(11) NOT NULL,");
  902.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsAK47\` int(11) NOT NULL,");
  903.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsAWP\` int(11) NOT NULL,");
  904.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsSCOUT\` int(11) NOT NULL,");
  905.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsFAMAS\` int(11) NOT NULL,");
  906.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsGALIL\` int(11) NOT NULL,");
  907.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsAUG\` int(11) NOT NULL,");
  908.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsM3\` int(11) NOT NULL,");
  909.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsXM1014\` int(11) NOT NULL,");
  910.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsKNIFE\` int(11) NOT NULL,");
  911.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsDEAGLE\` int(11) NOT NULL,");
  912.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsUSP\` int(11) NOT NULL,");
  913.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_uPointsGLOCK\` int(11) NOT NULL,");
  914.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunM4A1\` int(11) NOT NULL,");
  915.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunAK47\` int(11) NOT NULL,");
  916.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunAWP\` int(11) NOT NULL,");
  917.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunSCOUT\` int(11) NOT NULL,");
  918.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunFAMAS\` int(11) NOT NULL,");
  919.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunGALIL\` int(11) NOT NULL,");
  920.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunAUG\` int(11) NOT NULL,");
  921.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunM3\` int(11) NOT NULL,");
  922.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunXM1014\` int(11) NOT NULL,");
  923.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunKNIFE\` int(11) NOT NULL,");
  924.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunDEAGLE\` int(11) NOT NULL,");
  925.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunUSP\` int(11) NOT NULL,");
  926.     iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "\`g_SelectedGunGLOCK\` int(11) NOT NULL)");
  927.    
  928.     SQL_ThreadQuery(g_SqlTuple, "TableCreateThread", sQuery);
  929. }
  930. public TableUpdate(id)
  931. {
  932.     if(betoltve[id]) {
  933.         static sQuery[10048];
  934.         new iLen, sSteamID[64];
  935.         get_user_authid(id, sSteamID, charsmax(sSteamID));
  936.        
  937.         iLen += formatex(sQuery[iLen], charsmax(sQuery), "UPDATE \`%s\` SET ", Tablename);
  938.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "Masodpercek = ^"%i^", ", Masodpercek[id]+get_user_time(id));
  939.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "Szint = ^"%i^", ", Rang[id]);
  940.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "Oles = ^"%i^", ", Oles[id]);
  941.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "hudkibe = ^"%i^", ", hudkibe[id]);
  942.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsM4A1 = ^"%i^",", g_uPoints[id][M4A1]);
  943.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsAK47 = ^"%i^",", g_uPoints[id][AK47]);
  944.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsAWP = ^"%i^",", g_uPoints[id][AWP]);
  945.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsSCOUT = ^"%i^",", g_uPoints[id][SCOUT]);
  946.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsFAMAS = ^"%i^",", g_uPoints[id][FAMAS]);
  947.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsGALIL = ^"%i^",", g_uPoints[id][GALIL]);
  948.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsAUG = ^"%i^",", g_uPoints[id][AUG]);
  949.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsM3 = ^"%i^",", g_uPoints[id][M3]);
  950.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsXM1014 = ^"%i^",", g_uPoints[id][XM1014]);
  951.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsKNIFE = ^"%i^",", g_uPoints[id][KNIFE]);
  952.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsDEAGLE = ^"%i^",", g_uPoints[id][DEAGLE]);
  953.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsUSP = ^"%i^",", g_uPoints[id][USP]);
  954.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_uPointsGLOCK = ^"%i^",", g_uPoints[id][GLOCK]);
  955.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunAK47 = ^"%i^",", g_SelectedGun[id][AK47]);
  956.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunAWP = ^"%i^",", g_SelectedGun[id][AWP]);
  957.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunSCOUT = ^"%i^",", g_SelectedGun[id][SCOUT]);
  958.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunFAMAS = ^"%i^",", g_SelectedGun[id][FAMAS]);
  959.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunGALIL = ^"%i^",", g_SelectedGun[id][GALIL]);
  960.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunAUG = ^"%i^",", g_SelectedGun[id][AUG]);
  961.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunM3 = ^"%i^",", g_SelectedGun[id][M3]);
  962.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunXM1014 = ^"%i^",", g_SelectedGun[id][XM1014]);
  963.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunKNIFE = ^"%i^",", g_SelectedGun[id][KNIFE]);
  964.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunDEAGLE = ^"%i^",", g_SelectedGun[id][DEAGLE]);
  965.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunUSP = ^"%i^",", g_SelectedGun[id][USP]);
  966.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunGLOCK = ^"%i^",", g_SelectedGun[id][GLOCK]);
  967.        
  968.         iLen += formatex(sQuery[iLen], charsmax(sQuery)-iLen, "g_SelectedGunM4A1 = ^"%i^" WHERE \`SteamId\` = ^"%s^";", g_SelectedGun[id][M4A1], sSteamID);
  969.         SQL_ThreadQuery(g_SqlTuple, "QuerySetDataTable", sQuery);
  970.     }
  971. }
  972. public TableCreateThread(iFailState, Handle:sQuery, sError[], iErrcode, sData[], iDataSize, Float:fQueuetime)
  973. {
  974.     if(iFailState == TQUERY_CONNECT_FAILED)
  975.         set_fail_state("[Create] Nem lehet csatlakozni az adatbazishoz!");
  976.     else if(iFailState == TQUERY_QUERY_FAILED)
  977.         set_fail_state("[Create] Lekerdezesi hiba");
  978.     if(iErrcode)
  979.         log_amx("[Create] Hiba:**!! %s !!**", sError);
  980. }
  981. public TableInsert(id)
  982. {
  983.     static sQuery[10048], sSteamID[64];
  984.    
  985.     get_user_authid(id, sSteamID, charsmax(sSteamID));
  986.     formatex(sQuery, charsmax(sQuery), "INSERT INTO \`%s\` (\`SteamId\`) VALUES (^"%s^");", Tablename, sSteamID);
  987.     SQL_ThreadQuery(g_SqlTuple, "QuerySetDataTable", sQuery);
  988.     betoltve[id] = true;
  989. }
  990. public SelectDataTable(id)
  991. {
  992.     static sQuery[10048];
  993.     new sData[1], sSteamID[64];
  994.     sData[0] = id;
  995.    
  996.     get_user_authid(id, sSteamID, charsmax(sSteamID));
  997.    
  998.     formatex(sQuery, charsmax(sQuery), "SELECT * FROM \`%s\` WHERE SteamId = ^"%s^";", Tablename, sSteamID);
  999.     SQL_ThreadQuery(g_SqlTuple, "QuerySelectDataTable", sQuery, sData, 1);
  1000. }
  1001. public QuerySelectDataTable(iFailState, Handle:sQuery, sError[], iErrcode, sData[], iDataSize, Float:fQueuetime)
  1002. {
  1003.     if(iFailState == TQUERY_CONNECT_FAILED || iFailState == TQUERY_QUERY_FAILED)
  1004.     {
  1005.         log_amx("[Insert] Hiba:**!! %s !!**", sError);
  1006.         return;
  1007.     }
  1008.     else
  1009.     {
  1010.         new id = sData[0];
  1011.        
  1012.         if(SQL_NumRows(sQuery) > 0)
  1013.         {
  1014.             Masodpercek[id] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "Masodpercek"));
  1015.             Rang[id] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "Szint"));
  1016.             Oles[id] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "Oles"));
  1017.             hudkibe[id] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "hudkibe"));
  1018.             g_uPoints[id][M4A1] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsM4A1"));
  1019.             g_uPoints[id][AK47] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsAK47"));
  1020.             g_uPoints[id][AWP] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsAWP"));
  1021.             g_uPoints[id][SCOUT] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsSCOUT"));
  1022.             g_uPoints[id][FAMAS] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsFAMAS"));
  1023.             g_uPoints[id][GALIL] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsGALIL"));
  1024.             g_uPoints[id][AUG] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsAUG"));
  1025.             g_uPoints[id][M3] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsM3"));
  1026.             g_uPoints[id][XM1014] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsXM1014"));
  1027.             g_uPoints[id][KNIFE] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsKNIFE"));
  1028.             g_uPoints[id][DEAGLE] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsDEAGLE"));
  1029.             g_uPoints[id][USP] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsUSP"));
  1030.             g_uPoints[id][GLOCK] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_uPointsGLOCK"));
  1031.             g_SelectedGun[id][M4A1] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunM4A1"));
  1032.             g_SelectedGun[id][AK47] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunAK47"));
  1033.             g_SelectedGun[id][AWP] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunAWP"));
  1034.             g_SelectedGun[id][SCOUT] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunSCOUT"));
  1035.             g_SelectedGun[id][FAMAS] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunFAMAS"));
  1036.             g_SelectedGun[id][GALIL] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunGALIL"));
  1037.             g_SelectedGun[id][AUG] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunAUG"));
  1038.             g_SelectedGun[id][M3] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunM3"));
  1039.             g_SelectedGun[id][XM1014] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunXM1014"));
  1040.             g_SelectedGun[id][KNIFE] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunKNIFE"));
  1041.             g_SelectedGun[id][DEAGLE] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunDEAGLE"));
  1042.             g_SelectedGun[id][USP] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunUSP"));
  1043.             g_SelectedGun[id][GLOCK] = SQL_ReadResult(sQuery, SQL_FieldNameToNum(sQuery, "g_SelectedGunGLOCK"));
  1044.             betoltve[id] = true;
  1045.         }
  1046.         else
  1047.             TableInsert(id);
  1048.     }
  1049. }
  1050. public QuerySetDataTable(iFailState, Handle:sQuery, sError[], iErrcode, sData[], iDataSize, Float:fQueuetime)
  1051. {
  1052.     if(iFailState == TQUERY_CONNECT_FAILED || iFailState == TQUERY_QUERY_FAILED)
  1053.     {
  1054.         log_amx("[SetData] Hiba:**!! %s !!**", sError);
  1055.         return;
  1056.     }
  1057. }    
  1058.  
  1059. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  1060. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  1061. */


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Miért nem műkődik ?
HozzászólásElküldve: 2023.09.07. 19:30 
Offline
Tud valamit
Avatar

Csatlakozott: 2020.05.14. 11:32
Hozzászólások: 142
Megköszönt másnak: 13 alkalommal
Megköszönték neki: 56 alkalommal
Amit küldtél kód úgy ahogy van szerintem le sem fordul, pl. emiatt:
{"AK47 | Default", "models/v_ak47.mdl", 0, }

Probléma egyébként nincsen, egyszerűen nem állítottál be megfelelő értékeket a fegyvereknek (ölésszámot i guess), illetve sehol nem növeled a játékos pont- /ölésszámát

_________________
[ExTasY] Furien Hero [CRAFT SYSTEM]
213.181.206.21:27140

[ExTasY] Super Deathmatch [SENTRY GUN]
213.181.206.27:27069

[ExTasY] Zombie Mutation [ZOMBIE NPC]
213.181.206.28:27057
Facebook
Discord

Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Miért nem műkődik ?
HozzászólásElküldve: 2023.09.09. 08:50 
Offline
Jómunkásember

Csatlakozott: 2020.06.14. 17:59
Hozzászólások: 368
Megköszönt másnak: 64 alkalommal
Megköszönték neki: 10 alkalommal
DexoN írta:
Amit küldtél kód úgy ahogy van szerintem le sem fordul, pl. emiatt:
{"AK47 | Default", "models/v_ak47.mdl", 0, }

Probléma egyébként nincsen, egyszerűen nem állítottál be megfelelő értékeket a fegyvereknek (ölésszámot i guess), illetve sehol nem növeled a játékos pont- /ölésszámát


Szia!

Köszönöm szépen hogy rá néztél, már működik a kiválasztott skin is..... :)


Hozzászólás jelentése
Vissza a tetejére
   
Hozzászólások megjelenítése:  Rendezés  
Új téma nyitása  Hozzászólás a témához  [ 9 hozzászólás ] 


Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 61 vendég


Nyithatsz új témákat ebben a fórumban.
Válaszolhatsz egy témára ebben a fórumban.
Nem szerkesztheted a hozzászólásaidat ebben a fórumban.
Nem törölheted a hozzászólásaidat ebben a fórumban.
Nem küldhetsz csatolmányokat ebben a fórumban.

Keresés:
Ugrás:  
Powered by phpBB® Forum Software © phpBB Limited
Magyar fordítás © Magyar phpBB Közösség
Portal: Kiss Portal Extension © Michael O'Toole