#include <amxmodx>
#include <fakemeta>
#include <dhudmessage>
#include <fvault>
#include <colorchat>
#include <engine>
//-------------------------------------------------------
// @@@@@@@@@ @     @ @@@@@@@@ @@@@@@    @       @ @@@@@@@ |
// @          @   @  @      @ @     @@  @       @ @       |
// @           @ @   @      @ @      @  @       @ @       |
// @@@@@@@@@    @    @      @ @      @  @       @ @@@@@@@ |
// @           @ @   @      @ @      @  @       @       @ |
// @          @   @  @      @ @     @@  @       @       @ |
// @@@@@@@@@ @     @ @@@@@@@@ @@@@@@    @@@@@@@@@ @@@@@@@ |
//-------------------------------------------------------
new const PLUGIN[] = "Statrak Skin Menu"
new const VERZIO[] = "1.0"
new const KESZITO[] = "exodus"
new const file[] = "statrak" //Fájl neve amibe menti a játékosok öléseit
 
#define AUTOMENTES 60.0 //Az autómatikus mentés időköze másodpercben (1 percenként ment)
#define STATRAKHUD 1.0 //Statrak HUD-ért felel, 1 másodpercenkéne frissíti(Nem ajánlom állítani így tökéletes).
 
new const PREFIX[] = "Statrak Skin Menu" //Chatben és a menüben megjelenő prefix
 
enum _:valami
{
    Neve[32],
    Oles[8]
}
new const FEGYOK[][valami] =
//{ "Fegyver neve", Szükséges Ölés }
{
{ "AK47 | Default", 0 }, //Ehhez az értékhez ne nyúlj, maradjon mindig 0
{ "AK47 | Galaxy", 40 },
{ "AK47 | Leaves", 80 },
{ "AK47 | Metal", 160 },
{ "AK47 | Arany", 320 },
{ "AK47 | Star", 640 },
{ "M4A1 | Default", 0 }, //Ehhez az értékhez ne nyúlj, maradjon mindig 0
{ "M4A1 | ChoijiyoonPaint", 40 },
{ "M4A1 | Eagle", 80 },
{ "M4A1 | Ezüst", 160 },
{ "M4A1 | Galaxy", 320 },
{ "M4A1 | Tűz", 640 },
{ "AWP | Default", 0 }, //Ehhez az értékhez ne nyúlj, maradjon mindig 0
{ "AWP | Arany", 40 },
{ "AWP | Galaxy", 80 },
{ "AWP | Metal", 160 },
{ "AWP | Tűz", 320 },
{ "AWP | Ultra", 640 },
{ "Famas | Deafult" , 0 },
{ "Famas | BioHazard", 40 },
{ "Famas | Green ", 80 },
{ "Famas | Ice ", 160 },
{ "Famas | Spitfire", 320 },
{ "Famas | Nuclear", 640 }
}
new const MODELLEK[][] =
{
{ "models/statrak/Default/v_ak47.mdl" },
{ "models/statrak/Ak47/galaxy.mdl" },
{ "models/statrak/Ak47/leaves.mdl" },
{ "models/statrak/Ak47/metal.mdl" },
{ "models/statrak/Ak47/v_ak47.mdl" },
{ "models/statrak/Ak47/star.mdl" },
{ "models/statrak/Default/v_m4a1.mdl" },
{ "models/statrak/M4A1/choijiyoonpaint.mdl" },
{ "models/statrak/M4A1/eagle.mdl" },
{ "models/statrak/M4A1/ezust.mdl" },
{ "models/statrak/M4A1/galaxy.mdl" },
{ "models/statrak/M4A1/tuz.mdl" },
{ "models/statrak/Default/v_awp.mdl" },
{ "models/statrak/AWP/arany.mdl" },
{ "models/statrak/AWP/galaxy.mdl" },
{ "models/statrak/AWP/metal.mdl" },
{ "models/statrak/AWP/tuz.mdl" },
{ "models/statrak/AWP/ultra.mdl" },
{ "models/statrak/Default/v_famas.mdl"},
{ "models/statrak/Famas/Biohazard.mdl"},
{ "models/statrak/Famas/GreenTriangle.mdl"},
{ "models/statrak/Famas/Ice.mdl"},
{ "models/statrak/Famas/Spitfire.mdl"},
{ "models/statrak/Famas/Nuclear.mdl"}
}
 
new const SZOVEG[][] =
//Itt szerkesztheted a plugin szöveg részeit
//Színkódok:
//Szürke: \d
//Piros: \r
//Sárga: \y
//Fehér: \w
{
{ "A Skin Felszerelése" },
{ "A \yStatrak* \wNullázása" },
{ "\dÖlés szükséges" },
{ "\yStatrak*:" },
{ "Sikeresen felszerelted ezt:" },
{ "\yStatrak* \rNullázása" },
{ "\rBiztosan nullázod?" },
{ "Igen" },
{ "Nem, vissza!" },
{ "\wAK47 \yStatrak* \wÖlés Összesen:" },
{ "\wM4A1 \yStatrak* \wÖlés Összesen:" },
{ "\yStatrak* \wÖlés Összesen:" },
{ "\wAWP \yStatrak* \wÖlés Összesen:" },
{ "\wFAMAS \yStatrak* \wÖlés Összesen:" }
}
 
new skin[4][33]
new ak47_st[7][33], m4a1_st[7][33], awp_st[7][33],famas_st[7][33]
 
public plugin_init()
{
register_plugin(PLUGIN,VERZIO,KESZITO)
 
register_event("CurWeapon", "csere", "be", "1=1") //A skin megjelenítéséért felel!
register_event("DeathMsg", "Halal", "a") //Az ölésnél való +Statrak pontokért felel!
 
register_impulse(201, "FoMenu") //T betüre előjön a menü, ha nem akarod tegyél elé //-et
register_clcmd("say /menu", "FoMenu") //Itt /menu parancsra elöjön a menü, ha nem akarod tegyél elé //-et
 
set_task(STATRAKHUD, "StatrakHud",_,_,_,"b") //Statrak HUD-okért.
set_task(AUTOMENTES, "AutoMentes",_,_,_,"b") //Autómatikus mentésért felel.
}
public plugin_precache()
{
for(new a; a < sizeof MODELLEK; a++)
precache_model(MODELLEK[a])
}
public csere(id)
{
new fegyver = get_user_weapon(id)
 
if(skin[0][id] == 0 && fegyver == CSW_AK47)
{
    set_pev(id, pev_viewmodel2, MODELLEK[0])
}
if(skin[0][id] == 1 && fegyver == CSW_AK47)
{
    set_pev(id, pev_viewmodel2, MODELLEK[1])
}
if(skin[0][id] == 2 && fegyver == CSW_AK47)
{
    set_pev(id, pev_viewmodel2, MODELLEK[2])
}
if(skin[0][id] == 3 && fegyver == CSW_AK47)
{
    set_pev(id, pev_viewmodel2, MODELLEK[3])
}
if(skin[0][id] == 4 && fegyver == CSW_AK47)
{
    set_pev(id, pev_viewmodel2, MODELLEK[4])
}
if(skin[0][id] == 5 && fegyver == CSW_AK47)
{
    set_pev(id, pev_viewmodel2, MODELLEK[5])
}
if(skin[1][id] == 0 && fegyver == CSW_M4A1)
{
    set_pev(id, pev_viewmodel2, MODELLEK[6])
}
if(skin[1][id] == 1 && fegyver == CSW_M4A1)
{
    set_pev(id, pev_viewmodel2, MODELLEK[7])
}
if(skin[1][id] == 2 && fegyver == CSW_M4A1)
{
    set_pev(id, pev_viewmodel2, MODELLEK[8])
}
if(skin[1][id] == 3 && fegyver == CSW_M4A1)
{
    set_pev(id, pev_viewmodel2, MODELLEK[9])
}
if(skin[1][id] == 4 && fegyver == CSW_M4A1)
{
    set_pev(id, pev_viewmodel2, MODELLEK[10])
}
if(skin[1][id] == 5 && fegyver == CSW_M4A1)
{
    set_pev(id, pev_viewmodel2, MODELLEK[11])
}
if(skin[2][id] == 0 && fegyver == CSW_AWP)
{
    set_pev(id, pev_viewmodel2, MODELLEK[12])
}
if(skin[2][id] == 1 && fegyver == CSW_AWP)
{
    set_pev(id, pev_viewmodel2, MODELLEK[13])
}
if(skin[2][id] == 2 && fegyver == CSW_AWP)
{
    set_pev(id, pev_viewmodel2, MODELLEK[14])
}
if(skin[2][id] == 3 && fegyver == CSW_AWP)
{
    set_pev(id, pev_viewmodel2, MODELLEK[15])
}
if(skin[2][id] == 4 && fegyver == CSW_AWP)
{
    set_pev(id, pev_viewmodel2, MODELLEK[16])
}
if(skin[2][id] == 5 && fegyver == CSW_AWP)
{
    set_pev(id, pev_viewmodel2, MODELLEK[17])
}
if(skin[3][id] == 0 && fegyver == CSW_FAMAS)
{
    set_pev(id, pev_viewmodel2, MODELLEK[18])
}
if(skin[3][id] == 1 && fegyver == CSW_FAMAS)
{
    set_pev(id, pev_viewmodel2, MODELLEK[19])
}
if(skin[3][id] == 2 && fegyver == CSW_FAMAS)
{
    set_pev(id, pev_viewmodel2, MODELLEK[20])
}
if(skin[3][id] == 3 && fegyver == CSW_FAMAS)
{
    set_pev(id, pev_viewmodel2, MODELLEK[21])
}
if(skin[3][id] == 4 && fegyver == CSW_FAMAS)
{
    set_pev(id, pev_viewmodel2, MODELLEK[22])
}
if(skin[3][id] == 5 && fegyver == CSW_FAMAS)
{
    set_pev(id, pev_viewmodel2, MODELLEK[23])
}
 
}
 
public Halal()
{
new id = read_data(1)
 
if(id == read_data(2) || id == 0)
return PLUGIN_HANDLED
 
if(get_user_weapon(id) == CSW_AK47 && skin[0][id] == 0)
{
ak47_st[1][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AK47 && skin[0][id] == 1)
{
ak47_st[2][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AK47 && skin[0][id] == 2)
{
ak47_st[3][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AK47 && skin[0][id] == 3)
{
ak47_st[4][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AK47 && skin[0][id] == 4)
{
ak47_st[5][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AK47 && skin[0][id] == 5)
{
ak47_st[6][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_M4A1 && skin[1][id] == 0)
{
m4a1_st[1][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_M4A1 && skin[1][id] == 1)
{
m4a1_st[2][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_M4A1 && skin[1][id] == 2)
{
m4a1_st[3][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_M4A1 && skin[1][id] == 3)
{
m4a1_st[4][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_M4A1 && skin[1][id] == 4)
{
m4a1_st[5][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_M4A1 && skin[1][id] == 5)
{
m4a1_st[6][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AWP && skin[2][id] == 0)
{
awp_st[1][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AWP && skin[2][id] == 1)
{
awp_st[2][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AWP && skin[2][id] == 2)
{
awp_st[3][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AWP && skin[2][id] == 3)
{
awp_st[4][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AWP && skin[2][id] == 4)
{
awp_st[5][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_AWP && skin[2][id] == 5)
{
awp_st[6][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_FAMAS && skin[3][id] == 0)
{
famas_st[1][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_FAMAS && skin[3][id] == 1)
{
famas_st[2][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_FAMAS && skin[3][id] == 2)
{
famas_st[3][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_FAMAS && skin[3][id] == 3)
{
famas_st[4][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_FAMAS && skin[3][id] == 4)
{
famas_st[5][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
if(get_user_weapon(id) == CSW_FAMAS && skin[3][id] == 5)
{
famas_st[6][id]++
set_dhudmessage(random(255), random(255), random(255), -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+1 Statrak* Kills")
}
}
public client_disconnect(id)
{
    Save(id)
    skin[0][id] = 0
    skin[1][id] = 0
    skin[2][id] = 0
    skin[3][id] = 0
}
public FoMenu(id)
{
    new String[121]
    formatex(String, charsmax(String), "%s^n%s %d",PREFIX,SZOVEG[11], famas_st[1][id]+famas_st[2][id]+famas_st[3][id]+famas_st[4][id]+famas_st[5][id]+famas_st[6][id]+ak47_st[1][id]+ak47_st[2][id]+ak47_st[3][id]+ak47_st[4][id]+ak47_st[5][id]+ak47_st[6][id]+m4a1_st[1][id]+m4a1_st[2][id]+m4a1_st[3][id]+m4a1_st[4][id]+m4a1_st[5][id]+m4a1_st[6][id]+awp_st[1][id]+awp_st[2][id]+awp_st[3][id]+awp_st[4][id]+awp_st[5][id]+awp_st[6][id]+famas_st[1][id])
    new menu = menu_create(String, "menu_handler")
 
    formatex(String, charsmax(String), "AK47 Skinek")
    menu_additem(menu, String, "m1",0)
    formatex(String, charsmax(String), "M4A1 Skinek")
    menu_additem(menu, String, "m2",0)
    formatex(String, charsmax(String), "AWP Skinek")
    menu_additem(menu, String, "m3",0)
    formatex(String, charsmax(String), "Famas Skinek")
    menu_additem(menu, String, "m4",0)
   
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
}
 
public ak47menu(id)
{
    new String[121]
    formatex(String, charsmax(String), "%s \d>> \rAK47 Menü^n%s %d",PREFIX,SZOVEG[9],ak47_st[1][id]+ak47_st[2][id]+ak47_st[3][id]+ak47_st[4][id]+ak47_st[5][id]+ak47_st[6][id])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[0][Neve],SZOVEG[3],ak47_st[1][id])
    menu_additem(menu, String, "a1",0)
    if(ak47_st[1][id] >= FEGYOK[1][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[1][Neve],SZOVEG[3],ak47_st[2][id])
    menu_additem(menu, String, "a2",0)
    }
    else if(ak47_st[1][id] < FEGYOK[1][Oles])
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",ak47_st[1][id],FEGYOK[1][Oles],SZOVEG[2])
    menu_additem(menu, String, "v1",0)
    }
    if(ak47_st[2][id] >= FEGYOK[2][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[2][Neve],SZOVEG[3],ak47_st[3][id])
    menu_additem(menu, String, "a3",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",ak47_st[2][id],FEGYOK[2][Oles],SZOVEG[2])
    menu_additem(menu, String, "v1",0)
    }
    if(ak47_st[3][id] >= FEGYOK[3][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[3][Neve],SZOVEG[3],ak47_st[4][id])
    menu_additem(menu, String, "a4",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",ak47_st[3][id],FEGYOK[3][Oles], SZOVEG[2])
    menu_additem(menu, String, "v1",0)
    }
    if(ak47_st[4][id] >= FEGYOK[4][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[4][Neve],SZOVEG[3],ak47_st[5][id])
    menu_additem(menu, String, "a5",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",ak47_st[4][id],FEGYOK[4][Oles], SZOVEG[2])
    menu_additem(menu, String, "v1",0)
    }
    if(ak47_st[5][id] >= FEGYOK[5][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[5][Neve],SZOVEG[3],ak47_st[6][id])
    menu_additem(menu, String, "a6",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",ak47_st[5][id],FEGYOK[5][Oles], SZOVEG[2])
    menu_additem(menu, String, "v1",0)
    }
   
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
}
public m4a1menu(id)
{
    new String[121]
    formatex(String, charsmax(String), "%s \d>> \rM4A1 Menü^n%s %d",PREFIX,SZOVEG[10],m4a1_st[1][id]+m4a1_st[2][id]+m4a1_st[3][id]+m4a1_st[4][id]+m4a1_st[5][id]+m4a1_st[6][id])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[6][Neve],SZOVEG[3],m4a1_st[1][id])
    menu_additem(menu, String, "a7",0)
    if(m4a1_st[1][id] >= FEGYOK[7][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[7][Neve],SZOVEG[3],m4a1_st[2][id])
    menu_additem(menu, String, "a8",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",m4a1_st[1][id],FEGYOK[7][Oles], SZOVEG[2])
    menu_additem(menu, String, "v2",0)
    }
    if(m4a1_st[2][id] >= FEGYOK[8][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[8][Neve],SZOVEG[3],m4a1_st[3][id])
    menu_additem(menu, String, "a9",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",m4a1_st[2][id],FEGYOK[8][Oles], SZOVEG[2])
    menu_additem(menu, String, "v2",0)
    }
    if(m4a1_st[3][id] >= FEGYOK[9][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[9][Neve],SZOVEG[3],m4a1_st[4][id])
    menu_additem(menu, String, "a10",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",m4a1_st[3][id],FEGYOK[9][Oles], SZOVEG[2])
    menu_additem(menu, String, "v2",0)
    }
    if(m4a1_st[4][id] >= FEGYOK[10][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[10][Neve],SZOVEG[3],m4a1_st[5][id])
    menu_additem(menu, String, "a11",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",m4a1_st[4][id],FEGYOK[10][Oles], SZOVEG[2])
    menu_additem(menu, String, "v2",0)
    }
    if(m4a1_st[5][id] >= FEGYOK[11][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[11][Neve],SZOVEG[3],m4a1_st[6][id])
    menu_additem(menu, String, "a12",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",m4a1_st[5][id],FEGYOK[11][Oles], SZOVEG[2])
    menu_additem(menu, String, "v2",0)
    }
   
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
}
public awpmenu(id)
{
    new String[121]
    formatex(String, charsmax(String), "%s \d>> \rAWP Menü^n%s %d",PREFIX,SZOVEG[12],awp_st[1][id]+awp_st[2][id]+awp_st[3][id]+awp_st[4][id]+awp_st[5][id]+awp_st[6][id])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[12][Neve],SZOVEG[3],awp_st[1][id])
    menu_additem(menu, String, "a13",0)
    if(awp_st[1][id] >= FEGYOK[13][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[13][Neve],SZOVEG[3],awp_st[2][id])
    menu_additem(menu, String, "a14",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",awp_st[1][id],FEGYOK[13][Oles], SZOVEG[2])
    menu_additem(menu, String, "v3",0)
    }
    if(awp_st[2][id] >= FEGYOK[14][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[14][Neve],SZOVEG[3],awp_st[3][id])
    menu_additem(menu, String, "a15",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",awp_st[2][id],FEGYOK[14][Oles], SZOVEG[2])
    menu_additem(menu, String, "v3",0)
    }
    if(awp_st[3][id] >= FEGYOK[15][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[15][Neve],SZOVEG[3],awp_st[4][id])
    menu_additem(menu, String, "a16",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",awp_st[3][id],FEGYOK[15][Oles], SZOVEG[2])
    menu_additem(menu, String, "v3",0)
    }
    if(awp_st[4][id] >= FEGYOK[16][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[16][Neve],SZOVEG[3],awp_st[5][id])
    menu_additem(menu, String, "a17",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",awp_st[4][id],FEGYOK[16][Oles], SZOVEG[2])
    menu_additem(menu, String, "v3",0)
    }
    if(awp_st[5][id] >= FEGYOK[17][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[17][Neve],SZOVEG[3],awp_st[6][id])
    menu_additem(menu, String, "a18",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",awp_st[5][id],FEGYOK[17][Oles], SZOVEG[2])
    menu_additem(menu, String, "v3",0)
    }
   
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
}
 
public famasmenu(id)
{
    new String[121]
    formatex(String, charsmax(String), "%s \d>> \rAWP Menü^n%s %d",PREFIX,SZOVEG[12],famas_st[1][id]+famas_st[2][id]+famas_st[3][id]+famas_st[4][id]+famas_st[5][id]+famas_st[6][id])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[18][Neve],SZOVEG[3],famas_st[1][id])
    menu_additem(menu, String, "a13",0)
    if(famas_st[1][id] >= FEGYOK[19][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[19][Neve],SZOVEG[3],famas_st[2][id])
    menu_additem(menu, String, "a19",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",famas_st[1][id],FEGYOK[19][Oles], SZOVEG[2])
    menu_additem(menu, String, "v3",0)
    }
    if(famas_st[2][id] >= FEGYOK[20][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[20][Neve],SZOVEG[3],famas_st[3][id])
    menu_additem(menu, String, "a20",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",famas_st[2][id],FEGYOK[20][Oles], SZOVEG[2])
    menu_additem(menu, String, "v3",0)
    }
    if(famas_st[3][id] >= FEGYOK[21][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[21][Neve],SZOVEG[3],famas_st[4][id])
    menu_additem(menu, String, "a21",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",famas_st[3][id],FEGYOK[21][Oles], SZOVEG[2])
    menu_additem(menu, String, "v3",0)
    }
    if(famas_st[4][id] >= FEGYOK[22][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[22][Neve],SZOVEG[3],famas_st[5][id])
    menu_additem(menu, String, "a22",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",famas_st[4][id],FEGYOK[22][Oles], SZOVEG[2])
    menu_additem(menu, String, "v3",0)
    }
    if(famas_st[5][id] >= FEGYOK[23][Oles])
    {
    formatex(String, charsmax(String), "%s %s %d",FEGYOK[23][Neve],SZOVEG[3],famas_st[6][id])
    menu_additem(menu, String, "a23",0)
    }
    else
    {
    formatex(String, charsmax(String), "\y[\r%d/%d\y] %s",famas_st[5][id],FEGYOK[23][Oles], SZOVEG[2])
    menu_additem(menu, String, "v3",0)
    }
   
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
}
public awpdefmenu(id)
{
    new String[121]
    formatex(String, charsmax(String), "%s \d>> %s^n^n%s %d",PREFIX,FEGYOK[12][Neve],SZOVEG[3],awp_st[1][id])
    new menu = menu_create(String, "menu_handler")
 
    formatex(String, charsmax(String), "%s",SZOVEG[1])
    menu_additem(menu, String, "b13",0)
   
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
}
public famasdefmenu(id)
{
    new String[121]
    formatex(String, charsmax(String), "%s \d>> %s^n^n%s %d",PREFIX,FEGYOK[18][Neve],SZOVEG[3],famas_st[1][id])
    new menu = menu_create(String, "menu_handler")
 
    formatex(String, charsmax(String), "%s",SZOVEG[1])
    menu_additem(menu, String, "b19",0)
   
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
}
public m4a1defmenu(id)
{
    new String[121]
    formatex(String, charsmax(String), "%s \d>> %s^n^n%s %d",PREFIX,FEGYOK[6][Neve],SZOVEG[3],m4a1_st[1][id])
    new menu = menu_create(String, "menu_handler")
 
    formatex(String, charsmax(String), "%s",SZOVEG[1])
    menu_additem(menu, String, "b7",0)
   
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
}
public ak47defmenu(id)
{
    new String[121]
    formatex(String, charsmax(String), "%s \d>> %s^n^n%s %d",PREFIX,FEGYOK[0][Neve],SZOVEG[3],ak47_st[1][id])
    new menu = menu_create(String, "menu_handler")
 
    formatex(String, charsmax(String), "%s",SZOVEG[1])
    menu_additem(menu, String, "b1",0)
   
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
}
public m4a1menusor( id, iNum )
{
    static String[121], sString2[ 8 ];
    formatex(String, charsmax(String), "%s \d>> %s^n^n%s %d",PREFIX,FEGYOK[7 + iNum][Neve],SZOVEG[3],m4a1_st[2 + iNum][id])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s",SZOVEG[0])
    formatex( sString2, charsmax( sString2 ), "f%d", ( 6 + iNum ) )
    menu_additem(menu, String, sString2,0)
    formatex(String, charsmax(String), "%s",SZOVEG[1])
    formatex( sString2, charsmax( sString2 ), "b%d", ( 8 + iNum ) )
    menu_additem(menu, String, sString2,0)
 
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
    menu_setprop(menu, MPROP_EXITNAME, "Kilépés");
    menu_display(id, menu, 0);
    return PLUGIN_HANDLED;
}
public ak47menusor( id, iNum )
{
    static String[121], sString2[ 8 ];
    formatex(String, charsmax(String), "%s \d>> %s^n^n%s %d",PREFIX,FEGYOK[1 + iNum][Neve],SZOVEG[3],ak47_st[2 + iNum][id])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s",SZOVEG[0])
    formatex( sString2, charsmax( sString2 ), "f%d", ( 1 + iNum ) )
    menu_additem(menu, String, sString2,0)
    formatex(String, charsmax(String), "%s",SZOVEG[1])
    formatex( sString2, charsmax( sString2 ), "b%d", ( 2 + iNum ) )
    menu_additem(menu, String, sString2,0)
 
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
    menu_setprop(menu, MPROP_EXITNAME, "Kilépés");
    menu_display(id, menu, 0);
    return PLUGIN_HANDLED;
}
public awpmenusor( id, iNum )
{
    static String[121], sString2[ 8 ];
    formatex(String, charsmax(String), "%s \d>> %s^n^n%s %d",PREFIX,FEGYOK[13 + iNum][Neve],SZOVEG[3],awp_st[2 + iNum][id])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s",SZOVEG[0])
    formatex( sString2, charsmax( sString2 ), "f%d", ( 11 + iNum ) )
    menu_additem(menu, String, sString2,0)
    formatex(String, charsmax(String), "%s",SZOVEG[1])
    formatex( sString2, charsmax( sString2 ), "b%d", ( 14 + iNum ) )
    menu_additem(menu, String, sString2,0)
 
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
    menu_setprop(menu, MPROP_EXITNAME, "Kilépés");
    menu_display(id, menu, 0);
    return PLUGIN_HANDLED;
}
public famasmenusor( id, iNum )
{
    static String[121], sString2[ 8 ];
    formatex(String, charsmax(String), "%s \d>> %s^n^n%s %d",PREFIX,FEGYOK[19 + iNum][Neve],SZOVEG[3],famas_st[2 + iNum][id])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s",SZOVEG[0])
    formatex( sString2, charsmax( sString2 ), "f%d", ( 16 + iNum ) )
    menu_additem(menu, String, sString2,0)
    formatex(String, charsmax(String), "%s",SZOVEG[1])
    formatex( sString2, charsmax( sString2 ), "b%d", ( 20 + iNum ) )
    menu_additem(menu, String, sString2,0)
 
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
    menu_setprop(menu, MPROP_EXITNAME, "Kilépés");
    menu_display(id, menu, 0);
    return PLUGIN_HANDLED;
}
public biztosnulla( id, iNum )
{
    static String[121], sString2[ 8 ];
    formatex(String, charsmax(String), "%s \d>> %s^n%s",PREFIX,SZOVEG[5],SZOVEG[6])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s",SZOVEG[7])
    formatex( sString2, charsmax( sString2 ), "n%d", ( 1 + iNum ) )
    menu_additem(menu, String, sString2,0)
    formatex(String, charsmax(String), "%s",SZOVEG[8])
    formatex( sString2, charsmax( sString2 ), "m%d", ( 1 ) )
    menu_additem(menu, String, sString2,0)
 
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
    menu_setprop(menu, MPROP_EXITNAME, "Kilépés");
    menu_display(id, menu, 0);
    return PLUGIN_HANDLED;
}
public biztosnullam4( id, iNum )
{
    static String[121], sString2[ 8 ];
    formatex(String, charsmax(String), "%s \d>> %s^n%s",PREFIX,SZOVEG[5],SZOVEG[6])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s",SZOVEG[7])
    formatex( sString2, charsmax( sString2 ), "n%d", ( 7 + iNum ) )
    menu_additem(menu, String, sString2,0)
    formatex(String, charsmax(String), "%s",SZOVEG[8])
    formatex( sString2, charsmax( sString2 ), "m%d", ( 2 ) )
    menu_additem(menu, String, sString2,0)
 
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
    menu_setprop(menu, MPROP_EXITNAME, "Kilépés");
    menu_display(id, menu, 0);
    return PLUGIN_HANDLED;
}
public biztosnullawp( id, iNum )
{
    static String[121], sString2[ 8 ];
    formatex(String, charsmax(String), "%s \d>> %s^n%s",PREFIX,SZOVEG[5],SZOVEG[6])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s",SZOVEG[7])
    formatex( sString2, charsmax( sString2 ), "n%d", ( 13 + iNum ) )
    menu_additem(menu, String, sString2,0)
    formatex(String, charsmax(String), "%s",SZOVEG[8])
    formatex( sString2, charsmax( sString2 ), "m%d", ( 3 ) )
    menu_additem(menu, String, sString2,0)
 
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
    menu_setprop(menu, MPROP_EXITNAME, "Kilépés");
    menu_display(id, menu, 0);
    return PLUGIN_HANDLED;
}
public biztosnulafamas( id, iNum )
{
    static String[121], sString2[ 8 ];
    formatex(String, charsmax(String), "%s \d>> %s^n%s",PREFIX,SZOVEG[5],SZOVEG[6])
    new menu = menu_create(String, "menu_handler")
   
    formatex(String, charsmax(String), "%s",SZOVEG[7])
    formatex( sString2, charsmax( sString2 ), "n%d", ( 19 + iNum ) )
    menu_additem(menu, String, sString2,0)
    formatex(String, charsmax(String), "%s",SZOVEG[8])
    formatex( sString2, charsmax( sString2 ), "m%d", ( 4 ) )
    menu_additem(menu, String, sString2,0)
 
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
    menu_setprop(menu, MPROP_EXITNAME, "Kilépés");
    menu_display(id, menu, 0);
    return PLUGIN_HANDLED;
}
public menu_handler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
    new data[6], szName[64]
    new access, callback;
    menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
   
    new key = str_to_num(data[1]);
    switch(data[0])
    {
        case 'a':
        {
            switch(key)
            {
                case 1: ak47defmenu(id)
                case 2: ak47menusor(id, 0)
                case 3: ak47menusor(id, 1)
                case 4: ak47menusor(id, 2)
                case 5: ak47menusor(id, 3)
                case 6: ak47menusor(id, 4)
                case 7: m4a1defmenu(id)
                case 8: m4a1menusor(id, 0)
                case 9: m4a1menusor(id, 1)
                case 10: m4a1menusor(id, 2)
                case 11: m4a1menusor(id, 3)
                case 12: m4a1menusor(id, 4)
                case 13: awpdefmenu(id)
                case 14: awpmenusor(id, 0)
                case 15: awpmenusor(id, 1)
                case 16: awpmenusor(id, 2)
                case 17: awpmenusor(id, 3)
                case 18: awpmenusor(id, 4)
                case 19: famasmenusor(id, 0)
                case 20: famasmenusor(id, 1)
                case 21: famasmenusor(id, 2)
                case 22: famasmenusor(id, 3)
                case 23: famasmenusor(id, 4)
            }
        }
        case 'm':
        {
            switch(key)
            {
                case 1: ak47menu(id)
                case 2: m4a1menu(id)
                case 3: awpmenu(id)
                case 4: famasmenu(id)
            }
        }
        case 'f':
        {
            switch(key)
            {
                case 1:
                {
                    skin[0][id] = 1
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[1][Neve])
                }
                case 2:
                {
                    skin[0][id] = 2
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[2][Neve])
                }
                case 3:
                {
                    skin[0][id] = 3
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[3][Neve])
                }
                case 4:
                {
                    skin[0][id] = 4
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[4][Neve])
                }
                case 5:
                {
                    skin[0][id] = 5
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[5][Neve])
                }
                case 6:
                {
                    skin[1][id] = 1
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[7][Neve])
                }
                case 7:
                {
                    skin[1][id] = 2
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[8][Neve])
                }
                case 8:
                {
                    skin[1][id] = 3
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[9][Neve])
                }
                case 9:
                {
                    skin[1][id] = 4
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[10][Neve])
                }
                case 10:
                {
                    skin[1][id] = 5
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[11][Neve])
                }
                case 11:
                {
                    skin[2][id] = 1
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[13][Neve])
                }
                case 12:
                {
                    skin[2][id] = 2
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[14][Neve])
                }
                case 13:
                {
                    skin[2][id] = 3
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[15][Neve])
                }
                case 14:
                {
                    skin[2][id] = 4
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[16][Neve])
                }
                case 15:
                {
                    skin[2][id] = 5
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[17][Neve])
                }
                case 16:
                {
                    skin[3][id] = 1
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[19][Neve])
                }
                case 17:
                {
                    skin[3][id] = 2
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[20][Neve])
                }
                case 18:
                {
                    skin[3][id] = 3
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[21][Neve])
                }
                case 19:
                {
                    skin[3][id] = 4
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[22][Neve])
                }
                case 20:
                {
                    skin[3][id] = 5
                    ColorChat(id, GREEN, "[%s] » ^1%s ^4%s",PREFIX,SZOVEG[4],FEGYOK[23][Neve])
                }
            }
        }
        case 'v':
        {
            switch(key)
            {
                case 1: ak47menu(id)
                case 2: m4a1menu(id)
                case 3: awpmenu(id)
                case 4: famasmenu(id)
            }
        }
        case 'n':
        {
            switch(key)
            {
                case 1:
                {
                    ak47_st[1][id] = 0
                }
                case 2:
                {
                    ak47_st[2][id] = 0
                }
                case 3:
                {
                    ak47_st[3][id] = 0
                }
                case 4:
                {
                    ak47_st[4][id] = 0
                }
                case 5:
                {
                    ak47_st[5][id] = 0
                }
                case 6:
                {
                    ak47_st[6][id] = 0
                }
                case 7:
                {
                    m4a1_st[1][id] = 0
                }
                case 8:
                {
                    m4a1_st[2][id] = 0
                }
                case 9:
                {
                    m4a1_st[3][id] = 0
                }
                case 10:
                {
                    m4a1_st[4][id] = 0
                }
                case 11:
                {
                    m4a1_st[5][id] = 0
                }
                case 12:
                {
                    m4a1_st[6][id] = 0
                }
                case 13:
                {
                    awp_st[1][id] = 0
                }
                case 14:
                {
                    awp_st[2][id] = 0
                }
                case 15:
                {
                    awp_st[3][id] = 0
                }
                case 16:
                {
                    awp_st[4][id] = 0
                }
                case 17:
                {
                    awp_st[5][id] = 0
                }
                case 18:
                {
                    awp_st[6][id] = 0
                }
                case 19:
                {
                    famas_st[1][id] = 0
                }
                case 20:
                {
                    famas_st[2][id] = 0
                }
                case 21:
                {
                    famas_st[3][id] = 0
                }
                case 22:
                {
                    famas_st[4][id] = 0
                }
                case 23:
                {
                    famas_st[5][id] = 0
                }
                case 24:
                {
                    famas_st[6][id] = 0
                }
            }
        }
        case 'b':
        {
            switch(key)
            {
                case 1: biztosnulla(id, 0)
                case 2: biztosnulla(id, 1)
                case 3: biztosnulla(id, 2)
                case 4: biztosnulla(id, 3)
                case 5: biztosnulla(id, 4)
                case 6: biztosnulla(id, 5)
                case 7: biztosnullam4(id, 0)
                case 8: biztosnullam4(id, 1)
                case 9: biztosnullam4(id, 2)
                case 10: biztosnullam4(id, 3)
                case 11: biztosnullam4(id, 4)
                case 12: biztosnullam4(id, 5)
                case 13: biztosnullawp(id, 0)
                case 14: biztosnullawp(id, 1)
                case 15: biztosnullawp(id, 2)
                case 16: biztosnullawp(id, 3)
                case 17: biztosnullawp(id, 4)
                case 18: biztosnullawp(id, 5)
                case 19: biztosnulafamas(id, 0)
                case 20: biztosnulafamas(id, 1)
                case 21: biztosnulafamas(id, 2)
                case 22: biztosnulafamas(id, 3)
                case 23: biztosnulafamas(id, 4)
                case 24: biztosnulafamas(id, 5)
            }
        }
    }
    menu_destroy(menu)
    return PLUGIN_HANDLED
}
public client_authorized(id)
{
    if( !is_user_hltv(id) && !is_user_bot(id) )
    {
        Load(id)
    }
}
public StatrakHud()
{
new p[32],n;
get_players(p,n,"ch")
for(new i=0;i<n;i++)
{
    new id = p[i];
    hud(id)
}
}
public AutoMentes()
{
new p[32],n;
get_players(p,n,"ch")
for(new i=0;i<n;i++)
{
    new id = p[i];
    Save(id)
}
}
public hud(id)
{
if(get_user_weapon(id) == CSW_KNIFE)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_USP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_DEAGLE)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_ELITE)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_GLOCK18)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_FIVESEVEN)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_P228)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_GALIL)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_SCOUT)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_SG552)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_G3SG1)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_AUG)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_SG552)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_SG550)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_M3)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_XM1014)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_MAC10)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_TMP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_MP5NAVY)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_UMP45)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_P90)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(get_user_weapon(id) == CSW_M249)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: UNKOWN")
}
if(skin[3][id] == 0 && get_user_weapon(id) == CSW_FAMAS)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[1][id])
}
if(skin[3][id] == 1 && get_user_weapon(id) == CSW_FAMAS)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[2][id])
}
if(skin[3][id] == 2 && get_user_weapon(id) == CSW_FAMAS)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[3][id])
}
if(skin[3][id] == 3 && get_user_weapon(id) == CSW_FAMAS)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[4][id])
}
if(skin[3][id] == 4 && get_user_weapon(id) == CSW_FAMAS)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[5][id])
}
if(skin[3][id] == 5 && get_user_weapon(id) == CSW_FAMAS)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[6][id])
}
if(skin[0][id] == 0 && get_user_weapon(id) == CSW_AK47)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", ak47_st[1][id])
}
if(skin[0][id] == 1 && get_user_weapon(id) == CSW_AK47)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", ak47_st[2][id])
}
if(skin[0][id] == 2 && get_user_weapon(id) == CSW_AK47)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", ak47_st[3][id])
}
if(skin[0][id] == 3 && get_user_weapon(id) == CSW_AK47)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", ak47_st[4][id])
}
if(skin[0][id] == 4 && get_user_weapon(id) == CSW_AK47)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", ak47_st[5][id])
}
if(skin[0][id] == 5 && get_user_weapon(id) == CSW_AK47)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", ak47_st[6][id])
}
if(skin[1][id] == 0 && get_user_weapon(id) == CSW_M4A1)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", m4a1_st[1][id])
}
if(skin[1][id] == 1 && get_user_weapon(id) == CSW_M4A1)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", m4a1_st[2][id])
}
if(skin[1][id] == 2 && get_user_weapon(id) == CSW_M4A1)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", m4a1_st[3][id])
}
if(skin[1][id] == 3 && get_user_weapon(id) == CSW_M4A1)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", m4a1_st[4][id])
}
if(skin[1][id] == 4 && get_user_weapon(id) == CSW_M4A1)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", m4a1_st[5][id])
}
if(skin[1][id] == 5 && get_user_weapon(id) == CSW_M4A1)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", m4a1_st[6][id])
}
if(skin[2][id] == 0 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", awp_st[1][id])
}
if(skin[2][id] == 1 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", awp_st[2][id])
}
if(skin[2][id] == 2 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", awp_st[3][id])
}
if(skin[2][id] == 3 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", awp_st[4][id])
}
if(skin[2][id] == 4 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", awp_st[5][id])
}
if(skin[2][id] == 5 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", awp_st[6][id])
}
if(skin[3][id] == 0 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[1][id])
}
if(skin[3][id] == 1 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[2][id])
}
if(skin[3][id] == 2 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[3][id])
}
if(skin[3][id] == 3 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[4][id])
}
if(skin[3][id] == 4 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[5][id])
}
if(skin[3][id] == 5 && get_user_weapon(id) == CSW_AWP)
{
    set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 0.0, 12.0)
    show_hudmessage(id, " Statrak*: %d", famas_st[6][id])
}
}
Load(id)
{
new steamid[35]
get_user_authid(id, steamid, sizeof(steamid)-1)
 
new mentes[512]
format(mentes, 511, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i",ak47_st[1][id], ak47_st[2][id], ak47_st[3][id], ak47_st[4][id], ak47_st[5][id], ak47_st[6][id], m4a1_st[1][id], m4a1_st[2][id], m4a1_st[3][id], m4a1_st[4][id], m4a1_st[5][id], m4a1_st[6][id], awp_st[1][id], awp_st[2][id], awp_st[3][id], awp_st[4][id], awp_st[5][id], awp_st[6][id], famas_st[1][id], famas_st[2][id], famas_st[3][id], famas_st[4][id], famas_st[5][id], famas_st[6][id]);
 
if(fvault_get_data(file, steamid, mentes, 511))
{
new st1[32], st2[32], st3[32], st4[32], st5[32], st6[32], m41[32], m42[32], m43[32], m44[32], m45[32], m46[32], aw1[32], aw2[32], aw3[32], aw4[32], aw5[32], aw6[32],fm1[32],fm2[32],fm3[32],fm4[32],fm5[32],fm6[32]
parse(mentes, st1,31,st2,31,st3,31,st4,31,st5,31,st6,31,m41,31,m42,31,m43,31,m44,31,m45,31,m46,31,aw1,31,aw2,31,aw3,31,aw4,31,aw5,31,aw6,31,fm1,31,fm2,31,fm3,31,fm4,31,fm5,31,fm6,31);
 
ak47_st[1][id] = str_to_num(st1)
ak47_st[2][id] = str_to_num(st2)
ak47_st[3][id] = str_to_num(st3)
ak47_st[4][id] = str_to_num(st4)
ak47_st[5][id] = str_to_num(st5)
ak47_st[6][id] = str_to_num(st6)
m4a1_st[1][id] = str_to_num(m41)
m4a1_st[2][id] = str_to_num(m42)
m4a1_st[3][id] = str_to_num(m43)
m4a1_st[4][id] = str_to_num(m44)
m4a1_st[5][id] = str_to_num(m45)
m4a1_st[6][id] = str_to_num(m46)
awp_st[1][id] = str_to_num(aw1)
awp_st[2][id] = str_to_num(aw2)
awp_st[3][id] = str_to_num(aw3)
awp_st[4][id] = str_to_num(aw4)
awp_st[5][id] = str_to_num(aw5)
awp_st[6][id] = str_to_num(aw6)
famas_st[1][id] = str_to_num(fm1)
famas_st[2][id] = str_to_num(fm2)
famas_st[3][id] = str_to_num(fm3)
famas_st[4][id] = str_to_num(fm4)
famas_st[5][id] = str_to_num(fm5)
famas_st[6][id] = str_to_num(fm6)
}
else
{
ak47_st[1][id] = 0
ak47_st[2][id] = 0
ak47_st[3][id] = 0
ak47_st[4][id] = 0
ak47_st[5][id] = 0
ak47_st[6][id] = 0
m4a1_st[1][id] = 0
m4a1_st[2][id] = 0
m4a1_st[3][id] = 0
m4a1_st[4][id] = 0
m4a1_st[5][id] = 0
m4a1_st[6][id] = 0
awp_st[1][id] = 0
awp_st[2][id] = 0
awp_st[3][id] = 0
awp_st[4][id] = 0
awp_st[5][id] = 0
awp_st[6][id] = 0
famas_st[1][id] = 0
famas_st[2][id] = 0
famas_st[3][id] = 0
famas_st[4][id] = 0
famas_st[5][id] = 0
famas_st[6][id] = 0
 
}
}
Save(id)
{
new steamid[35]
get_user_authid(id, steamid, sizeof(steamid)-1)
 
new mentes[512]
format(mentes, 511, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i", ak47_st[1][id], ak47_st[2][id], ak47_st[3][id], ak47_st[4][id], ak47_st[5][id], ak47_st[6][id], m4a1_st[1][id], m4a1_st[2][id], m4a1_st[3][id], m4a1_st[4][id], m4a1_st[5][id], m4a1_st[6][id], awp_st[1][id], awp_st[2][id], awp_st[3][id], awp_st[4][id], awp_st[5][id], awp_st[6][id], famas_st[1][id], famas_st[2][id], famas_st[3][id], famas_st[4][id], famas_st[5][id], famas_st[6][id]);
 
fvault_set_data(file, steamid, mentes)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
*/
