CSPLague
Jailbreak /tl verme - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80)
+---- Forum: Çözülmüş İstekler (https://www.csplague.com/forumdisplay.php?fid=87)
+---- Thread: Jailbreak /tl verme (/showthread.php?tid=6979)



Jailbreak /tl verme - t4t1fati - 16-03-13

PHP Code:
/*
*
*      Plugin: JailBreak Shop
*      Autor: MaNuCs
*  
*      Credits: rubee
*                Gladius
*         capostrike93
*         apu
*/

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <fun>
#include <nvault>
#include <engine>

#define ADMIN_ACCESS ADMIN_CVAR
  


#define is_valid_player(%1) (1 <= %1 <= 32)

/*============================================================
Variables
============================================================*/

new     
OnOff
OnOff2
precio1
precio2
precio3,
precio4
precio5
precio6
precio7
precioC1
precioC2
precioC3,
precioC4,
CTDefaultDano
TDefaultDano
PaloDano
HachaDano
MacheteDano
MotocierraDano,
hTDefaultDano
hCTDefaultDano
hPaloDano
hHachaDano
hMacheteDano,
Vida,
Armor,
glock1,
glock2,
help,
g_killjp
g_killhsjp
g_startjp,
g_maxjp,
g_iMsgSayText,
syncObj,
Ronda[33],
Speed[33],
Speed2[33],
TCuchillo[33],
CTCuchillo[33],
Destapador[33],
Hacha[33],
Machete[33],
Motocierra[33],
g_jbpacks[33],
quitar[33],
regalar[33],
gidPlayer[33],
mainvault


/*============================================================
Weapon Model's
============================================================*/


new VIEW_MODELT[]        = "models/[Shop]JailBreak/Punos/Punos.mdl" 
new PLAYER_MODELT[]     = "models/[Shop]JailBreak/Punos/Punos2.mdl" 

new VIEW_MODELCT[]        = "models/[Shop]JailBreak/Electro/ozanjop.mdl" 
new PLAYER_MODELCT[]       = "models/[Shop]JailBreak/Electro/ozanjop2.mdl" 

new VIEW_Hacha[]        = "models/[Shop]JailBreak/Hacha/Hacha.mdl" 
new PLAYER_Hacha[]       = "models/[Shop]JailBreak/Hacha/Hacha2.mdl" 

new VIEW_Machete[]        = "models/[Shop]JailBreak/Machete/Machete.mdl" 
new PLAYER_Machete[]        = "models/[Shop]JailBreak/Machete/Machete2.mdl"

new VIEW_Palo[]        = "models/[Shop]JailBreak/Palo/Palo.mdl" 
new PLAYER_Palo[]        = "models/[Shop]JailBreak/Palo/Palo2.mdl" 

new VIEW_Moto[]        = "models/[Shop]JailBreak/Moto/Moto.mdl" 
new PLAYER_Moto[]        = "models/[Shop]JailBreak/Moto/Moto2.mdl" 

new WORLD_MODEL[]        = "models/w_knife.mdl"
new OLDWORLD_MODEL[]        = "models/w_knife.mdl"

/*============================================================
Shop Sounds!
============================================================*/
new const Si[]         = { "[Shop]JailBreak/Yes.wav" }
new const 
No[]         = { "[Shop]JailBreak/No.wav" }

/*============================================================
Weapon Sound's
============================================================*/

new const palo_deploy[]         = { "weapons/knife_deploy1.wav" }
new const 
palo_slash1[]         = { "weapons/knife_slash1.wav" }
new const 
palo_slash2[]         = { "weapons/knife_slash2.wav" }
new const 
palo_wall[]         = { "[Shop]JailBreak/Palo/PHitWall.wav" 
new const 
palo_hit1[]         = { "[Shop]JailBreak/Palo/PHit1.wav" 
new const 
palo_hit2[]         = { "[Shop]JailBreak/Palo/PHit2.wav" 
new const 
palo_hit3[]         = { "[Shop]JailBreak/Palo/PHit3.wav" 
new const 
palo_hit4[]         = { "[Shop]JailBreak/Palo/PHit4.wav" 
new const 
palo_stab[]         = { "[Shop]JailBreak/Palo/PStab.wav" }

new const 
hacha_deploy[]     = { "weapons/knife_deploy1.wav" }
new const 
hacha_slash1[]     = { "[Shop]JailBreak/Hacha/HSlash1.wav" }
new const 
hacha_slash2[]     = { "[Shop]JailBreak/Hacha/HSlash2.wav" }
new const 
hacha_wall[]         = { "[Shop]JailBreak/Hacha/HHitWall.wav" }
new const 
hacha_hit1[]         = { "[Shop]JailBreak/Hacha/HHit1.wav" }
new const 
hacha_hit2[]         = { "[Shop]JailBreak/Hacha/HHit2.wav" }
new const 
hacha_hit3[]         = { "[Shop]JailBreak/Hacha/HHit3.wav" }
new const 
hacha_stab[]         = { "[Shop]JailBreak/Hacha/HHit4.wav" }

new const 
machete_deploy[]     = { "[Shop]JailBreak/Machete/MConvoca.wav" }
new const 
machete_slash1[]     = { "[Shop]JailBreak/Machete/MSlash1.wav" }
new const 
machete_slash2[]     = { "[Shop]JailBreak/Machete/MSlash2.wav" }
new const 
machete_wall[]     = { "[Shop]JailBreak/Machete/MHitWall.wav" }
new const 
machete_hit1[]     = { "[Shop]JailBreak/Machete/MHit1.wav" }
new const 
machete_hit2[]     = { "[Shop]JailBreak/Machete/MHit2.wav" }
new const 
machete_hit3[]     = { "[Shop]JailBreak/Machete/MHit3.wav" }
new const 
machete_hit4[]     = { "[Shop]JailBreak/Machete/MHit4.wav" }
new const 
machete_stab[]     = { "[Shop]JailBreak/Machete/MStab.wav" }

new const 
motocierra_deploy[]     = { "[Shop]JailBreak/Moto/MTConvoca.wav", }
new const 
motocierra_slash[]     = { "[Shop]JailBreak/Moto/MTSlash.wav", }
new const 
motocierra_wall[]     = { "[Shop]JailBreak/Moto/MTHitWall.wav" }
new const 
motocierra_hit1[]     = { "[Shop]JailBreak/Moto/MTHit1.wav",  }
new const 
motocierra_hit2[]     = { "[Shop]JailBreak/Moto/MTHit2.wav",  }
new const 
motocierra_stab[]     = { "[Shop]JailBreak/Moto/MTStab.wav"  }

new const 
t_deploy[]         = { "[Shop]JailBreak/T/TConvoca.wav", }
new const 
t_slash1[]         = { "[Shop]JailBreak/T/Slash1.wav", }
new const 
t_slash2[]         = { "[Shop]JailBreak/T/Slash2.wav", }
new const 
t_wall[]         = { "[Shop]JailBreak/T/THitWall.wav" }
new const 
t_hit1[]         = { "[Shop]JailBreak/T/THit1.wav",  }
new const 
t_hit2[]         = { "[Shop]JailBreak/T/THit2.wav",  }
new const 
t_hit3[]         = { "[Shop]JailBreak/T/THit3.wav",  }
new const 
t_hit4[]         = { "[Shop]JailBreak/T/THit4.wav",  }
new const 
t_stab[]         = { "[Shop]JailBreak/T/TStab.wav"  }
new 
bool:initaliazed[33];
new const 
ct_deploy[]         = { "[Shop]JailBreak/CT/CTConvoca.wav", }
new const 
ct_slash1[]         = { "[Shop]JailBreak/CT/Slash1.wav", }
new const 
ct_slash2[]         = { "[Shop]JailBreak/CT/Slash2.wav", }
new const 
ct_wall[]         = { "[Shop]JailBreak/CT/CTHitWall.wav" }
new const 
ct_hit1[]         = { "[Shop]JailBreak/CT/CTHit1.wav",  }
new const 
ct_hit2[]         = { "[Shop]JailBreak/CT/CTHit2.wav",  }
new const 
ct_hit3[]         = { "[Shop]JailBreak/CT/CTHit3.wav",  }
new const 
ct_hit4[]         = { "[Shop]JailBreak/CT/CTHit4.wav",  }
new const 
ct_stab[]         = { "[Shop]JailBreak/CT/CTStab.wav"  }
new 
bool:g_innoclip[33];
new 
g_lastPosition[33][3];

/*============================================================
Config
============================================================*/

public plugin_natives()
{    
register_native("jb_get_user_packs","native_jb_get_user_packs"1)
register_native("jb_set_user_packs","native_jb_set_user_packs")
}
public 
plugin_init() 
{
        
    
register_plugin("[JB] Shop""3.1""byetovice")
    
    
mainvault nvault_open("ShopJbs")
    
    
    
register_clcmd("say /shop""Tienda")
    
register_clcmd("say !shop""Tienda")
    
register_clcmd("say_team /shop""Tienda")
    
register_clcmd("say_team !shop""Tienda")
    
    
register_clcmd("say /ej",  "tlveral"ADMIN_ACCESS)
    
register_clcmd("say !ej",     "tlveral"ADMIN_ACCESS)
    
register_clcmd("say_team /ej",     "tlveral"ADMIN_ACCESS)
    
register_clcmd("say_team !ej",     "tlveral"ADMIN_ACCESS)

    
register_clcmd("JbPacks",     "player")
    
    
register_cvar("jb_savejb","1")
    
    
register_cvar("byetovice_plugin""1.2"FCVAR_SPONLY|FCVAR_SERVER)
    
RegisterHam(Ham_Spawn,         "player""Fwd_PlayerSpawn_Post",    1)
    
RegisterHam(Ham_TakeDamage,     "player""FwdTakeDamage",         0)
    
RegisterHam(Ham_Killed,        "player""fw_player_killed")
    
    
register_event("CurWeapon",     "Event_Change_Weapon""be""1=1")
    
register_clcmd("GetVaultData""fw_GetVaultData")
    
register_forward(FM_SetModel,     "fw_SetModel")
    
register_forward(FM_EmitSound,    "Fwd_EmitSound")
    
    
    
// 3.1 Native
    
    /*============================================================
    Cvar's 
    ============================================================*/
    
g_killjp     register_cvar("jb_killJP",         "3"); 
    
g_killhsjp     register_cvar("jb_bonushsJP",     "1");
    
g_startjp     register_cvar("jb_startJP",        "7"); 
    
g_maxjp     register_cvar("jb_maxgiveJP",        "500"); 
        
    
OnOff         register_cvar("jb_Shop",         "1")//1(ON) 0(OFF) 
    
OnOff2         register_cvar("jb_ShopKnifes",    "1")//1(ON) 0(OFF) 
    
help         register_cvar("jb_help",         "0")//1(ON) 0(OFF)
    
    
precio1     register_cvar("jb_pFlash",         "5")
    
precio2        register_cvar("jb_pHe",         "60")
    
precio3        register_cvar("jb_pHEFL",         "75")
    
precio4        register_cvar("jb_pWalk",         "15")
    
precio5        register_cvar("jb_pFast",         "20")
    
precio6        register_cvar("jb_pDrugs",         "25")
    
precio7        register_cvar("jb_pGlock",         "40")
    
    
precioC1    register_cvar("jb_pKnife1",         "-1")
    
precioC2     register_cvar("jb_pKnife2",         "10")
    
precioC3     register_cvar("jb_pKnife3",         "20")
    
precioC4     register_cvar("jb_pKnife4",         "40")
    
    
TDefaultDano     register_cvar("jb_dKnifeT",         "20")
    
CTDefaultDano     register_cvar("jb_dKnifeCT",         "50")
    
PaloDano     register_cvar("jb_dKnife1",         "30")
    
HachaDano     register_cvar("jb_dKnife2",         "60")
    
MacheteDano     register_cvar("jb_dKnife3",         "80")
    
MotocierraDano     register_cvar("jb_dKnife4",         "200")
    
    
hTDefaultDano     register_cvar("jb_dHsKnifeT",     "30")
    
hCTDefaultDano     register_cvar("jb_dHsKnifeCT",    "80")
    
hPaloDano     register_cvar("jb_dhsKnife1",     "45")
    
hHachaDano     register_cvar("jb_dhsKnife2",     "75")
    
hMacheteDano     register_cvar("jb_dhsKnife3",     "95")
    
    
Vida         register_cvar("jb_drLife",         "200")
    
Armor         register_cvar("jb_drArmor",         "200")
    
    
glock1         register_cvar("jb_gClip",         "20")
    
glock2         register_cvar("jb_gAmmo",         "0")

    
g_iMsgSayText     get_user_msgid("SayText"
    
syncObj     CreateHudSyncObj()
    
    
    
/*============================================================
    Multi Lengual!
    ============================================================*/
    
register_dictionary("JBShop.txt")
    
}

/*============================================================
Precaches 
============================================================*/
public plugin_precache() 
{
    
precache_sound(Si)
    
precache_sound(No)
    
    
precache_sound(t_deploy)
    
precache_sound(t_slash1)
    
precache_sound(t_slash2)
    
precache_sound(t_stab)
    
precache_sound(t_wall)
    
precache_sound(t_hit1)
    
precache_sound(t_hit2)
    
precache_sound(t_hit3)
    
precache_sound(t_hit4)
    
    
precache_sound(ct_deploy)
    
precache_sound(ct_slash1)
    
precache_sound(ct_slash2)
    
precache_sound(ct_stab)
    
precache_sound(ct_wall)
    
precache_sound(ct_hit1)
    
precache_sound(ct_hit2)
    
precache_sound(ct_hit3)
    
precache_sound(ct_hit4)
    
    
precache_sound(palo_deploy)
    
precache_sound(palo_slash1)
    
precache_sound(palo_slash2)
    
precache_sound(palo_stab)
    
precache_sound(palo_wall)
    
precache_sound(palo_hit1)
    
precache_sound(palo_hit2)
    
precache_sound(palo_hit3)
    
precache_sound(palo_hit4)
    
    
precache_sound(machete_deploy)
    
precache_sound(machete_slash1)
    
precache_sound(machete_slash2)
    
precache_sound(machete_stab)
    
precache_sound(machete_wall)
    
precache_sound(machete_hit1)
    
precache_sound(machete_hit2)
    
precache_sound(machete_hit3)
    
precache_sound(machete_hit4)
    
    
precache_sound(hacha_deploy)
    
precache_sound(hacha_slash1)
    
precache_sound(hacha_slash2)
    
precache_sound(hacha_stab)
    
precache_sound(hacha_wall)
    
precache_sound(hacha_hit1)
    
precache_sound(hacha_hit2)
    
precache_sound(hacha_hit3)
    
    
precache_sound(motocierra_deploy)
    
precache_sound(motocierra_slash)
    
precache_sound(motocierra_stab)
    
precache_sound(motocierra_wall)
    
precache_sound(motocierra_hit1)
    
precache_sound(motocierra_hit2)
    
    
    
precache_model(VIEW_MODELT)     
    
precache_model(PLAYER_MODELT)
    
precache_model(VIEW_MODELCT)     
    
precache_model(PLAYER_MODELCT)
    
precache_model(VIEW_Palo)     
    
precache_model(PLAYER_Palo
    
precache_model(VIEW_Hacha)     
    
precache_model(PLAYER_Hacha)    
    
precache_model(VIEW_Machete)     
    
precache_model(PLAYER_Machete)    
    
precache_model(VIEW_Moto)     
    
precache_model(PLAYER_Moto)        
    
precache_model(WORLD_MODEL)
    
    return 
PLUGIN_CONTINUE
}

/*============================================================
KNIFE SHOP
============================================================*/
public Tienda1(id)
{
    if(
get_pcvar_num(OnOff2))
    {
        if (
get_user_team(id) == )
        {
            static 
Item[64]
            
            
formatex(Itemcharsmax(Item),"\y%L"LANG_PLAYER"SHOP"
            new 
Menu menu_create(Item"CuchilleroHandler")
            
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE1"get_pcvar_num(precioC1))
            
menu_additem(MenuItem"1")
            
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE2"get_pcvar_num(precioC2))
            
menu_additem(MenuItem"2")
            
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE3"get_pcvar_num(precioC3))
            
menu_additem(MenuItem"3")
            
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE4"get_pcvar_num(precioC4))
            
menu_additem(MenuItem"4")
            
            
menu_setprop(MenuMPROP_EXITMEXIT_ALL)
            
menu_display(idMenu)
        }
    }
    return 
PLUGIN_HANDLED
}

public 
CuchilleroHandler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    new 
vivo     is_user_alive(id)
    new 
Obtener1     get_pcvar_num(precioC1)
    new 
Obtener2     get_pcvar_num(precioC2)
    new 
Obtener3     get_pcvar_num(precioC3)
    new 
Obtener4     get_pcvar_num(precioC4)    
    
    new 
key str_to_num(data);
    
    switch(
key)
    {
        case 
1:
        {
            if (
g_jbpacks[id]>= Obtener1 && vivo)
            {
                
g_jbpacks[id] -= Obtener1
                CTCuchillo
[id]     = 0
                TCuchillo
[id]     = 0
                Destapador
[id]     = 1
                Hacha
[id]     = 0
                Machete
[id]     = 0
                Motocierra
[id]     = 0
                
                
                ham_strip_weapon
(id"weapon_knife")
                
give_item(id"weapon_knife")
                
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE1")
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
            }
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
        
        case 
2:
        {
            if (
g_jbpacks[id] >= Obtener2 && vivo)
            {
                
                
g_jbpacks[id] -= Obtener2
                CTCuchillo
[id]     = 0
                TCuchillo
[id]     = 0
                Destapador
[id]     = 0
                Hacha
[id]     = 1
                Machete
[id]     = 0
                Motocierra
[id]     = 0
                
                ham_strip_weapon
(id"weapon_knife")
                
give_item(id"weapon_knife")
                
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE2")
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
            }
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
        
        case 
3:
        {
            if (
g_jbpacks[id] >= Obtener3 && vivo)
            {
                
                
g_jbpacks[id] -= Obtener3
                CTCuchillo
[id]     = 0
                TCuchillo
[id]     = 0
                Destapador
[id]     = 0
                Hacha
[id]     = 0
                Machete
[id]     = 1
                Motocierra
[id]     = 0
                
                ham_strip_weapon
(id"weapon_knife")
                
give_item(id"weapon_knife")
                
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE3")
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
            }
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
        
        case 
4:
        {
            if (
g_jbpacks[id] >= Obtener4 && vivo)
            {
                
                
g_jbpacks[id] -= Obtener4
                CTCuchillo
[id]     = 0
                TCuchillo
[id]     = 0
                Destapador
[id]    = 0
                Hacha
[id]     = 0
                Machete
[id]     = 0
                Motocierra
[id]     = 1
                
                
                ham_strip_weapon
(id"weapon_knife")
                
give_item(id"weapon_knife")
                
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE4")
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
            }
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
    }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

/*============================================================
ITEM'S MENU
============================================================*/
public Tienda(id)
{
    if(
get_pcvar_num(OnOff))
    {
        if(
get_pcvar_num(OnOff) && Ronda[id])
        {
            if(
is_user_alive(id))
            {
                if (
cs_get_user_team(id) == CS_TEAM_T )
                {
                    new 
contador=0;
                    new 
players[32], numtempid;
                    
                    
get_players(playersnum)
                    
                    for (new 
i=0i<numi++)
                    {
                        
tempid players[i]
                        
                        if (
get_user_team(tempid)==&& is_user_alive(tempid))
                        {
                            
contador++;
                        }
                    }
                    if ( 
contador == )
                    {
                        
ChatColor(id"%L"LANG_PLAYER"LAST")
                    }
                    else if ( 
contador >= )
                    {
                        static 
Item[64]
                        
                        
formatex(Itemcharsmax(Item),"\y%L"LANG_PLAYER"SHOP")
                        new 
Menu menu_create(Item"TiendaHandler")
                        
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"FLASH"get_pcvar_num(precio1))
                        
menu_additem(MenuItem"1")
                        
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"HE"get_pcvar_num(precio2))
                        
menu_additem(MenuItem"2")
                        
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"HEFLASH"get_pcvar_num(precio3))
                        
menu_additem(MenuItem"3")
                        
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"FOOTSTEPS"get_pcvar_num(precio4))
                        
menu_additem(MenuItem"4")
                        
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"SPEED"get_pcvar_num(precio5))
                        
menu_additem(MenuItem"5")
                        
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"DRUGS"get_pcvar_num(precio6))
                        
menu_additem(MenuItem"6")
                        
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"GLOCK"get_pcvar_num(precio7))
                        
menu_additem(MenuItem"7")
                        
                        
menu_setprop(MenuMPROP_EXITMEXIT_ALL)
                        
menu_display(idMenu)
                    }
                }
                else
                {
                    
ChatColor(id"%L"LANG_PLAYER"ONLY")
                }
            }
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"DEAD")
            }
        }
        else
        {
            
ChatColor(id"%L"LANG_PLAYER"ONE_TIME")
        }
    }
    else
    {
        
ChatColor(id"%L",  LANG_PLAYER"SHOP_OFF")
    }
    return 
PLUGIN_HANDLED
}


public 
TiendaHandler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    new 
vivo         is_user_alive(id)
    new 
gmsg_SetFOV     get_user_msgid("SetFOV"
    new 
Obtener1         get_pcvar_num(precio1)
    new 
Obtener2         get_pcvar_num(precio2)
    new 
Obtener3         get_pcvar_num(precio3)
    new 
Obtener4         get_pcvar_num(precio4)
    new 
Obtener5         get_pcvar_num(precio5)
    new 
Obtener6         get_pcvar_num(precio6)
    new 
Obtener7        get_pcvar_num(precio7)
    new 
vida1        get_user_health(id)
    new 
vida2         get_pcvar_num(Vida)
    new 
armor1        get_user_armor(id)
    new 
armor2         get_pcvar_num(Armor)
    
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
            if (
g_jbpacks[id] >= Obtener1 && vivo)
            {
                
g_jbpacks[id] -= Obtener1
                ChatColor
(id"%L"LANG_PLAYER"BUY_FLASH")
                
give_item(id"weapon_flashbang")
                
give_item(id"weapon_flashbang")
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
                
Ronda[id] = 0
            
}
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
        case 
2:
        {
            
            if (
g_jbpacks[id] >= Obtener2 && vivo)
            {
                
g_jbpacks[id] -= Obtener2
                ChatColor
(id"%L"LANG_PLAYER"BUY_HE")
                
give_item(id"weapon_hegrenade")
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
                
Ronda[id] = 0
            
}
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
        case 
3:
        {
            
            if (
g_jbpacks[id] >= Obtener3 && vivo)
            {
                
g_jbpacks[id] -= Obtener3
                ChatColor
(id"%L"LANG_PLAYER"BUY_HEFLASH")
                
give_item(id"weapon_hegrenade")
                
give_item(id"weapon_flashbang")
                
give_item(id"weapon_flashbang")
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
                
Ronda[id] = 0
            
}
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
        case 
4:
        {
            
            if (
g_jbpacks[id] >= Obtener4 && vivo)
            {
                
g_jbpacks[id] -= Obtener4
                ChatColor
(id"%L"LANG_PLAYER"BUY_FOOTSTEPS")
                
set_user_footsteps(id1)
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
                
Ronda[id] = 0
            
}
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
        case 
5:
        {        
            if (
g_jbpacks[id] >= Obtener5 && vivo)
            {
                
g_jbpacks[id] -= Obtener5
                ChatColor
(id"%L"LANG_PLAYER"BUY_SPEED")
                
set_user_maxspeed(id500.0)
                
Speed[id] = 1
                emit_sound
(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
                
Ronda[id] = 0
            
}
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")  
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
        case 
6:
        {    
            if (
g_jbpacks[id] >= Obtener6 && vivo)
            {
                
g_jbpacks[id] -= Obtener6
                ChatColor
(id"%L"LANG_PLAYER"BUY_DRUGS")
                
set_user_armor(idarmor1 armor2)
                
set_user_health(idvida1 vida2)
                
set_user_maxspeed(id380.0)
                
Speed2[id] = 1
                message_begin
MSG_ONEgmsg_SetFOV, { 00}, id )
                
write_byte180 )
                
message_end( )  
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
                
Ronda[id] = 0
            
}
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
        case 
7:
        {
            if (
g_jbpacks[id] >= Obtener7 && vivo)
            {
                
g_jbpacks[id] -= Obtener7    
                ChatColor
(id"%L"LANG_PLAYER"BUY_GLOCK")
                
cs_set_weapon_ammogive_itemid"weapon_glock18" ), get_pcvar_num(glock1))
                
cs_set_user_bpammo(idCSW_GLOCK18get_pcvar_num(glock2))
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM
                
Ronda[id] = 0
            
}
            else
            {
                
ChatColor(id"%L"LANG_PLAYER"MONEY")
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM
            }
        }
    }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

public 
client_putinserver(id
{
    
LoadJbs(id)
    
set_task(1.0"JailbreakPacks"id__"b")
}

public 
JailbreakPacks(id)
{
    
set_hudmessage(142239390.500.9006.02.5)
    
ShowSyncHudMsg(idsyncObj,"Euro : %i"g_jbpacks[id])
}

public 
duel_menu(id)
{    
    if (!
is_user_admin(id))
    {
        
ChatColor(id"%L"LANG_PLAYER"CANT")
        return 
PLUGIN_HANDLED
    
}
    
    static 
opcion[64]
    
    
formatex(opcioncharsmax(opcion),"\y%L"LANG_PLAYER"JBPACKS")
    new 
iMenu menu_create(opcion"menu")
    
    
formatex(opcioncharsmax(opcion),"\w%L"LANG_PLAYER"GIVE_JBPACKS")
    
menu_additem(iMenuopcion"1")    
    
    
formatex(opcioncharsmax(opcion),"\w%L"LANG_PLAYER"TAKE_JBPACKS")
    
menu_additem(iMenuopcion"2")    
    
    
menu_setprop(iMenuMPROP_EXITMEXIT_ALL)
    
menu_display(idiMenu0)
    
    return 
PLUGIN_HANDLED
}

public 
tlveral(id)

 if (!
is_user_admin(id))
 {
 
ChatColor(id"%L"LANG_PLAYER"CANT")
 return 
PLUGIN_HANDLED
 
}
 
 static 
opcion[64]
 
 
formatex(opcioncharsmax(opcion),"\y[ ~ Explose ~ ]"LANG_PLAYER)
 new 
iMenu menu_create(opcion"menu")
 
 
formatex(opcioncharsmax(opcion),"\wEuro Jep"LANG_PLAYER)
 
menu_additem(iMenuopcion"1"
 
 
formatex(opcioncharsmax(opcion),"\wEuro Merr"LANG_PLAYER)
 
menu_additem(iMenuopcion"2"
 
 
menu_setprop(iMenuMPROP_EXITMEXIT_ALL)
 
menu_display(idiMenu0)
 
 return 
PLUGIN_HANDLED
}



public 
menu(idmenuitem)
{
    
    if (
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
Data[6], Name[64]
    new 
AccessCallback
    
    menu_item_getinfo
(menuitemAccessData,5Name63Callback)
    
    new 
Key str_to_num(Data)
    
    switch (
Key)
    {
        case 
1:
        {    
            
regalar[id] = 1
            quitar
[id] = 0    
            escojer
(id)
        }
        case 
2
        {    
            
quitar[id] = 1
            regalar
[id] = 0
            escojer
(id)
        }
    }
    
    
menu_destroy(menu)    
    return 
PLUGIN_HANDLED
}


public 
escojer(id)
{
    static 
opcion[64]
    
    
formatex(opcioncharsmax(opcion),"\y%L"LANG_PLAYER"CHOOSE")
    new 
iMenu menu_create(opcion"choose")
    
    new 
players[32], pnumtempid
    
new szName[32], szTempid[10]
    
    
get_players(playerspnum"a")
    
    for( new 
ii<pnumi++ )
    {
        
tempid players
        
        get_user_name
(tempidszName31)
        
num_to_str(tempidszTempid9)
        
        
formatex(opcioncharsmax(opcion), "\w%s \rEuro[%d]"szNameg_jbpacks[tempid])
        
menu_additem(iMenuopcionszTempid0)
    }
    
    
menu_display(idiMenu)
    return 
PLUGIN_HANDLED
}

public 
choose(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
Data[6], Name[64]
    new 
AccessCallback
    menu_item_getinfo
(menuitemAccessData,5Name63Callback)
    
    new 
tempid str_to_num(Data)
    
    
gidPlayer[id] = tempid
    client_cmd
(id"messagemode JbPacks")
    
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED
}

public 
playerhandle(id)
{
    
// on death
    
g_jbpacks[id] += 4;
}

public 
player(id)
{
    new 
say[300]
    
read_args(saycharsmax(say))
    
    
remove_quotes(say)
    
    if(!
is_str_num(say) || equal(say""))
        return 
PLUGIN_HANDLED
    
    jbpacks
(idsay)    
    
    return 
PLUGIN_HANDLED 
}

public 
fw_GetVaultData(id)
{
    
//initaliazed[id] = get_vaultdata(read_data(1));
    
initaliazed[id] = true;
}


jbpacks(idsay[]) {
    new 
amount str_to_num(say)
    new 
victim gidPlayer[id]
    
    new 
vname[32]
    new 
adminname[32]
    
    if(
victim 0)
    {
        
get_user_name(victimvname31)
        
get_user_name(idadminname31)
        
        if(
regalar[id])
        {
            if(
amount get_pcvar_num(g_maxjp))
            {
                
g_jbpacks[victim] = get_pcvar_num(g_maxjp)
            }
            else
            {
                
g_jbpacks[victim] = g_jbpacks[victim] + amount
            
}
            
ChatColor(0"[%s] Admin, %s tek lojtari %d dha!",adminnamevnameamount)
        }
        if(
quitar[id])
        {
            if(
amount g_jbpacks[victim])
            {
                
g_jbpacks[victim] = 0
                ChatColor
(0"[%s] Admin, %s lojtarit i mur te gjitha Euro!",adminnamevname)
            }
            else 
            {
                
g_jbpacks[victim] = g_jbpacks[victim] - amount
                ChatColor
(0"[%s] Admin, %s lojtarit  %d Euro i morri!",adminnamevnameamount)
            }
            
        }        
    }
    
    return 
PLUGIN_HANDLED
}  


public 
Fwd_PlayerSpawn_Post(id)
{
    if (
is_user_alive(id))
    {
        if(
get_user_team(id) == 1strip_user_weapons(id); give_item(id"weapon_knife")    
        
        
set_user_footsteps(id0)
        
Speed[id]     = 0
        Speed2
[id]     = 0
        Ronda
[id]     = 1
        CTCuchillo
[id]     = 1
        TCuchillo
[id]     = 1
        Destapador
[id]     = 0
        Hacha
[id]     = 0
        Machete
[id]     = 0
        Motocierra
[id]     = 0
        Tienda1
(id)
        if(
g_innoclip[id])
        {
            
set_user_noclip(id0)
            
g_innoclip[id] = false;
            
g_lastPosition[id][0] = 0
            g_lastPosition
[id][1] = 0
            g_lastPosition
[id][2] = 0
            
            set_user_rendering
(idkRenderFxNone000kRenderTransAlpha255)
        }
        if(
get_pcvar_num(help))    ChatColor(id"%L"LANG_PLAYER"HELP")
    }
}

public 
FwdTakeDamage(victiminflictorattackerFloat:damagedamage_bits)
{
    
    if (
is_valid_player(attacker) && get_user_weapon(attacker) == CSW_KNIFE)    
    {
        switch(
get_user_team(attacker))
        {
            case 
1:
            {
                if(
TCuchillo[attacker])
                {    
                    
                    
SetHamParamFloat(4get_pcvar_float(TDefaultDano))
                    
                    if(
get_pdata_int(victim75) == HIT_HEAD)
                    {
                        
SetHamParamFloat(4get_pcvar_float(hTDefaultDano))
                    }
                }
                
                if(
Destapador[attacker])
                { 
                    
SetHamParamFloat(4get_pcvar_float(PaloDano))
                    
                    if(
get_pdata_int(victim75) == HIT_HEAD)
                    {
                        
SetHamParamFloat(4get_pcvar_float(hPaloDano))
                    }
                }
                
                if(
Hacha[attacker])
                {        
                    
SetHamParamFloat(4get_pcvar_float(HachaDano))
                    
                    if(
get_pdata_int(victim75) == HIT_HEAD)
                    {
                        
SetHamParamFloat(4get_pcvar_float(hHachaDano))
                    }
                }
                
                if(
Machete[attacker])
                {        
                    
SetHamParamFloat(4get_pcvar_float(MacheteDano))
                    
                    if(
get_pdata_int(victim75) == HIT_HEAD)
                    {
                        
SetHamParamFloat(4get_pcvar_float(hMacheteDano))
                    }
                }
                
                if(
Motocierra[attacker])
                {    
                    
SetHamParamFloat(4get_pcvar_float(MotocierraDano))
                }
            }
            case 
2:
            {
                if(
CTCuchillo[attacker])
                {    
                    
SetHamParamFloat(4get_pcvar_float(CTDefaultDano))
                    
                    if(
get_pdata_int(victim75) == HIT_HEAD)
                    {
                        
SetHamParamFloat(4get_pcvar_float(hCTDefaultDano))
                    }
                }
            }
        }
    }
    if(
is_user_connected(attacker) && initaliazed[attacker] && get_user_weapon(attacker) != CSW_KNIFE)
    {
        
SetHamParamFloat(4damage random_float(1.6,1.8));
    }
    return 
HAM_HANDLED
}  

public 
fw_player_killed(victimattackershouldgib)
{
    if(
get_user_team(attacker) == 1)
    {
        
g_jbpacks[attacker] += get_pcvar_num(g_killjp
        
        if(
get_pdata_int(victim75) == HIT_HEAD)
        {
            
g_jbpacks[attacker] += get_pcvar_num(g_killhsjp)
        }
    }
}


public 
Event_Change_Weapon(id)
{
    new 
weaponID read_data(2
    
    switch (
get_user_team(id))
    {
        case 
1:
        {
            if(
Speed[id])
            {
                
set_user_maxspeed(id500.0)
            }
            
            if(
Speed2[id])
            {
                
set_user_maxspeed(id380.0)
            }
            
            if(
weaponID == CSW_KNIFE && get_pcvar_num(OnOff2))
            {
                if(
TCuchillo[id])
                {
                    
set_pev(idpev_viewmodel2VIEW_MODELT)
                    
set_pev(idpev_weaponmodel2PLAYER_MODELT)
                }
                
                if(
Destapador[id])
                {
                    
set_pev(idpev_viewmodel2VIEW_Palo)
                    
set_pev(idpev_weaponmodel2PLAYER_Palo)
                }
                
                if(
Hacha[id])
                {
                    
set_pev(idpev_viewmodel2VIEW_Hacha)
                    
set_pev(idpev_weaponmodel2PLAYER_Hacha)
                }
                
                if(
Machete[id])
                {
                    
set_pev(idpev_viewmodel2VIEW_Machete)
                    
set_pev(idpev_weaponmodel2PLAYER_Machete)
                }
                
                if(
Motocierra[id])
                {
                    
set_pev(idpev_viewmodel2VIEW_Moto)
                    
set_pev(idpev_weaponmodel2PLAYER_Moto)
                }
                
                
            }
        }
        case 
2:
        {
            if(
CTCuchillo[id] && weaponID == CSW_KNIFE)
            {
                
set_pev(idpev_viewmodel2VIEW_MODELCT)
                
set_pev(idpev_weaponmodel2PLAYER_MODELCT)
            }
        }
    }
    return 
PLUGIN_CONTINUE 
}


public 
client_connect(id)
{
    if(
get_cvar_num("jb_savejb"))
    {
        
LoadJbs(id)
    }
    
initaliazed[id] = false;
    
g_innoclip[id] = false;
    
g_lastPosition[id][0] = 0
    g_lastPosition
[id][1] = 0
    g_lastPosition
[id][2] = 0
}
public 
client_disconnect(id)
{
    if(
get_cvar_num("jb_savejb"))
    {
    
SaveJbs(id)    
    }
    
initaliazed[id] = false;
    
g_innoclip[id] = false;
    
g_lastPosition[id][0] = 0
    g_lastPosition
[id][1] = 0
    g_lastPosition
[id][2] = 0
}

stock LoadJbs(id)
{
new 
authid[64]; 
get_user_name(id,authid,63)
replace_all(authid,63," ","&#-$")

new 
vaultkey[64], vaultdata[64]
format(vaultkey,63,"SAVEJP-%s",authid); 
if(
fvaultdata_exists(vaultkey))
{
    
nvault_get(mainvault,vaultkey,vaultdata,63); 
    if(
str_to_num(vaultdata) < get_pcvar_num(g_startjp))
    {
        
g_jbpacks[id] = get_pcvar_num(g_startjp)
    }
    else
    {
        
g_jbpacks[id] = str_to_num(vaultdata);
    }
}
else
{
    
g_jbpacks[id] = get_pcvar_num(g_startjp)

}

stock SaveJbs(id)
{
new 
authid[64]; 
get_user_name(id,authid,63)
replace_all(authid,63," ","&#-$")
new 
vaultkey[64], vaultdata[64]; 


format(vaultkey,63,"SAVEJP-%s",authid); 
format(vaultdata,63,"%d",g_jbpacks[id]); 
nvault_set(mainvault,vaultkey,vaultdata); 
}


/*public client_infochanged(id) 

new newname[32],oldname[32] 
get_user_info(id, "name", newname,31) 
get_user_name(id,oldname,31) 
if(!is_user_connected(id) || is_user_bot(id)) return PLUGIN_CONTINUE;
if(!equali(newname, oldname))
{
set_user_info(id,"name",oldname)
client_print(id , print_console , "Isim degisikligi engellenmistir! [MGA]");
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;


*/ 



public fw_SetModel(entitymodel[])
{
if(!
pev_valid(entity))
return 
FMRES_IGNORED

if(!equali(modelOLDWORLD_MODEL)) 
    return 
FMRES_IGNORED
    
new className[33]
pev(entitypev_classnameclassName32)
    
if(
equal(className"weaponbox") || equal(className"armoury_entity") || equal(className"grenade"))
{
    
engfunc(EngFunc_SetModelentityWORLD_MODEL)
    return 
FMRES_SUPERCEDE
}
return 
FMRES_IGNORED
}

public 
Fwd_EmitSound(idchannel, const sample[], Float:volumeFloat:attnflagspitch)
{
    
    if (!
is_user_connected(id))
        return 
FMRES_IGNORED;
    
    if(
CTCuchillo[id])
    {
        if(
get_user_team(id) == 2)
        {
            if (
equal(sample[8], "kni"3))
            {
                if (
equal(sample[14], "sla"3)) 
                {
                    switch (
random_num(12))
                    {
                        case 
1engfunc(EngFunc_EmitSoundidchannelct_slash1volumeattnflagspitch)
                            case 
2engfunc(EngFunc_EmitSoundidchannelct_slash2volumeattnflagspitch)
                        }
                    
                    return 
FMRES_SUPERCEDE;
                }
                if(
equal(sample,"weapons/knife_deploy1.wav"))
                {
                    
engfunc(EngFunc_EmitSoundidchannelct_deployvolumeattnflagspitch)
                    return 
FMRES_SUPERCEDE;
                }
                if (
equal(sample[14], "hit"3))
                {
                    if (
sample[17] == 'w')
                    {
                        
engfunc(EngFunc_EmitSoundidchannelct_wallvolumeattnflagspitch)
                        return 
FMRES_SUPERCEDE;
                    }
                    else 
                    {
                        switch (
random_num(14))
                        {
                            case 
1engfunc(EngFunc_EmitSoundidchannelct_hit1volumeattnflagspitch)
                                case 
2engfunc(EngFunc_EmitSoundidchannelct_hit2volumeattnflagspitch)
                                case 
3engfunc(EngFunc_EmitSoundidchannelct_hit3volumeattnflagspitch)
                                case 
4engfunc(EngFunc_EmitSoundidchannelct_hit4volumeattnflagspitch)
                            }
                        
                        return 
FMRES_SUPERCEDE;
                    }
                }
                if (
equal(sample[14], "sta"3)) 
                {
                    
engfunc(EngFunc_EmitSoundidchannelct_stabvolumeattnflagspitch)
                    return 
FMRES_SUPERCEDE;
                }
            }
        }    
    }
    
    if(
TCuchillo[id])
    {
        if(
get_user_team(id) == 1)
        {
            if (
equal(sample[8], "kni"3))
            {
                if (
equal(sample[14], "sla"3)) 
                {
                    switch (
random_num(12))
                    {
                        case 
1engfunc(EngFunc_EmitSoundidchannelt_slash1volumeattnflagspitch)
                            case 
2engfunc(EngFunc_EmitSoundidchannelt_slash2volumeattnflagspitch)
                        }
                    
                    return 
FMRES_SUPERCEDE;
                }
                if(
equal(sample,"weapons/knife_deploy1.wav"))
                {
                    
engfunc(EngFunc_EmitSoundidchannelt_deployvolumeattnflagspitch)
                    return 
FMRES_SUPERCEDE;
                }
                if (
equal(sample[14], "hit"3))
                {
                    if (
sample[17] == 'w'
                    {
                        
engfunc(EngFunc_EmitSoundidchannelt_wallvolumeattnflagspitch)
                        return 
FMRES_SUPERCEDE;
                    }
                    else 
                    {
                        switch (
random_num(14))
                        {
                            case 
1engfunc(EngFunc_EmitSoundidchannelt_hit1volumeattnflagspitch)
                                case 
2engfunc(EngFunc_EmitSoundidchannelt_hit2volumeattnflagspitch)
                                case 
3engfunc(EngFunc_EmitSoundidchannelt_hit3volumeattnflagspitch)
                                case 
4engfunc(EngFunc_EmitSoundidchannelt_hit4volumeattnflagspitch)
                            }
                        
                        return 
FMRES_SUPERCEDE;
                    }
                }
                if (
equal(sample[14], "sta"3))
                {
                    
engfunc(EngFunc_EmitSoundidchannelt_stabvolumeattnflagspitch)
                    return 
FMRES_SUPERCEDE;
                }
            }
        }
    }
    
    if(
Destapador[id])
    {
        if (
equal(sample[8], "kni"3))
        {
            if (
equal(sample[14], "sla"3)) 
            {
                switch (
random_num(12))
                {
                    case 
1engfunc(EngFunc_EmitSoundidchannelpalo_slash1volumeattnflagspitch)
                        case 
2engfunc(EngFunc_EmitSoundidchannelpalo_slash2volumeattnflagspitch)
                        
                }
                
                return 
FMRES_SUPERCEDE;
            }
            if(
equal(sample,"weapons/knife_deploy1.wav"))
            {
                
engfunc(EngFunc_EmitSoundidchannelpalo_deployvolumeattnflagspitch)
                return 
FMRES_SUPERCEDE;
            }
            if (
equal(sample[14], "hit"3))
            {
                if (
sample[17] == 'w'
                {
                    
engfunc(EngFunc_EmitSoundidchannelpalo_wallvolumeattnflagspitch)
                    return 
FMRES_SUPERCEDE;
                }
                else 
                {
                    switch (
random_num(14))
                    {
                        case 
1:engfunc(EngFunc_EmitSoundidchannelpalo_hit1volumeattnflagspitch)
                            case 
2:engfunc(EngFunc_EmitSoundidchannelpalo_hit2volumeattnflagspitch)
                            case 
3:engfunc(EngFunc_EmitSoundidchannelpalo_hit3volumeattnflagspitch)
                            case 
4:engfunc(EngFunc_EmitSoundidchannelpalo_hit4volumeattnflagspitch)
                        }
                    
                    return 
FMRES_SUPERCEDE;
                }
            }
            if (
equal(sample[14], "sta"3))
            {
                
engfunc(EngFunc_EmitSoundidchannelpalo_stabvolumeattnflagspitch)
                return 
FMRES_SUPERCEDE;
            }
        }
    }
    
    if(
Hacha[id])
    {
        
        if (
equal(sample[8], "kni"3))
        {
            if (
equal(sample[14], "sla"3))
            {
                switch (
random_num(12))
                {
                    case 
1engfunc(EngFunc_EmitSoundidchannelhacha_slash1volumeattnflagspitch)
                        case 
2engfunc(EngFunc_EmitSoundidchannelhacha_slash2volumeattnflagspitch)
                    }
                
                return 
FMRES_SUPERCEDE;
            }
            if(
equal(sample,"weapons/knife_deploy1.wav"))
            {
                
engfunc(EngFunc_EmitSoundidchannelhacha_deployvolumeattnflagspitch)
                return 
FMRES_SUPERCEDE;
            }
            if (
equal(sample[14], "hit"3))
            {
                if (
sample[17] == 'w')
                {
                    
engfunc(EngFunc_EmitSoundidchannelhacha_wallvolumeattnflagspitch)
                    return 
FMRES_SUPERCEDE;
                }
                else 
                {
                    switch (
random_num(13))
                    {
                        case 
1engfunc(EngFunc_EmitSoundidchannelhacha_hit1volumeattnflagspitch)
                            case 
2engfunc(EngFunc_EmitSoundidchannelhacha_hit2volumeattnflagspitch)
                            case 
3engfunc(EngFunc_EmitSoundidchannelhacha_hit3volumeattnflagspitch)
                        }
                    
                    return 
FMRES_SUPERCEDE;
                }
            }
            if (
equal(sample[14], "sta"3)) 
            {
                
engfunc(EngFunc_EmitSoundidchannelhacha_stabvolumeattnflagspitch)
                return 
FMRES_SUPERCEDE;
            }
        }
    }
    
    if(
Machete[id])
    {
        if (
equal(sample[8], "kni"3))
        {
            if (
equal(sample[14], "sla"3)) 
            {
                switch (
random_num(12))
                {
                    case 
1engfunc(EngFunc_EmitSoundidchannelmachete_slash1volumeattnflagspitch)
                        case 
2engfunc(EngFunc_EmitSoundidchannelmachete_slash2volumeattnflagspitch)
                    }
                return 
FMRES_SUPERCEDE;
            }
            if(
equal(sample,"weapons/knife_deploy1.wav"))
            {
                
engfunc(EngFunc_EmitSoundidchannelmachete_deployvolumeattnflagspitch)
                return 
FMRES_SUPERCEDE;
            }
            if (
equal(sample[14], "hit"3))
            {
                if (
sample[17] == 'w'
                {
                    
engfunc(EngFunc_EmitSoundidchannelmachete_wallvolumeattnflagspitch)
                    return 
FMRES_SUPERCEDE;
                }
                else 
// hit
                
{
                    switch (
random_num(14))
                    {
                        case 
1engfunc(EngFunc_EmitSoundidchannelmachete_hit1volumeattnflagspitch)
                            case 
2engfunc(EngFunc_EmitSoundidchannelmachete_hit2volumeattnflagspitch)
                            case 
3engfunc(EngFunc_EmitSoundidchannelmachete_hit3volumeattnflagspitch)
                            case 
4engfunc(EngFunc_EmitSoundidchannelmachete_hit4volumeattnflagspitch)
                        }
                    return 
FMRES_SUPERCEDE;
                }
            }
            if (
equal(sample[14], "sta"3)) 
            {
                
engfunc(EngFunc_EmitSoundidchannelmachete_stabvolumeattnflagspitch)
                return 
FMRES_SUPERCEDE;
            }
        }
    }
    
    if(
Motocierra[id])
    {
        
        if (
equal(sample[8], "kni"3))
        {
            if (
equal(sample[14], "sla"3))
            {
                
engfunc(EngFunc_EmitSoundidchannelmotocierra_slashvolumeattnflagspitch)
                return 
FMRES_SUPERCEDE;
            }
            if(
equal(sample,"weapons/knife_deploy1.wav"))
            {
                
engfunc(EngFunc_EmitSoundidchannelmotocierra_deployvolumeattnflagspitch)
                return 
FMRES_SUPERCEDE;
            }
            if (
equal(sample[14], "hit"3))
            {
                if (
sample[17] == 'w'
                {
                    
engfunc(EngFunc_EmitSoundidchannelmotocierra_wallvolumeattnflagspitch)
                    return 
FMRES_SUPERCEDE;
                }
                else 
                {
                    switch (
random_num(12))
                    {
                        case 
1engfunc(EngFunc_EmitSoundidchannelmotocierra_hit1volumeattnflagspitch)
                            case 
2engfunc(EngFunc_EmitSoundidchannelmotocierra_hit2volumeattnflagspitch)
                            
                    }
                    return 
FMRES_SUPERCEDE;
                }
            }
            if (
equal(sample[14], "sta"3)) 
            {
                
engfunc(EngFunc_EmitSoundidchannelmotocierra_stabvolumeattnflagspitch)
                return 
FMRES_SUPERCEDE;
            }
        }
    }    
    return 
FMRES_IGNORED;
}

/*============================================================
Stocks!
============================================================*/
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!team""^3"// Team Color
    
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
    {
    for (new 
0counti++)
    {
        if (
is_user_connected(players))
        {
            
message_begin(MSG_ONE_UNRELIABLEg_iMsgSayText_players)  
            
write_byte(players);
            
write_string(msg);
            
message_end();
        }
    }
}
}  

stock ham_strip_weapon(id,weapon[])
{
if(!
equal(weapon,"weapon_",7)) return 0;

new 
wId get_weaponid(weapon);
if(!
wId) return 0;

new 
wEnt;
while((
wEnt engfunc(EngFunc_FindEntityByString,wEnt,"classname",weapon)) && pev(wEnt,pev_owner) != id) {}
if(!
wEnt) return 0;

if(
get_user_weapon(id) == wIdExecuteHamB(Ham_Weapon_RetireWeapon,wEnt);

if(!
ExecuteHamB(Ham_RemovePlayerItem,id,wEnt)) return 0;
ExecuteHamB(Ham_Item_Kill,wEnt);

set_pev(id,pev_weapons,pev(id,pev_weapons) & ~(1<<wId));

return 
1;
}  



public 
positionChangeTimer(id)
{
if ( !
is_user_alive(id) ) return

get_user_origin(idg_lastPosition[id], 0)

new 
Float:velocity[3]
Entvars_Get_Vector(idEV_VEC_velocityvelocity)

if ( 
velocity[0]==0.0 && velocity[1]==0.0 ) {
    
velocity[0] += 20.0
    velocity
[2] += 100.0
    Entvars_Set_Vector
(idEV_VEC_velocityvelocity)
}

set_task(0.4,"positionChangeCheck",id 9911)
}
//----------------------------------------------------------------------------------------------
public positionChangeCheck(taskid)
{
new 
id taskid 9911;
new 
origin[3]

if (!
is_user_alive(id) ) return

get_user_origin(idorigin0)
if ( 
g_lastPosition[id][0] == origin[0] && g_lastPosition[id][1] == origin[1] && g_lastPosition[id][2] == origin[2] && is_user_alive(id) ) {
    
user_kill(id)
    
client_print(id,print_center,"Duvarda kaldigin icin ezildin!")
}
remove_task(taskid)
}  

public 
normalize_light(Taskid)
{
set_lights("#OFF")
}

stock Entvars_Get_Vector(iIndexiVariableFloat:vRetVector[3])
return 
entity_get_vector(iIndexiVariablevRetVector)

stock Entvars_Set_Vector(iIndexiVariableFloat:vNewVector[3])
    return 
entity_set_vector(iIndexiVariablevNewVector)


stock fvaultdata_exists(const key[])
{
if(
nvault_get(mainvault,key) != -1)
{
return 
1;
}
else
{
return 
0;    
}
return -
1;
}


public 
native_jb_get_user_packs(id)
{
return 
g_jbpacks[id];
}

public 
native_jb_set_user_packs(idammount)
{
new 
id get_param(1);
new 
ammount get_param(2);
g_jbpacks[id] = ammount
return 1;

arkadaslar beni tl vermek icin /ej yazyom kendim ayarladim ama ben para vermek icin admin_cvar olmasi gerekyo yaptim ama calismiyo cvar olmayan larda girebilyo slotlarda para verebilyo biri ayarlayabilirmi sadece cvar olan girebilsin[/i][/i][/i][/i][/i]


Cevap: Jailbreak /tl verme - akcaliberkk - 16-03-13

PHP Code:
/* 

*      Plugin: JailBreak Shop 
*      Autor: MaNuCs 
*   
*      Credits: rubee 
*                Gladius 
*         capostrike93 
*         apu 
*/ 

#include <amxmodx> 
#include <amxmisc> 
#include <hamsandwich> 
#include <cstrike> 
#include <fakemeta> 
#include <fun> 
#include <nvault> 
#include <engine> 

#define ADMIN_ACCESS ADMIN_CVAR 
   


#define is_valid_player(%1) (1 <= %1 <= 32) 

/*============================================================ 
Variables 
============================================================*/ 

new      
OnOff,  
OnOff2,  
precio1,  
precio2,  
precio3
precio4,  
precio5,  
precio6,  
precio7,  
precioC1,  
precioC2,  
precioC3
precioC4
CTDefaultDano,  
TDefaultDano,  
PaloDano,  
HachaDano,  
MacheteDano,  
MotocierraDano
hTDefaultDano,  
hCTDefaultDano,  
hPaloDano,  
hHachaDano,  
hMacheteDano
Vida
Armor
glock1
glock2
help
g_killjp,  
g_killhsjp,  
g_startjp
g_maxjp
g_iMsgSayText
syncObj
Ronda[33], 
Speed[33], 
Speed2[33], 
TCuchillo[33], 
CTCuchillo[33], 
Destapador[33], 
Hacha[33], 
Machete[33], 
Motocierra[33], 
g_jbpacks[33], 
quitar[33], 
regalar[33], 
gidPlayer[33], 
mainvault 


/*============================================================ 
Weapon Model's 
============================================================*/ 


new VIEW_MODELT[]        = "models/[Shop]JailBreak/Punos/Punos.mdl"  
new PLAYER_MODELT[]     = "models/[Shop]JailBreak/Punos/Punos2.mdl"  

new VIEW_MODELCT[]        = "models/[Shop]JailBreak/Electro/ozanjop.mdl"  
new PLAYER_MODELCT[]       = "models/[Shop]JailBreak/Electro/ozanjop2.mdl"  

new VIEW_Hacha[]        = "models/[Shop]JailBreak/Hacha/Hacha.mdl"  
new PLAYER_Hacha[]       = "models/[Shop]JailBreak/Hacha/Hacha2.mdl"  

new VIEW_Machete[]        = "models/[Shop]JailBreak/Machete/Machete.mdl"  
new PLAYER_Machete[]        = "models/[Shop]JailBreak/Machete/Machete2.mdl" 

new VIEW_Palo[]        = "models/[Shop]JailBreak/Palo/Palo.mdl"  
new PLAYER_Palo[]        = "models/[Shop]JailBreak/Palo/Palo2.mdl"  

new VIEW_Moto[]        = "models/[Shop]JailBreak/Moto/Moto.mdl"  
new PLAYER_Moto[]        = "models/[Shop]JailBreak/Moto/Moto2.mdl"  

new WORLD_MODEL[]        = "models/w_knife.mdl" 
new OLDWORLD_MODEL[]        = "models/w_knife.mdl" 

/*============================================================ 
Shop Sounds! 
============================================================*/ 
new const Si[]         = { "[Shop]JailBreak/Yes.wav" 
new const 
No[]         = { "[Shop]JailBreak/No.wav" 

/*============================================================ 
Weapon Sound's 
============================================================*/ 

new const palo_deploy[]         = { "weapons/knife_deploy1.wav" 
new const 
palo_slash1[]         = { "weapons/knife_slash1.wav" 
new const 
palo_slash2[]         = { "weapons/knife_slash2.wav" 
new const 
palo_wall[]         = { "[Shop]JailBreak/Palo/PHitWall.wav" }  
new const 
palo_hit1[]         = { "[Shop]JailBreak/Palo/PHit1.wav" }  
new const 
palo_hit2[]         = { "[Shop]JailBreak/Palo/PHit2.wav" }  
new const 
palo_hit3[]         = { "[Shop]JailBreak/Palo/PHit3.wav" }  
new const 
palo_hit4[]         = { "[Shop]JailBreak/Palo/PHit4.wav" }  
new const 
palo_stab[]         = { "[Shop]JailBreak/Palo/PStab.wav" 

new const 
hacha_deploy[]     = { "weapons/knife_deploy1.wav" 
new const 
hacha_slash1[]     = { "[Shop]JailBreak/Hacha/HSlash1.wav" 
new const 
hacha_slash2[]     = { "[Shop]JailBreak/Hacha/HSlash2.wav" 
new const 
hacha_wall[]         = { "[Shop]JailBreak/Hacha/HHitWall.wav" 
new const 
hacha_hit1[]         = { "[Shop]JailBreak/Hacha/HHit1.wav" 
new const 
hacha_hit2[]         = { "[Shop]JailBreak/Hacha/HHit2.wav" 
new const 
hacha_hit3[]         = { "[Shop]JailBreak/Hacha/HHit3.wav" 
new const 
hacha_stab[]         = { "[Shop]JailBreak/Hacha/HHit4.wav" 

new const 
machete_deploy[]     = { "[Shop]JailBreak/Machete/MConvoca.wav" 
new const 
machete_slash1[]     = { "[Shop]JailBreak/Machete/MSlash1.wav" 
new const 
machete_slash2[]     = { "[Shop]JailBreak/Machete/MSlash2.wav" 
new const 
machete_wall[]     = { "[Shop]JailBreak/Machete/MHitWall.wav" 
new const 
machete_hit1[]     = { "[Shop]JailBreak/Machete/MHit1.wav" 
new const 
machete_hit2[]     = { "[Shop]JailBreak/Machete/MHit2.wav" 
new const 
machete_hit3[]     = { "[Shop]JailBreak/Machete/MHit3.wav" 
new const 
machete_hit4[]     = { "[Shop]JailBreak/Machete/MHit4.wav" 
new const 
machete_stab[]     = { "[Shop]JailBreak/Machete/MStab.wav" 

new const 
motocierra_deploy[]     = { "[Shop]JailBreak/Moto/MTConvoca.wav", } 
new const 
motocierra_slash[]     = { "[Shop]JailBreak/Moto/MTSlash.wav", } 
new const 
motocierra_wall[]     = { "[Shop]JailBreak/Moto/MTHitWall.wav" 
new const 
motocierra_hit1[]     = { "[Shop]JailBreak/Moto/MTHit1.wav",  } 
new const 
motocierra_hit2[]     = { "[Shop]JailBreak/Moto/MTHit2.wav",  } 
new const 
motocierra_stab[]     = { "[Shop]JailBreak/Moto/MTStab.wav"  

new const 
t_deploy[]         = { "[Shop]JailBreak/T/TConvoca.wav", } 
new const 
t_slash1[]         = { "[Shop]JailBreak/T/Slash1.wav", } 
new const 
t_slash2[]         = { "[Shop]JailBreak/T/Slash2.wav", } 
new const 
t_wall[]         = { "[Shop]JailBreak/T/THitWall.wav" 
new const 
t_hit1[]         = { "[Shop]JailBreak/T/THit1.wav",  } 
new const 
t_hit2[]         = { "[Shop]JailBreak/T/THit2.wav",  } 
new const 
t_hit3[]         = { "[Shop]JailBreak/T/THit3.wav",  } 
new const 
t_hit4[]         = { "[Shop]JailBreak/T/THit4.wav",  } 
new const 
t_stab[]         = { "[Shop]JailBreak/T/TStab.wav"  
new 
bool:initaliazed[33]; 
new const 
ct_deploy[]         = { "[Shop]JailBreak/CT/CTConvoca.wav", } 
new const 
ct_slash1[]         = { "[Shop]JailBreak/CT/Slash1.wav", } 
new const 
ct_slash2[]         = { "[Shop]JailBreak/CT/Slash2.wav", } 
new const 
ct_wall[]         = { "[Shop]JailBreak/CT/CTHitWall.wav" 
new const 
ct_hit1[]         = { "[Shop]JailBreak/CT/CTHit1.wav",  } 
new const 
ct_hit2[]         = { "[Shop]JailBreak/CT/CTHit2.wav",  } 
new const 
ct_hit3[]         = { "[Shop]JailBreak/CT/CTHit3.wav",  } 
new const 
ct_hit4[]         = { "[Shop]JailBreak/CT/CTHit4.wav",  } 
new const 
ct_stab[]         = { "[Shop]JailBreak/CT/CTStab.wav"  
new 
bool:g_innoclip[33]; 
new 
g_lastPosition[33][3]; 

/*============================================================ 
Config 
============================================================*/ 

public plugin_natives() 
{     
register_native("jb_get_user_packs","native_jb_get_user_packs"1
register_native("jb_set_user_packs","native_jb_set_user_packs"

public 
plugin_init()  

         
    
register_plugin("[JB] Shop""3.1""byetovice"
     
    
mainvault nvault_open("ShopJbs"
     
     
    
register_clcmd("say /shop""Tienda"
    
register_clcmd("say !shop""Tienda"
    
register_clcmd("say_team /shop""Tienda"
    
register_clcmd("say_team !shop""Tienda"
     
    
register_clcmd("say /ej",  "tlveral"ADMIN_ACCESS
    
register_clcmd("say !ej",     "tlveral"ADMIN_ACCESS
    
register_clcmd("say_team /ej",     "tlveral"ADMIN_ACCESS
    
register_clcmd("say_team !ej",     "tlveral"ADMIN_ACCESS

    
register_clcmd("JbPacks",     "player"
     
    
register_cvar("jb_savejb","1"
     
    
register_cvar("byetovice_plugin""1.2"FCVAR_SPONLY|FCVAR_SERVER
    
RegisterHam(Ham_Spawn,         "player""Fwd_PlayerSpawn_Post",    1
    
RegisterHam(Ham_TakeDamage,     "player""FwdTakeDamage",         0
    
RegisterHam(Ham_Killed,        "player""fw_player_killed"
     
    
register_event("CurWeapon",     "Event_Change_Weapon""be""1=1"
    
register_clcmd("GetVaultData""fw_GetVaultData"
    
register_forward(FM_SetModel,     "fw_SetModel"
    
register_forward(FM_EmitSound,    "Fwd_EmitSound"
     
     
    
// 3.1 Native 
     
    /*============================================================ 
    Cvar's  
    ============================================================*/ 
    
g_killjp     register_cvar("jb_killJP",         "3");  
    
g_killhsjp     register_cvar("jb_bonushsJP",     "1"); 
    
g_startjp     register_cvar("jb_startJP",        "7");  
    
g_maxjp     register_cvar("jb_maxgiveJP",        "500");  
         
    
OnOff         register_cvar("jb_Shop",         "1")//1(ON) 0(OFF)  
    
OnOff2         register_cvar("jb_ShopKnifes",    "1")//1(ON) 0(OFF)  
    
help         register_cvar("jb_help",         "0")//1(ON) 0(OFF) 
     
    
precio1     register_cvar("jb_pFlash",         "5"
    
precio2        register_cvar("jb_pHe",         "60"
    
precio3        register_cvar("jb_pHEFL",         "75"
    
precio4        register_cvar("jb_pWalk",         "15"
    
precio5        register_cvar("jb_pFast",         "20"
    
precio6        register_cvar("jb_pDrugs",         "25"
    
precio7        register_cvar("jb_pGlock",         "40"
     
    
precioC1    register_cvar("jb_pKnife1",         "-1"
    
precioC2     register_cvar("jb_pKnife2",         "10"
    
precioC3     register_cvar("jb_pKnife3",         "20"
    
precioC4     register_cvar("jb_pKnife4",         "40"
     
    
TDefaultDano     register_cvar("jb_dKnifeT",         "20"
    
CTDefaultDano     register_cvar("jb_dKnifeCT",         "50"
    
PaloDano     register_cvar("jb_dKnife1",         "30"
    
HachaDano     register_cvar("jb_dKnife2",         "60"
    
MacheteDano     register_cvar("jb_dKnife3",         "80"
    
MotocierraDano     register_cvar("jb_dKnife4",         "200"
     
    
hTDefaultDano     register_cvar("jb_dHsKnifeT",     "30"
    
hCTDefaultDano     register_cvar("jb_dHsKnifeCT",    "80"
    
hPaloDano     register_cvar("jb_dhsKnife1",     "45"
    
hHachaDano     register_cvar("jb_dhsKnife2",     "75"
    
hMacheteDano     register_cvar("jb_dhsKnife3",     "95"
     
    
Vida         register_cvar("jb_drLife",         "200"
    
Armor         register_cvar("jb_drArmor",         "200"
     
    
glock1         register_cvar("jb_gClip",         "20"
    
glock2         register_cvar("jb_gAmmo",         "0"

    
g_iMsgSayText     get_user_msgid("SayText")  
    
syncObj     CreateHudSyncObj() 
     
     
    
/*============================================================ 
    Multi Lengual! 
    ============================================================*/ 
    
register_dictionary("JBShop.txt"
     


/*============================================================ 
Precaches  
============================================================*/ 
public plugin_precache()  

    
precache_sound(Si
    
precache_sound(No
     
    
precache_sound(t_deploy
    
precache_sound(t_slash1
    
precache_sound(t_slash2
    
precache_sound(t_stab
    
precache_sound(t_wall
    
precache_sound(t_hit1
    
precache_sound(t_hit2
    
precache_sound(t_hit3
    
precache_sound(t_hit4
     
    
precache_sound(ct_deploy
    
precache_sound(ct_slash1
    
precache_sound(ct_slash2
    
precache_sound(ct_stab
    
precache_sound(ct_wall
    
precache_sound(ct_hit1
    
precache_sound(ct_hit2
    
precache_sound(ct_hit3
    
precache_sound(ct_hit4
     
    
precache_sound(palo_deploy
    
precache_sound(palo_slash1
    
precache_sound(palo_slash2
    
precache_sound(palo_stab
    
precache_sound(palo_wall
    
precache_sound(palo_hit1
    
precache_sound(palo_hit2
    
precache_sound(palo_hit3
    
precache_sound(palo_hit4
     
    
precache_sound(machete_deploy
    
precache_sound(machete_slash1
    
precache_sound(machete_slash2
    
precache_sound(machete_stab
    
precache_sound(machete_wall
    
precache_sound(machete_hit1
    
precache_sound(machete_hit2
    
precache_sound(machete_hit3
    
precache_sound(machete_hit4
     
    
precache_sound(hacha_deploy
    
precache_sound(hacha_slash1
    
precache_sound(hacha_slash2
    
precache_sound(hacha_stab
    
precache_sound(hacha_wall
    
precache_sound(hacha_hit1
    
precache_sound(hacha_hit2
    
precache_sound(hacha_hit3
     
    
precache_sound(motocierra_deploy
    
precache_sound(motocierra_slash
    
precache_sound(motocierra_stab
    
precache_sound(motocierra_wall
    
precache_sound(motocierra_hit1
    
precache_sound(motocierra_hit2
     
     
    
precache_model(VIEW_MODELT)      
    
precache_model(PLAYER_MODELT
    
precache_model(VIEW_MODELCT)      
    
precache_model(PLAYER_MODELCT
    
precache_model(VIEW_Palo)      
    
precache_model(PLAYER_Palo)  
    
precache_model(VIEW_Hacha)      
    
precache_model(PLAYER_Hacha)     
    
precache_model(VIEW_Machete)      
    
precache_model(PLAYER_Machete)     
    
precache_model(VIEW_Moto)      
    
precache_model(PLAYER_Moto)         
    
precache_model(WORLD_MODEL
     
    return 
PLUGIN_CONTINUE 


/*============================================================ 
KNIFE SHOP 
============================================================*/ 
public Tienda1(id

    if(
get_pcvar_num(OnOff2)) 
    { 
        if (
get_user_team(id) == 
        { 
            static 
Item[64
             
            
formatex(Itemcharsmax(Item),"\y%L"LANG_PLAYER"SHOP")  
            new 
Menu menu_create(Item"CuchilleroHandler"
             
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE1"get_pcvar_num(precioC1)) 
            
menu_additem(MenuItem"1"
             
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE2"get_pcvar_num(precioC2)) 
            
menu_additem(MenuItem"2"
             
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE3"get_pcvar_num(precioC3)) 
            
menu_additem(MenuItem"3"
             
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE4"get_pcvar_num(precioC4)) 
            
menu_additem(MenuItem"4"
             
            
menu_setprop(MenuMPROP_EXITMEXIT_ALL
            
menu_display(idMenu
        } 
    } 
    return 
PLUGIN_HANDLED 


public 
CuchilleroHandler(idmenuitem

    if( 
item == MENU_EXIT 
    { 
        
menu_destroy(menu); 
        return 
PLUGIN_HANDLED
    } 
    new 
data[6], iName[64]; 
    new 
accesscallback
    
menu_item_getinfo(menuitemaccessdata,5iName63callback); 
     
    new 
vivo     is_user_alive(id
    new 
Obtener1     get_pcvar_num(precioC1
    new 
Obtener2     get_pcvar_num(precioC2
    new 
Obtener3     get_pcvar_num(precioC3
    new 
Obtener4     get_pcvar_num(precioC4)     
     
    new 
key str_to_num(data); 
     
    switch(
key
    { 
        case 
1
        { 
            if (
g_jbpacks[id]>= Obtener1 && vivo
            { 
                
g_jbpacks[id] -= Obtener1 
                CTCuchillo
[id]     = 
                TCuchillo
[id]     = 
                Destapador
[id]     = 
                Hacha
[id]     = 
                Machete
[id]     = 
                Motocierra
[id]     = 
                 
                 
                ham_strip_weapon
(id"weapon_knife"
                
give_item(id"weapon_knife"
                 
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE1"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
         
        case 
2
        { 
            if (
g_jbpacks[id] >= Obtener2 && vivo
            { 
                 
                
g_jbpacks[id] -= Obtener2 
                CTCuchillo
[id]     = 
                TCuchillo
[id]     = 
                Destapador
[id]     = 
                Hacha
[id]     = 
                Machete
[id]     = 
                Motocierra
[id]     = 
                 
                ham_strip_weapon
(id"weapon_knife"
                
give_item(id"weapon_knife"
                 
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE2"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
         
        case 
3
        { 
            if (
g_jbpacks[id] >= Obtener3 && vivo
            { 
                 
                
g_jbpacks[id] -= Obtener3 
                CTCuchillo
[id]     = 
                TCuchillo
[id]     = 
                Destapador
[id]     = 
                Hacha
[id]     = 
                Machete
[id]     = 
                Motocierra
[id]     = 
                 
                ham_strip_weapon
(id"weapon_knife"
                
give_item(id"weapon_knife"
                 
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE3"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
         
        case 
4
        { 
            if (
g_jbpacks[id] >= Obtener4 && vivo
            { 
                 
                
g_jbpacks[id] -= Obtener4 
                CTCuchillo
[id]     = 
                TCuchillo
[id]     = 
                Destapador
[id]    = 
                Hacha
[id]     = 
                Machete
[id]     = 
                Motocierra
[id]     = 
                 
                 
                ham_strip_weapon
(id"weapon_knife"
                
give_item(id"weapon_knife"
                 
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE4"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
    } 
    
menu_destroy(menu); 
    return 
PLUGIN_HANDLED


/*============================================================ 
ITEM'S MENU 
============================================================*/ 
public Tienda(id

    if(
get_pcvar_num(OnOff)) 
    { 
        if(
get_pcvar_num(OnOff) && Ronda[id]) 
        { 
            if(
is_user_alive(id)) 
            { 
                if (
cs_get_user_team(id) == CS_TEAM_T 
                { 
                    new 
contador=0
                    new 
players[32], numtempid
                     
                    
get_players(playersnum
                     
                    for (new 
i=0i<numi++) 
                    { 
                        
tempid players[i
                         
                        if (
get_user_team(tempid)==&& is_user_alive(tempid)) 
                        { 
                            
contador++; 
                        } 
                    } 
                    if ( 
contador == 
                    { 
                        
ChatColor(id"%L"LANG_PLAYER"LAST"
                    } 
                    else if ( 
contador >= 
                    { 
                        static 
Item[64
                         
                        
formatex(Itemcharsmax(Item),"\y%L"LANG_PLAYER"SHOP"
                        new 
Menu menu_create(Item"TiendaHandler"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"FLASH"get_pcvar_num(precio1)) 
                        
menu_additem(MenuItem"1"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"HE"get_pcvar_num(precio2)) 
                        
menu_additem(MenuItem"2"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"HEFLASH"get_pcvar_num(precio3)) 
                        
menu_additem(MenuItem"3"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"FOOTSTEPS"get_pcvar_num(precio4)) 
                        
menu_additem(MenuItem"4"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"SPEED"get_pcvar_num(precio5)) 
                        
menu_additem(MenuItem"5"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"DRUGS"get_pcvar_num(precio6)) 
                        
menu_additem(MenuItem"6"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"GLOCK"get_pcvar_num(precio7)) 
                        
menu_additem(MenuItem"7"
                         
                        
menu_setprop(MenuMPROP_EXITMEXIT_ALL
                        
menu_display(idMenu
                    } 
                } 
                else 
                { 
                    
ChatColor(id"%L"LANG_PLAYER"ONLY"
                } 
            } 
            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"DEAD"
            } 
        } 
        else 
        { 
            
ChatColor(id"%L"LANG_PLAYER"ONE_TIME"
        } 
    } 
    else 
    { 
        
ChatColor(id"%L",  LANG_PLAYER"SHOP_OFF"
    } 
    return 
PLUGIN_HANDLED 



public 
TiendaHandler(idmenuitem

    if( 
item == MENU_EXIT 
    { 
        
menu_destroy(menu); 
        return 
PLUGIN_HANDLED
    } 
    new 
data[6], iName[64]; 
    new 
accesscallback
    
menu_item_getinfo(menuitemaccessdata,5iName63callback); 
    new 
vivo         is_user_alive(id
    new 
gmsg_SetFOV     get_user_msgid("SetFOV")  
    new 
Obtener1         get_pcvar_num(precio1
    new 
Obtener2         get_pcvar_num(precio2
    new 
Obtener3         get_pcvar_num(precio3
    new 
Obtener4         get_pcvar_num(precio4
    new 
Obtener5         get_pcvar_num(precio5
    new 
Obtener6         get_pcvar_num(precio6
    new 
Obtener7        get_pcvar_num(precio7
    new 
vida1        get_user_health(id
    new 
vida2         get_pcvar_num(Vida
    new 
armor1        get_user_armor(id
    new 
armor2         get_pcvar_num(Armor
     
    new 
key str_to_num(data); 
    switch(
key
    { 
        case 
1
        { 
            if (
g_jbpacks[id] >= Obtener1 && vivo
            { 
                
g_jbpacks[id] -= Obtener1 
                ChatColor
(id"%L"LANG_PLAYER"BUY_FLASH"
                
give_item(id"weapon_flashbang"
                
give_item(id"weapon_flashbang"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
2
        { 
             
            if (
g_jbpacks[id] >= Obtener2 && vivo
            { 
                
g_jbpacks[id] -= Obtener2 
                ChatColor
(id"%L"LANG_PLAYER"BUY_HE"
                
give_item(id"weapon_hegrenade"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
3
        { 
             
            if (
g_jbpacks[id] >= Obtener3 && vivo
            { 
                
g_jbpacks[id] -= Obtener3 
                ChatColor
(id"%L"LANG_PLAYER"BUY_HEFLASH"
                
give_item(id"weapon_hegrenade"
                
give_item(id"weapon_flashbang"
                
give_item(id"weapon_flashbang"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
4
        { 
             
            if (
g_jbpacks[id] >= Obtener4 && vivo
            { 
                
g_jbpacks[id] -= Obtener4 
                ChatColor
(id"%L"LANG_PLAYER"BUY_FOOTSTEPS"
                
set_user_footsteps(id1
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
5
        {         
            if (
g_jbpacks[id] >= Obtener5 && vivo
            { 
                
g_jbpacks[id] -= Obtener5 
                ChatColor
(id"%L"LANG_PLAYER"BUY_SPEED"
                
set_user_maxspeed(id500.0
                
Speed[id] = 
                emit_sound
(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY")   
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
6
        {     
            if (
g_jbpacks[id] >= Obtener6 && vivo
            { 
                
g_jbpacks[id] -= Obtener6 
                ChatColor
(id"%L"LANG_PLAYER"BUY_DRUGS"
                
set_user_armor(idarmor1 armor2
                
set_user_health(idvida1 vida2
                
set_user_maxspeed(id380.0
                
Speed2[id] = 
                message_begin
MSG_ONEgmsg_SetFOV, { 00}, id 
                
write_byte180 
                
message_end( )   
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
7
        { 
            if (
g_jbpacks[id] >= Obtener7 && vivo
            { 
                
g_jbpacks[id] -= Obtener7     
                ChatColor
(id"%L"LANG_PLAYER"BUY_GLOCK"
                
cs_set_weapon_ammogive_itemid"weapon_glock18" ), get_pcvar_num(glock1)) 
                
cs_set_user_bpammo(idCSW_GLOCK18get_pcvar_num(glock2)) 
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
    } 
    
menu_destroy(menu); 
    return 
PLUGIN_HANDLED


public 
client_putinserver(id)  

    
LoadJbs(id
    
set_task(1.0"JailbreakPacks"id__"b"


public 
JailbreakPacks(id

    
set_hudmessage(142239390.500.9006.02.5
    
ShowSyncHudMsg(idsyncObj,"Euro : %i"g_jbpacks[id]) 


public 
duel_menu(id
{     
    if (!
is_user_admin(id)) 
    { 
        
ChatColor(id"%L"LANG_PLAYER"CANT"
        return 
PLUGIN_HANDLED 
    

     
    static 
opcion[64
     
    
formatex(opcioncharsmax(opcion),"\y%L"LANG_PLAYER"JBPACKS"
    new 
iMenu menu_create(opcion"menu"
     
    
formatex(opcioncharsmax(opcion),"\w%L"LANG_PLAYER"GIVE_JBPACKS"
    
menu_additem(iMenuopcion"1")     
     
    
formatex(opcioncharsmax(opcion),"\w%L"LANG_PLAYER"TAKE_JBPACKS"
    
menu_additem(iMenuopcion"2")     
     
    
menu_setprop(iMenuMPROP_EXITMEXIT_ALL
    
menu_display(idiMenu0
     
    return 
PLUGIN_HANDLED 


public 
tlveral(id
{  
 if (!
access(id,ADMIN_ACCESS)) 
 { 
 
ChatColor(id"%L"LANG_PLAYER"CANT"
 return 
PLUGIN_HANDLED 
 

  
 static 
opcion[64
  
 
formatex(opcioncharsmax(opcion),"\y[ ~ Explose ~ ]"LANG_PLAYER
 new 
iMenu menu_create(opcion"menu"
  
 
formatex(opcioncharsmax(opcion),"\wEuro Jep"LANG_PLAYER
 
menu_additem(iMenuopcion"1")  
  
 
formatex(opcioncharsmax(opcion),"\wEuro Merr"LANG_PLAYER
 
menu_additem(iMenuopcion"2")  
  
 
menu_setprop(iMenuMPROP_EXITMEXIT_ALL
 
menu_display(idiMenu0
  
 return 
PLUGIN_HANDLED 




public 
menu(idmenuitem

     
    if (
item == MENU_EXIT
    { 
        
menu_destroy(menu
        return 
PLUGIN_HANDLED 
    

     
    new 
Data[6], Name[64
    new 
AccessCallback 
     
    menu_item_getinfo
(menuitemAccessData,5Name63Callback
     
    new 
Key str_to_num(Data
     
    switch (
Key
    { 
        case 
1
        {     
            
regalar[id] = 
            quitar
[id] = 0     
            escojer
(id
        } 
        case 
2:  
        {     
            
quitar[id] = 
            regalar
[id] = 
            escojer
(id
        } 
    } 
     
    
menu_destroy(menu)     
    return 
PLUGIN_HANDLED 



public 
escojer(id

    static 
opcion[64
     
    
formatex(opcioncharsmax(opcion),"\y%L"LANG_PLAYER"CHOOSE"
    new 
iMenu menu_create(opcion"choose"
     
    new 
players[32], pnumtempid 
    
new szName[32], szTempid[10
     
    
get_players(playerspnum"a"
     
    for( new 
ii<pnumi++ ) 
    { 
        
tempid players 
         
        get_user_name
(tempidszName31
        
num_to_str(tempidszTempid9
         
        
formatex(opcioncharsmax(opcion), "\w%s \rEuro[%d]"szNameg_jbpacks[tempid]) 
        
menu_additem(iMenuopcionszTempid0
    } 
     
    
menu_display(idiMenu
    return 
PLUGIN_HANDLED 


public 
choose(idmenuitem

    if( 
item == MENU_EXIT 
    { 
        
menu_destroy(menu
        return 
PLUGIN_HANDLED 
    

     
    new 
Data[6], Name[64
    new 
AccessCallback 
    menu_item_getinfo
(menuitemAccessData,5Name63Callback
     
    new 
tempid str_to_num(Data
     
    
gidPlayer[id] = tempid 
    client_cmd
(id"messagemode JbPacks"
     
    
menu_destroy(menu
    return 
PLUGIN_HANDLED 


public 
playerhandle(id

    
// on death 
    
g_jbpacks[id] += 4


public 
player(id

    new 
say[300
    
read_args(saycharsmax(say)) 
     
    
remove_quotes(say
     
    if(!
is_str_num(say) || equal(say"")) 
        return 
PLUGIN_HANDLED 
     
    jbpacks
(idsay)     
     
    return 
PLUGIN_HANDLED  


public 
fw_GetVaultData(id

    
//initaliazed[id] = get_vaultdata(read_data(1)); 
    
initaliazed[id] = true



jbpacks(idsay[]) { 
    new 
amount str_to_num(say
    new 
victim gidPlayer[id
     
    new 
vname[32
    new 
adminname[32
     
    if(
victim 0
    { 
        
get_user_name(victimvname31
        
get_user_name(idadminname31
         
        if(
regalar[id]) 
        { 
            if(
amount get_pcvar_num(g_maxjp)) 
            { 
                
g_jbpacks[victim] = get_pcvar_num(g_maxjp
            } 
            else 
            { 
                
g_jbpacks[victim] = g_jbpacks[victim] + amount 
            

            
ChatColor(0"[%s] Admin, %s tek lojtari %d dha!",adminnamevnameamount
        } 
        if(
quitar[id]) 
        { 
            if(
amount g_jbpacks[victim]) 
            { 
                
g_jbpacks[victim] = 
                ChatColor
(0"[%s] Admin, %s lojtarit i mur te gjitha Euro!",adminnamevname
            } 
            else  
            { 
                
g_jbpacks[victim] = g_jbpacks[victim] - amount 
                ChatColor
(0"[%s] Admin, %s lojtarit  %d Euro i morri!",adminnamevnameamount
            } 
             
        }         
    } 
     
    return 
PLUGIN_HANDLED 
}   


public 
Fwd_PlayerSpawn_Post(id

    if (
is_user_alive(id)) 
    { 
        if(
get_user_team(id) == 1strip_user_weapons(id); give_item(id"weapon_knife")     
         
        
set_user_footsteps(id0
        
Speed[id]     = 
        Speed2
[id]     = 
        Ronda
[id]     = 
        CTCuchillo
[id]     = 
        TCuchillo
[id]     = 
        Destapador
[id]     = 
        Hacha
[id]     = 
        Machete
[id]     = 
        Motocierra
[id]     = 
        Tienda1
(id
        if(
g_innoclip[id]) 
        { 
            
set_user_noclip(id0
            
g_innoclip[id] = false
            
g_lastPosition[id][0] = 
            g_lastPosition
[id][1] = 
            g_lastPosition
[id][2] = 
             
            set_user_rendering
(idkRenderFxNone000kRenderTransAlpha255
        } 
        if(
get_pcvar_num(help))    ChatColor(id"%L"LANG_PLAYER"HELP"
    } 


public 
FwdTakeDamage(victiminflictorattackerFloat:damagedamage_bits

     
    if (
is_valid_player(attacker) && get_user_weapon(attacker) == CSW_KNIFE)     
    { 
        switch(
get_user_team(attacker)) 
        { 
            case 
1
            { 
                if(
TCuchillo[attacker]) 
                {     
                     
                    
SetHamParamFloat(4get_pcvar_float(TDefaultDano)) 
                     
                    if(
get_pdata_int(victim75) == HIT_HEAD
                    { 
                        
SetHamParamFloat(4get_pcvar_float(hTDefaultDano)) 
                    } 
                } 
                 
                if(
Destapador[attacker]) 
                {  
                    
SetHamParamFloat(4get_pcvar_float(PaloDano)) 
                     
                    if(
get_pdata_int(victim75) == HIT_HEAD
                    { 
                        
SetHamParamFloat(4get_pcvar_float(hPaloDano)) 
                    } 
                } 
                 
                if(
Hacha[attacker]) 
                {         
                    
SetHamParamFloat(4get_pcvar_float(HachaDano)) 
                     
                    if(
get_pdata_int(victim75) == HIT_HEAD
                    { 
                        
SetHamParamFloat(4get_pcvar_float(hHachaDano)) 
                    } 
                } 
                 
                if(
Machete[attacker]) 
                {         
                    
SetHamParamFloat(4get_pcvar_float(MacheteDano)) 
                     
                    if(
get_pdata_int(victim75) == HIT_HEAD
                    { 
                        
SetHamParamFloat(4get_pcvar_float(hMacheteDano)) 
                    } 
                } 
                 
                if(
Motocierra[attacker]) 
                {     
                    
SetHamParamFloat(4get_pcvar_float(MotocierraDano)) 
                } 
            } 
            case 
2
            { 
                if(
CTCuchillo[attacker]) 
                {     
                    
SetHamParamFloat(4get_pcvar_float(CTDefaultDano)) 
                     
                    if(
get_pdata_int(victim75) == HIT_HEAD
                    { 
                        
SetHamParamFloat(4get_pcvar_float(hCTDefaultDano)) 
                    } 
                } 
            } 
        } 
    } 
    if(
is_user_connected(attacker) && initaliazed[attacker] && get_user_weapon(attacker) != CSW_KNIFE
    { 
        
SetHamParamFloat(4damage random_float(1.6,1.8)); 
    } 
    return 
HAM_HANDLED 
}   

public 
fw_player_killed(victimattackershouldgib

    if(
get_user_team(attacker) == 1
    { 
        
g_jbpacks[attacker] += get_pcvar_num(g_killjp)  
         
        if(
get_pdata_int(victim75) == HIT_HEAD
        { 
            
g_jbpacks[attacker] += get_pcvar_num(g_killhsjp
        } 
    } 



public 
Event_Change_Weapon(id

    new 
weaponID read_data(2)  
     
    switch (
get_user_team(id)) 
    { 
        case 
1
        { 
            if(
Speed[id]) 
            { 
                
set_user_maxspeed(id500.0
            } 
             
            if(
Speed2[id]) 
            { 
                
set_user_maxspeed(id380.0
            } 
             
            if(
weaponID == CSW_KNIFE && get_pcvar_num(OnOff2)) 
            { 
                if(
TCuchillo[id]) 
                { 
                    
set_pev(idpev_viewmodel2VIEW_MODELT
                    
set_pev(idpev_weaponmodel2PLAYER_MODELT
                } 
                 
                if(
Destapador[id]) 
                { 
                    
set_pev(idpev_viewmodel2VIEW_Palo
                    
set_pev(idpev_weaponmodel2PLAYER_Palo
                } 
                 
                if(
Hacha[id]) 
                { 
                    
set_pev(idpev_viewmodel2VIEW_Hacha
                    
set_pev(idpev_weaponmodel2PLAYER_Hacha
                } 
                 
                if(
Machete[id]) 
                { 
                    
set_pev(idpev_viewmodel2VIEW_Machete
                    
set_pev(idpev_weaponmodel2PLAYER_Machete
                } 
                 
                if(
Motocierra[id]) 
                { 
                    
set_pev(idpev_viewmodel2VIEW_Moto
                    
set_pev(idpev_weaponmodel2PLAYER_Moto
                } 
                 
                 
            } 
        } 
        case 
2
        { 
            if(
CTCuchillo[id] && weaponID == CSW_KNIFE
            { 
                
set_pev(idpev_viewmodel2VIEW_MODELCT
                
set_pev(idpev_weaponmodel2PLAYER_MODELCT
            } 
        } 
    } 
    return 
PLUGIN_CONTINUE  



public 
client_connect(id

    if(
get_cvar_num("jb_savejb")) 
    { 
        
LoadJbs(id
    } 
    
initaliazed[id] = false
    
g_innoclip[id] = false
    
g_lastPosition[id][0] = 
    g_lastPosition
[id][1] = 
    g_lastPosition
[id][2] = 

public 
client_disconnect(id

    if(
get_cvar_num("jb_savejb")) 
    { 
    
SaveJbs(id)     
    } 
    
initaliazed[id] = false
    
g_innoclip[id] = false
    
g_lastPosition[id][0] = 
    g_lastPosition
[id][1] = 
    g_lastPosition
[id][2] = 


stock LoadJbs(id

new 
authid[64];  
get_user_name(id,authid,63
replace_all(authid,63," ","&#-$"

new 
vaultkey[64], vaultdata[64
format(vaultkey,63,"SAVEJP-%s",authid);  
if(
fvaultdata_exists(vaultkey)) 

    
nvault_get(mainvault,vaultkey,vaultdata,63);  
    if(
str_to_num(vaultdata) < get_pcvar_num(g_startjp)) 
    { 
        
g_jbpacks[id] = get_pcvar_num(g_startjp
    } 
    else 
    { 
        
g_jbpacks[id] = str_to_num(vaultdata); 
    } 

else 

    
g_jbpacks[id] = get_pcvar_num(g_startjp
}  


stock SaveJbs(id

new 
authid[64];  
get_user_name(id,authid,63
replace_all(authid,63," ","&#-$"
new 
vaultkey[64], vaultdata[64];  


format(vaultkey,63,"SAVEJP-%s",authid);  
format(vaultdata,63,"%d",g_jbpacks[id]);  
nvault_set(mainvault,vaultkey,vaultdata);  



/*public client_infochanged(id)  
{  
new newname[32],oldname[32]  
get_user_info(id, "name", newname,31)  
get_user_name(id,oldname,31)  
if(!is_user_connected(id) || is_user_bot(id)) return PLUGIN_CONTINUE; 
if(!equali(newname, oldname)) 

set_user_info(id,"name",oldname) 
client_print(id , print_console , "Isim degisikligi engellenmistir! [MGA]"); 
return PLUGIN_HANDLED; 

return PLUGIN_CONTINUE; 
}  

*/  



public fw_SetModel(entitymodel[]) 

if(!
pev_valid(entity)) 
return 
FMRES_IGNORED 

if(!equali(modelOLDWORLD_MODEL))  
    return 
FMRES_IGNORED 
     
new className[33
pev(entitypev_classnameclassName32
     
if(
equal(className"weaponbox") || equal(className"armoury_entity") || equal(className"grenade")) 

    
engfunc(EngFunc_SetModelentityWORLD_MODEL
    return 
FMRES_SUPERCEDE 

return 
FMRES_IGNORED 


public 
Fwd_EmitSound(idchannel, const sample[], Float:volumeFloat:attnflagspitch

     
    if (!
is_user_connected(id)) 
        return 
FMRES_IGNORED
     
    if(
CTCuchillo[id]) 
    { 
        if(
get_user_team(id) == 2
        { 
            if (
equal(sample[8], "kni"3)) 
            { 
                if (
equal(sample[14], "sla"3))  
                { 
                    switch (
random_num(12)) 
                    { 
                        case 
1engfunc(EngFunc_EmitSoundidchannelct_slash1volumeattnflagspitch
                            case 
2engfunc(EngFunc_EmitSoundidchannelct_slash2volumeattnflagspitch
                        } 
                     
                    return 
FMRES_SUPERCEDE
                } 
                if(
equal(sample,"weapons/knife_deploy1.wav")) 
                { 
                    
engfunc(EngFunc_EmitSoundidchannelct_deployvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                if (
equal(sample[14], "hit"3)) 
                { 
                    if (
sample[17] == 'w'
                    { 
                        
engfunc(EngFunc_EmitSoundidchannelct_wallvolumeattnflagspitch
                        return 
FMRES_SUPERCEDE
                    } 
                    else  
                    { 
                        switch (
random_num(14)) 
                        { 
                            case 
1engfunc(EngFunc_EmitSoundidchannelct_hit1volumeattnflagspitch
                                case 
2engfunc(EngFunc_EmitSoundidchannelct_hit2volumeattnflagspitch
                                case 
3engfunc(EngFunc_EmitSoundidchannelct_hit3volumeattnflagspitch
                                case 
4engfunc(EngFunc_EmitSoundidchannelct_hit4volumeattnflagspitch
                            } 
                         
                        return 
FMRES_SUPERCEDE
                    } 
                } 
                if (
equal(sample[14], "sta"3))  
                { 
                    
engfunc(EngFunc_EmitSoundidchannelct_stabvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
            } 
        }     
    } 
     
    if(
TCuchillo[id]) 
    { 
        if(
get_user_team(id) == 1
        { 
            if (
equal(sample[8], "kni"3)) 
            { 
                if (
equal(sample[14], "sla"3))  
                { 
                    switch (
random_num(12)) 
                    { 
                        case 
1engfunc(EngFunc_EmitSoundidchannelt_slash1volumeattnflagspitch
                            case 
2engfunc(EngFunc_EmitSoundidchannelt_slash2volumeattnflagspitch
                        } 
                     
                    return 
FMRES_SUPERCEDE
                } 
                if(
equal(sample,"weapons/knife_deploy1.wav")) 
                { 
                    
engfunc(EngFunc_EmitSoundidchannelt_deployvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                if (
equal(sample[14], "hit"3)) 
                { 
                    if (
sample[17] == 'w')  
                    { 
                        
engfunc(EngFunc_EmitSoundidchannelt_wallvolumeattnflagspitch
                        return 
FMRES_SUPERCEDE
                    } 
                    else  
                    { 
                        switch (
random_num(14)) 
                        { 
                            case 
1engfunc(EngFunc_EmitSoundidchannelt_hit1volumeattnflagspitch
                                case 
2engfunc(EngFunc_EmitSoundidchannelt_hit2volumeattnflagspitch
                                case 
3engfunc(EngFunc_EmitSoundidchannelt_hit3volumeattnflagspitch
                                case 
4engfunc(EngFunc_EmitSoundidchannelt_hit4volumeattnflagspitch
                            } 
                         
                        return 
FMRES_SUPERCEDE
                    } 
                } 
                if (
equal(sample[14], "sta"3)) 
                { 
                    
engfunc(EngFunc_EmitSoundidchannelt_stabvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
            } 
        } 
    } 
     
    if(
Destapador[id]) 
    { 
        if (
equal(sample[8], "kni"3)) 
        { 
            if (
equal(sample[14], "sla"3))  
            { 
                switch (
random_num(12)) 
                { 
                    case 
1engfunc(EngFunc_EmitSoundidchannelpalo_slash1volumeattnflagspitch
                        case 
2engfunc(EngFunc_EmitSoundidchannelpalo_slash2volumeattnflagspitch
                         
                } 
                 
                return 
FMRES_SUPERCEDE
            } 
            if(
equal(sample,"weapons/knife_deploy1.wav")) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelpalo_deployvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
            if (
equal(sample[14], "hit"3)) 
            { 
                if (
sample[17] == 'w')  
                { 
                    
engfunc(EngFunc_EmitSoundidchannelpalo_wallvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                else  
                { 
                    switch (
random_num(14)) 
                    { 
                        case 
1:engfunc(EngFunc_EmitSoundidchannelpalo_hit1volumeattnflagspitch
                            case 
2:engfunc(EngFunc_EmitSoundidchannelpalo_hit2volumeattnflagspitch
                            case 
3:engfunc(EngFunc_EmitSoundidchannelpalo_hit3volumeattnflagspitch
                            case 
4:engfunc(EngFunc_EmitSoundidchannelpalo_hit4volumeattnflagspitch
                        } 
                     
                    return 
FMRES_SUPERCEDE
                } 
            } 
            if (
equal(sample[14], "sta"3)) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelpalo_stabvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
        } 
    } 
     
    if(
Hacha[id]) 
    { 
         
        if (
equal(sample[8], "kni"3)) 
        { 
            if (
equal(sample[14], "sla"3)) 
            { 
                switch (
random_num(12)) 
                { 
                    case 
1engfunc(EngFunc_EmitSoundidchannelhacha_slash1volumeattnflagspitch
                        case 
2engfunc(EngFunc_EmitSoundidchannelhacha_slash2volumeattnflagspitch
                    } 
                 
                return 
FMRES_SUPERCEDE
            } 
            if(
equal(sample,"weapons/knife_deploy1.wav")) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelhacha_deployvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
            if (
equal(sample[14], "hit"3)) 
            { 
                if (
sample[17] == 'w'
                { 
                    
engfunc(EngFunc_EmitSoundidchannelhacha_wallvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                else  
                { 
                    switch (
random_num(13)) 
                    { 
                        case 
1engfunc(EngFunc_EmitSoundidchannelhacha_hit1volumeattnflagspitch
                            case 
2engfunc(EngFunc_EmitSoundidchannelhacha_hit2volumeattnflagspitch
                            case 
3engfunc(EngFunc_EmitSoundidchannelhacha_hit3volumeattnflagspitch
                        } 
                     
                    return 
FMRES_SUPERCEDE
                } 
            } 
            if (
equal(sample[14], "sta"3))  
            { 
                
engfunc(EngFunc_EmitSoundidchannelhacha_stabvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
        } 
    } 
     
    if(
Machete[id]) 
    { 
        if (
equal(sample[8], "kni"3)) 
        { 
            if (
equal(sample[14], "sla"3))  
            { 
                switch (
random_num(12)) 
                { 
                    case 
1engfunc(EngFunc_EmitSoundidchannelmachete_slash1volumeattnflagspitch
                        case 
2engfunc(EngFunc_EmitSoundidchannelmachete_slash2volumeattnflagspitch
                    } 
                return 
FMRES_SUPERCEDE
            } 
            if(
equal(sample,"weapons/knife_deploy1.wav")) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelmachete_deployvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
            if (
equal(sample[14], "hit"3)) 
            { 
                if (
sample[17] == 'w')  
                { 
                    
engfunc(EngFunc_EmitSoundidchannelmachete_wallvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                else 
// hit 
                

                    switch (
random_num(14)) 
                    { 
                        case 
1engfunc(EngFunc_EmitSoundidchannelmachete_hit1volumeattnflagspitch
                            case 
2engfunc(EngFunc_EmitSoundidchannelmachete_hit2volumeattnflagspitch
                            case 
3engfunc(EngFunc_EmitSoundidchannelmachete_hit3volumeattnflagspitch
                            case 
4engfunc(EngFunc_EmitSoundidchannelmachete_hit4volumeattnflagspitch
                        } 
                    return 
FMRES_SUPERCEDE
                } 
            } 
            if (
equal(sample[14], "sta"3))  
            { 
                
engfunc(EngFunc_EmitSoundidchannelmachete_stabvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
        } 
    } 
     
    if(
Motocierra[id]) 
    { 
         
        if (
equal(sample[8], "kni"3)) 
        { 
            if (
equal(sample[14], "sla"3)) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelmotocierra_slashvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
            if(
equal(sample,"weapons/knife_deploy1.wav")) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelmotocierra_deployvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
            if (
equal(sample[14], "hit"3)) 
            { 
                if (
sample[17] == 'w')  
                { 
                    
engfunc(EngFunc_EmitSoundidchannelmotocierra_wallvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                else  
                { 
                    switch (
random_num(12)) 
                    { 
                        case 
1engfunc(EngFunc_EmitSoundidchannelmotocierra_hit1volumeattnflagspitch
                            case 
2engfunc(EngFunc_EmitSoundidchannelmotocierra_hit2volumeattnflagspitch
                             
                    } 
                    return 
FMRES_SUPERCEDE
                } 
            } 
            if (
equal(sample[14], "sta"3))  
            { 
                
engfunc(EngFunc_EmitSoundidchannelmotocierra_stabvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
        } 
    }     
    return 
FMRES_IGNORED


/*============================================================ 
Stocks! 
============================================================*/ 
stock ChatColor(const id, const input[], any:...) 

    new 
count 1players[32
    static 
msg[191
    
vformat(msg190input3
     
    
replace_all(msg190"!g""^4"// Green Color 
    
replace_all(msg190"!y""^1"// Default Color 
    
replace_all(msg190"!team""^3"// Team Color 
     
     
    
if (idplayers[0] = id; else get_players(playerscount"ch"
    { 
    for (new 
0counti++) 
    { 
        if (
is_user_connected(players)) 
        { 
            
message_begin(MSG_ONE_UNRELIABLEg_iMsgSayText_players)   
            
write_byte(players); 
            
write_string(msg); 
            
message_end(); 
        } 
    } 

}   

stock ham_strip_weapon(id,weapon[]) 

if(!
equal(weapon,"weapon_",7)) return 0

new 
wId get_weaponid(weapon); 
if(!
wId) return 0

new 
wEnt
while((
wEnt engfunc(EngFunc_FindEntityByString,wEnt,"classname",weapon)) && pev(wEnt,pev_owner) != id) {} 
if(!
wEnt) return 0

if(
get_user_weapon(id) == wIdExecuteHamB(Ham_Weapon_RetireWeapon,wEnt); 

if(!
ExecuteHamB(Ham_RemovePlayerItem,id,wEnt)) return 0
ExecuteHamB(Ham_Item_Kill,wEnt); 

set_pev(id,pev_weapons,pev(id,pev_weapons) & ~(1<<wId)); 

return 
1
}   



public 
positionChangeTimer(id

if ( !
is_user_alive(id) ) return 

get_user_origin(idg_lastPosition[id], 0

new 
Float:velocity[3
Entvars_Get_Vector(idEV_VEC_velocityvelocity

if ( 
velocity[0]==0.0 && velocity[1]==0.0 ) { 
    
velocity[0] += 20.0 
    velocity
[2] += 100.0 
    Entvars_Set_Vector
(idEV_VEC_velocityvelocity


set_task(0.4,"positionChangeCheck",id 9911

//---------------------------------------------------------------------------------------------- 
public positionChangeCheck(taskid

new 
id taskid 9911
new 
origin[3

if (!
is_user_alive(id) ) return 

get_user_origin(idorigin0
if ( 
g_lastPosition[id][0] == origin[0] && g_lastPosition[id][1] == origin[1] && g_lastPosition[id][2] == origin[2] && is_user_alive(id) ) { 
    
user_kill(id
    
client_print(id,print_center,"Duvarda kaldigin icin ezildin!"

remove_task(taskid
}   

public 
normalize_light(Taskid

set_lights("#OFF"


stock Entvars_Get_Vector(iIndexiVariableFloat:vRetVector[3]) 
return 
entity_get_vector(iIndexiVariablevRetVector

stock Entvars_Set_Vector(iIndexiVariableFloat:vNewVector[3]) 
    return 
entity_set_vector(iIndexiVariablevNewVector


stock fvaultdata_exists(const key[]) 

if(
nvault_get(mainvault,key) != -1

return 
1

else 

return 
0;     

return -
1



public 
native_jb_get_user_packs(id

return 
g_jbpacks[id]; 


public 
native_jb_set_user_packs(idammount

new 
id get_param(1); 
new 
ammount get_param(2); 
g_jbpacks[id] = ammount 
return 1

[/i][/i][/i][/i][/i]


Cevap: Jailbreak /tl verme - akcaliberkk - 16-03-13

PHP Code:
/* 

*      Plugin: JailBreak Shop 
*      Autor: MaNuCs 
*   
*      Credits: rubee 
*                Gladius 
*         capostrike93 
*         apu 
*/ 

#include <amxmodx> 
#include <amxmisc> 
#include <hamsandwich> 
#include <cstrike> 
#include <fakemeta> 
#include <fun> 
#include <nvault> 
#include <engine> 

#define ADMIN_ACCESS ADMIN_CVAR 
   


#define is_valid_player(%1) (1 <= %1 <= 32) 

/*============================================================ 
Variables 
============================================================*/ 

new      
OnOff,  
OnOff2,  
precio1,  
precio2,  
precio3
precio4,  
precio5,  
precio6,  
precio7,  
precioC1,  
precioC2,  
precioC3
precioC4
CTDefaultDano,  
TDefaultDano,  
PaloDano,  
HachaDano,  
MacheteDano,  
MotocierraDano
hTDefaultDano,  
hCTDefaultDano,  
hPaloDano,  
hHachaDano,  
hMacheteDano
Vida
Armor
glock1
glock2
help
g_killjp,  
g_killhsjp,  
g_startjp
g_maxjp
g_iMsgSayText
syncObj
Ronda[33], 
Speed[33], 
Speed2[33], 
TCuchillo[33], 
CTCuchillo[33], 
Destapador[33], 
Hacha[33], 
Machete[33], 
Motocierra[33], 
g_jbpacks[33], 
quitar[33], 
regalar[33], 
gidPlayer[33], 
mainvault 


/*============================================================ 
Weapon Model's 
============================================================*/ 


new VIEW_MODELT[]        = "models/[Shop]JailBreak/Punos/Punos.mdl"  
new PLAYER_MODELT[]     = "models/[Shop]JailBreak/Punos/Punos2.mdl"  

new VIEW_MODELCT[]        = "models/[Shop]JailBreak/Electro/ozanjop.mdl"  
new PLAYER_MODELCT[]       = "models/[Shop]JailBreak/Electro/ozanjop2.mdl"  

new VIEW_Hacha[]        = "models/[Shop]JailBreak/Hacha/Hacha.mdl"  
new PLAYER_Hacha[]       = "models/[Shop]JailBreak/Hacha/Hacha2.mdl"  

new VIEW_Machete[]        = "models/[Shop]JailBreak/Machete/Machete.mdl"  
new PLAYER_Machete[]        = "models/[Shop]JailBreak/Machete/Machete2.mdl" 

new VIEW_Palo[]        = "models/[Shop]JailBreak/Palo/Palo.mdl"  
new PLAYER_Palo[]        = "models/[Shop]JailBreak/Palo/Palo2.mdl"  

new VIEW_Moto[]        = "models/[Shop]JailBreak/Moto/Moto.mdl"  
new PLAYER_Moto[]        = "models/[Shop]JailBreak/Moto/Moto2.mdl"  

new WORLD_MODEL[]        = "models/w_knife.mdl" 
new OLDWORLD_MODEL[]        = "models/w_knife.mdl" 

/*============================================================ 
Shop Sounds! 
============================================================*/ 
new const Si[]         = { "[Shop]JailBreak/Yes.wav" 
new const 
No[]         = { "[Shop]JailBreak/No.wav" 

/*============================================================ 
Weapon Sound's 
============================================================*/ 

new const palo_deploy[]         = { "weapons/knife_deploy1.wav" 
new const 
palo_slash1[]         = { "weapons/knife_slash1.wav" 
new const 
palo_slash2[]         = { "weapons/knife_slash2.wav" 
new const 
palo_wall[]         = { "[Shop]JailBreak/Palo/PHitWall.wav" }  
new const 
palo_hit1[]         = { "[Shop]JailBreak/Palo/PHit1.wav" }  
new const 
palo_hit2[]         = { "[Shop]JailBreak/Palo/PHit2.wav" }  
new const 
palo_hit3[]         = { "[Shop]JailBreak/Palo/PHit3.wav" }  
new const 
palo_hit4[]         = { "[Shop]JailBreak/Palo/PHit4.wav" }  
new const 
palo_stab[]         = { "[Shop]JailBreak/Palo/PStab.wav" 

new const 
hacha_deploy[]     = { "weapons/knife_deploy1.wav" 
new const 
hacha_slash1[]     = { "[Shop]JailBreak/Hacha/HSlash1.wav" 
new const 
hacha_slash2[]     = { "[Shop]JailBreak/Hacha/HSlash2.wav" 
new const 
hacha_wall[]         = { "[Shop]JailBreak/Hacha/HHitWall.wav" 
new const 
hacha_hit1[]         = { "[Shop]JailBreak/Hacha/HHit1.wav" 
new const 
hacha_hit2[]         = { "[Shop]JailBreak/Hacha/HHit2.wav" 
new const 
hacha_hit3[]         = { "[Shop]JailBreak/Hacha/HHit3.wav" 
new const 
hacha_stab[]         = { "[Shop]JailBreak/Hacha/HHit4.wav" 

new const 
machete_deploy[]     = { "[Shop]JailBreak/Machete/MConvoca.wav" 
new const 
machete_slash1[]     = { "[Shop]JailBreak/Machete/MSlash1.wav" 
new const 
machete_slash2[]     = { "[Shop]JailBreak/Machete/MSlash2.wav" 
new const 
machete_wall[]     = { "[Shop]JailBreak/Machete/MHitWall.wav" 
new const 
machete_hit1[]     = { "[Shop]JailBreak/Machete/MHit1.wav" 
new const 
machete_hit2[]     = { "[Shop]JailBreak/Machete/MHit2.wav" 
new const 
machete_hit3[]     = { "[Shop]JailBreak/Machete/MHit3.wav" 
new const 
machete_hit4[]     = { "[Shop]JailBreak/Machete/MHit4.wav" 
new const 
machete_stab[]     = { "[Shop]JailBreak/Machete/MStab.wav" 

new const 
motocierra_deploy[]     = { "[Shop]JailBreak/Moto/MTConvoca.wav", } 
new const 
motocierra_slash[]     = { "[Shop]JailBreak/Moto/MTSlash.wav", } 
new const 
motocierra_wall[]     = { "[Shop]JailBreak/Moto/MTHitWall.wav" 
new const 
motocierra_hit1[]     = { "[Shop]JailBreak/Moto/MTHit1.wav",  } 
new const 
motocierra_hit2[]     = { "[Shop]JailBreak/Moto/MTHit2.wav",  } 
new const 
motocierra_stab[]     = { "[Shop]JailBreak/Moto/MTStab.wav"  

new const 
t_deploy[]         = { "[Shop]JailBreak/T/TConvoca.wav", } 
new const 
t_slash1[]         = { "[Shop]JailBreak/T/Slash1.wav", } 
new const 
t_slash2[]         = { "[Shop]JailBreak/T/Slash2.wav", } 
new const 
t_wall[]         = { "[Shop]JailBreak/T/THitWall.wav" 
new const 
t_hit1[]         = { "[Shop]JailBreak/T/THit1.wav",  } 
new const 
t_hit2[]         = { "[Shop]JailBreak/T/THit2.wav",  } 
new const 
t_hit3[]         = { "[Shop]JailBreak/T/THit3.wav",  } 
new const 
t_hit4[]         = { "[Shop]JailBreak/T/THit4.wav",  } 
new const 
t_stab[]         = { "[Shop]JailBreak/T/TStab.wav"  
new 
bool:initaliazed[33]; 
new const 
ct_deploy[]         = { "[Shop]JailBreak/CT/CTConvoca.wav", } 
new const 
ct_slash1[]         = { "[Shop]JailBreak/CT/Slash1.wav", } 
new const 
ct_slash2[]         = { "[Shop]JailBreak/CT/Slash2.wav", } 
new const 
ct_wall[]         = { "[Shop]JailBreak/CT/CTHitWall.wav" 
new const 
ct_hit1[]         = { "[Shop]JailBreak/CT/CTHit1.wav",  } 
new const 
ct_hit2[]         = { "[Shop]JailBreak/CT/CTHit2.wav",  } 
new const 
ct_hit3[]         = { "[Shop]JailBreak/CT/CTHit3.wav",  } 
new const 
ct_hit4[]         = { "[Shop]JailBreak/CT/CTHit4.wav",  } 
new const 
ct_stab[]         = { "[Shop]JailBreak/CT/CTStab.wav"  
new 
bool:g_innoclip[33]; 
new 
g_lastPosition[33][3]; 

/*============================================================ 
Config 
============================================================*/ 

public plugin_natives() 
{     
register_native("jb_get_user_packs","native_jb_get_user_packs"1
register_native("jb_set_user_packs","native_jb_set_user_packs"

public 
plugin_init()  

         
    
register_plugin("[JB] Shop""3.1""byetovice"
     
    
mainvault nvault_open("ShopJbs"
     
     
    
register_clcmd("say /shop""Tienda"
    
register_clcmd("say !shop""Tienda"
    
register_clcmd("say_team /shop""Tienda"
    
register_clcmd("say_team !shop""Tienda"
     
    
register_clcmd("say /ej",  "tlveral"ADMIN_ACCESS
    
register_clcmd("say !ej",     "tlveral"ADMIN_ACCESS
    
register_clcmd("say_team /ej",     "tlveral"ADMIN_ACCESS
    
register_clcmd("say_team !ej",     "tlveral"ADMIN_ACCESS

    
register_clcmd("JbPacks",     "player"
     
    
register_cvar("jb_savejb","1"
     
    
register_cvar("byetovice_plugin""1.2"FCVAR_SPONLY|FCVAR_SERVER
    
RegisterHam(Ham_Spawn,         "player""Fwd_PlayerSpawn_Post",    1
    
RegisterHam(Ham_TakeDamage,     "player""FwdTakeDamage",         0
    
RegisterHam(Ham_Killed,        "player""fw_player_killed"
     
    
register_event("CurWeapon",     "Event_Change_Weapon""be""1=1"
    
register_clcmd("GetVaultData""fw_GetVaultData"
    
register_forward(FM_SetModel,     "fw_SetModel"
    
register_forward(FM_EmitSound,    "Fwd_EmitSound"
     
     
    
// 3.1 Native 
     
    /*============================================================ 
    Cvar's  
    ============================================================*/ 
    
g_killjp     register_cvar("jb_killJP",         "3");  
    
g_killhsjp     register_cvar("jb_bonushsJP",     "1"); 
    
g_startjp     register_cvar("jb_startJP",        "7");  
    
g_maxjp     register_cvar("jb_maxgiveJP",        "500");  
         
    
OnOff         register_cvar("jb_Shop",         "1")//1(ON) 0(OFF)  
    
OnOff2         register_cvar("jb_ShopKnifes",    "1")//1(ON) 0(OFF)  
    
help         register_cvar("jb_help",         "0")//1(ON) 0(OFF) 
     
    
precio1     register_cvar("jb_pFlash",         "5"
    
precio2        register_cvar("jb_pHe",         "60"
    
precio3        register_cvar("jb_pHEFL",         "75"
    
precio4        register_cvar("jb_pWalk",         "15"
    
precio5        register_cvar("jb_pFast",         "20"
    
precio6        register_cvar("jb_pDrugs",         "25"
    
precio7        register_cvar("jb_pGlock",         "40"
     
    
precioC1    register_cvar("jb_pKnife1",         "-1"
    
precioC2     register_cvar("jb_pKnife2",         "10"
    
precioC3     register_cvar("jb_pKnife3",         "20"
    
precioC4     register_cvar("jb_pKnife4",         "40"
     
    
TDefaultDano     register_cvar("jb_dKnifeT",         "20"
    
CTDefaultDano     register_cvar("jb_dKnifeCT",         "50"
    
PaloDano     register_cvar("jb_dKnife1",         "30"
    
HachaDano     register_cvar("jb_dKnife2",         "60"
    
MacheteDano     register_cvar("jb_dKnife3",         "80"
    
MotocierraDano     register_cvar("jb_dKnife4",         "200"
     
    
hTDefaultDano     register_cvar("jb_dHsKnifeT",     "30"
    
hCTDefaultDano     register_cvar("jb_dHsKnifeCT",    "80"
    
hPaloDano     register_cvar("jb_dhsKnife1",     "45"
    
hHachaDano     register_cvar("jb_dhsKnife2",     "75"
    
hMacheteDano     register_cvar("jb_dhsKnife3",     "95"
     
    
Vida         register_cvar("jb_drLife",         "200"
    
Armor         register_cvar("jb_drArmor",         "200"
     
    
glock1         register_cvar("jb_gClip",         "20"
    
glock2         register_cvar("jb_gAmmo",         "0"

    
g_iMsgSayText     get_user_msgid("SayText")  
    
syncObj     CreateHudSyncObj() 
     
     
    
/*============================================================ 
    Multi Lengual! 
    ============================================================*/ 
    
register_dictionary("JBShop.txt"
     


/*============================================================ 
Precaches  
============================================================*/ 
public plugin_precache()  

    
precache_sound(Si
    
precache_sound(No
     
    
precache_sound(t_deploy
    
precache_sound(t_slash1
    
precache_sound(t_slash2
    
precache_sound(t_stab
    
precache_sound(t_wall
    
precache_sound(t_hit1
    
precache_sound(t_hit2
    
precache_sound(t_hit3
    
precache_sound(t_hit4
     
    
precache_sound(ct_deploy
    
precache_sound(ct_slash1
    
precache_sound(ct_slash2
    
precache_sound(ct_stab
    
precache_sound(ct_wall
    
precache_sound(ct_hit1
    
precache_sound(ct_hit2
    
precache_sound(ct_hit3
    
precache_sound(ct_hit4
     
    
precache_sound(palo_deploy
    
precache_sound(palo_slash1
    
precache_sound(palo_slash2
    
precache_sound(palo_stab
    
precache_sound(palo_wall
    
precache_sound(palo_hit1
    
precache_sound(palo_hit2
    
precache_sound(palo_hit3
    
precache_sound(palo_hit4
     
    
precache_sound(machete_deploy
    
precache_sound(machete_slash1
    
precache_sound(machete_slash2
    
precache_sound(machete_stab
    
precache_sound(machete_wall
    
precache_sound(machete_hit1
    
precache_sound(machete_hit2
    
precache_sound(machete_hit3
    
precache_sound(machete_hit4
     
    
precache_sound(hacha_deploy
    
precache_sound(hacha_slash1
    
precache_sound(hacha_slash2
    
precache_sound(hacha_stab
    
precache_sound(hacha_wall
    
precache_sound(hacha_hit1
    
precache_sound(hacha_hit2
    
precache_sound(hacha_hit3
     
    
precache_sound(motocierra_deploy
    
precache_sound(motocierra_slash
    
precache_sound(motocierra_stab
    
precache_sound(motocierra_wall
    
precache_sound(motocierra_hit1
    
precache_sound(motocierra_hit2
     
     
    
precache_model(VIEW_MODELT)      
    
precache_model(PLAYER_MODELT
    
precache_model(VIEW_MODELCT)      
    
precache_model(PLAYER_MODELCT
    
precache_model(VIEW_Palo)      
    
precache_model(PLAYER_Palo)  
    
precache_model(VIEW_Hacha)      
    
precache_model(PLAYER_Hacha)     
    
precache_model(VIEW_Machete)      
    
precache_model(PLAYER_Machete)     
    
precache_model(VIEW_Moto)      
    
precache_model(PLAYER_Moto)         
    
precache_model(WORLD_MODEL
     
    return 
PLUGIN_CONTINUE 


/*============================================================ 
KNIFE SHOP 
============================================================*/ 
public Tienda1(id

    if(
get_pcvar_num(OnOff2)) 
    { 
        if (
get_user_team(id) == 
        { 
            static 
Item[64
             
            
formatex(Itemcharsmax(Item),"\y%L"LANG_PLAYER"SHOP")  
            new 
Menu menu_create(Item"CuchilleroHandler"
             
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE1"get_pcvar_num(precioC1)) 
            
menu_additem(MenuItem"1"
             
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE2"get_pcvar_num(precioC2)) 
            
menu_additem(MenuItem"2"
             
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE3"get_pcvar_num(precioC3)) 
            
menu_additem(MenuItem"3"
             
            
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"KNIFE4"get_pcvar_num(precioC4)) 
            
menu_additem(MenuItem"4"
             
            
menu_setprop(MenuMPROP_EXITMEXIT_ALL
            
menu_display(idMenu
        } 
    } 
    return 
PLUGIN_HANDLED 


public 
CuchilleroHandler(idmenuitem

    if( 
item == MENU_EXIT 
    { 
        
menu_destroy(menu); 
        return 
PLUGIN_HANDLED
    } 
    new 
data[6], iName[64]; 
    new 
accesscallback
    
menu_item_getinfo(menuitemaccessdata,5iName63callback); 
     
    new 
vivo     is_user_alive(id
    new 
Obtener1     get_pcvar_num(precioC1
    new 
Obtener2     get_pcvar_num(precioC2
    new 
Obtener3     get_pcvar_num(precioC3
    new 
Obtener4     get_pcvar_num(precioC4)     
     
    new 
key str_to_num(data); 
     
    switch(
key
    { 
        case 
1
        { 
            if (
g_jbpacks[id]>= Obtener1 && vivo
            { 
                
g_jbpacks[id] -= Obtener1 
                CTCuchillo
[id]     = 
                TCuchillo
[id]     = 
                Destapador
[id]     = 
                Hacha
[id]     = 
                Machete
[id]     = 
                Motocierra
[id]     = 
                 
                 
                ham_strip_weapon
(id"weapon_knife"
                
give_item(id"weapon_knife"
                 
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE1"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
         
        case 
2
        { 
            if (
g_jbpacks[id] >= Obtener2 && vivo
            { 
                 
                
g_jbpacks[id] -= Obtener2 
                CTCuchillo
[id]     = 
                TCuchillo
[id]     = 
                Destapador
[id]     = 
                Hacha
[id]     = 
                Machete
[id]     = 
                Motocierra
[id]     = 
                 
                ham_strip_weapon
(id"weapon_knife"
                
give_item(id"weapon_knife"
                 
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE2"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
         
        case 
3
        { 
            if (
g_jbpacks[id] >= Obtener3 && vivo
            { 
                 
                
g_jbpacks[id] -= Obtener3 
                CTCuchillo
[id]     = 
                TCuchillo
[id]     = 
                Destapador
[id]     = 
                Hacha
[id]     = 
                Machete
[id]     = 
                Motocierra
[id]     = 
                 
                ham_strip_weapon
(id"weapon_knife"
                
give_item(id"weapon_knife"
                 
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE3"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
         
        case 
4
        { 
            if (
g_jbpacks[id] >= Obtener4 && vivo
            { 
                 
                
g_jbpacks[id] -= Obtener4 
                CTCuchillo
[id]     = 
                TCuchillo
[id]     = 
                Destapador
[id]    = 
                Hacha
[id]     = 
                Machete
[id]     = 
                Motocierra
[id]     = 
                 
                 
                ham_strip_weapon
(id"weapon_knife"
                
give_item(id"weapon_knife"
                 
                
ChatColor(id"%L"LANG_PLAYER"BUY_KNIFE4"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
    } 
    
menu_destroy(menu); 
    return 
PLUGIN_HANDLED


/*============================================================ 
ITEM'S MENU 
============================================================*/ 
public Tienda(id

    if(
get_pcvar_num(OnOff)) 
    { 
        if(
get_pcvar_num(OnOff) && Ronda[id]) 
        { 
            if(
is_user_alive(id)) 
            { 
                if (
cs_get_user_team(id) == CS_TEAM_T 
                { 
                    new 
contador=0
                    new 
players[32], numtempid
                     
                    
get_players(playersnum
                     
                    for (new 
i=0i<numi++) 
                    { 
                        
tempid players[i
                         
                        if (
get_user_team(tempid)==&& is_user_alive(tempid)) 
                        { 
                            
contador++; 
                        } 
                    } 
                    if ( 
contador == 
                    { 
                        
ChatColor(id"%L"LANG_PLAYER"LAST"
                    } 
                    else if ( 
contador >= 
                    { 
                        static 
Item[64
                         
                        
formatex(Itemcharsmax(Item),"\y%L"LANG_PLAYER"SHOP"
                        new 
Menu menu_create(Item"TiendaHandler"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"FLASH"get_pcvar_num(precio1)) 
                        
menu_additem(MenuItem"1"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"HE"get_pcvar_num(precio2)) 
                        
menu_additem(MenuItem"2"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"HEFLASH"get_pcvar_num(precio3)) 
                        
menu_additem(MenuItem"3"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"FOOTSTEPS"get_pcvar_num(precio4)) 
                        
menu_additem(MenuItem"4"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"SPEED"get_pcvar_num(precio5)) 
                        
menu_additem(MenuItem"5"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"DRUGS"get_pcvar_num(precio6)) 
                        
menu_additem(MenuItem"6"
                         
                        
formatex(Itemcharsmax(Item),"\w%L \r%d$",LANG_PLAYER"GLOCK"get_pcvar_num(precio7)) 
                        
menu_additem(MenuItem"7"
                         
                        
menu_setprop(MenuMPROP_EXITMEXIT_ALL
                        
menu_display(idMenu
                    } 
                } 
                else 
                { 
                    
ChatColor(id"%L"LANG_PLAYER"ONLY"
                } 
            } 
            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"DEAD"
            } 
        } 
        else 
        { 
            
ChatColor(id"%L"LANG_PLAYER"ONE_TIME"
        } 
    } 
    else 
    { 
        
ChatColor(id"%L",  LANG_PLAYER"SHOP_OFF"
    } 
    return 
PLUGIN_HANDLED 



public 
TiendaHandler(idmenuitem

    if( 
item == MENU_EXIT 
    { 
        
menu_destroy(menu); 
        return 
PLUGIN_HANDLED
    } 
    new 
data[6], iName[64]; 
    new 
accesscallback
    
menu_item_getinfo(menuitemaccessdata,5iName63callback); 
    new 
vivo         is_user_alive(id
    new 
gmsg_SetFOV     get_user_msgid("SetFOV")  
    new 
Obtener1         get_pcvar_num(precio1
    new 
Obtener2         get_pcvar_num(precio2
    new 
Obtener3         get_pcvar_num(precio3
    new 
Obtener4         get_pcvar_num(precio4
    new 
Obtener5         get_pcvar_num(precio5
    new 
Obtener6         get_pcvar_num(precio6
    new 
Obtener7        get_pcvar_num(precio7
    new 
vida1        get_user_health(id
    new 
vida2         get_pcvar_num(Vida
    new 
armor1        get_user_armor(id
    new 
armor2         get_pcvar_num(Armor
     
    new 
key str_to_num(data); 
    switch(
key
    { 
        case 
1
        { 
            if (
g_jbpacks[id] >= Obtener1 && vivo
            { 
                
g_jbpacks[id] -= Obtener1 
                ChatColor
(id"%L"LANG_PLAYER"BUY_FLASH"
                
give_item(id"weapon_flashbang"
                
give_item(id"weapon_flashbang"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
2
        { 
             
            if (
g_jbpacks[id] >= Obtener2 && vivo
            { 
                
g_jbpacks[id] -= Obtener2 
                ChatColor
(id"%L"LANG_PLAYER"BUY_HE"
                
give_item(id"weapon_hegrenade"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
3
        { 
             
            if (
g_jbpacks[id] >= Obtener3 && vivo
            { 
                
g_jbpacks[id] -= Obtener3 
                ChatColor
(id"%L"LANG_PLAYER"BUY_HEFLASH"
                
give_item(id"weapon_hegrenade"
                
give_item(id"weapon_flashbang"
                
give_item(id"weapon_flashbang"
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
4
        { 
             
            if (
g_jbpacks[id] >= Obtener4 && vivo
            { 
                
g_jbpacks[id] -= Obtener4 
                ChatColor
(id"%L"LANG_PLAYER"BUY_FOOTSTEPS"
                
set_user_footsteps(id1
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
5
        {         
            if (
g_jbpacks[id] >= Obtener5 && vivo
            { 
                
g_jbpacks[id] -= Obtener5 
                ChatColor
(id"%L"LANG_PLAYER"BUY_SPEED"
                
set_user_maxspeed(id500.0
                
Speed[id] = 
                emit_sound
(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY")   
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
6
        {     
            if (
g_jbpacks[id] >= Obtener6 && vivo
            { 
                
g_jbpacks[id] -= Obtener6 
                ChatColor
(id"%L"LANG_PLAYER"BUY_DRUGS"
                
set_user_armor(idarmor1 armor2
                
set_user_health(idvida1 vida2
                
set_user_maxspeed(id380.0
                
Speed2[id] = 
                message_begin
MSG_ONEgmsg_SetFOV, { 00}, id 
                
write_byte180 
                
message_end( )   
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
        case 
7
        { 
            if (
g_jbpacks[id] >= Obtener7 && vivo
            { 
                
g_jbpacks[id] -= Obtener7     
                ChatColor
(id"%L"LANG_PLAYER"BUY_GLOCK"
                
cs_set_weapon_ammogive_itemid"weapon_glock18" ), get_pcvar_num(glock1)) 
                
cs_set_user_bpammo(idCSW_GLOCK18get_pcvar_num(glock2)) 
                
emit_sound(idCHAN_AUTOSiVOL_NORMATTN_NORM 0PITCH_NORM)  
                
Ronda[id] = 
            

            else 
            { 
                
ChatColor(id"%L"LANG_PLAYER"MONEY"
                
emit_sound(idCHAN_AUTONoVOL_NORMATTN_NORM 0PITCH_NORM)  
            } 
        } 
    } 
    
menu_destroy(menu); 
    return 
PLUGIN_HANDLED


public 
client_putinserver(id)  

    
LoadJbs(id
    
set_task(1.0"JailbreakPacks"id__"b"


public 
JailbreakPacks(id

    
set_hudmessage(142239390.500.9006.02.5
    
ShowSyncHudMsg(idsyncObj,"Euro : %i"g_jbpacks[id]) 


public 
duel_menu(id
{     
    if (!
is_user_admin(id)) 
    { 
        
ChatColor(id"%L"LANG_PLAYER"CANT"
        return 
PLUGIN_HANDLED 
    

     
    static 
opcion[64
     
    
formatex(opcioncharsmax(opcion),"\y%L"LANG_PLAYER"JBPACKS"
    new 
iMenu menu_create(opcion"menu"
     
    
formatex(opcioncharsmax(opcion),"\w%L"LANG_PLAYER"GIVE_JBPACKS"
    
menu_additem(iMenuopcion"1")     
     
    
formatex(opcioncharsmax(opcion),"\w%L"LANG_PLAYER"TAKE_JBPACKS"
    
menu_additem(iMenuopcion"2")     
     
    
menu_setprop(iMenuMPROP_EXITMEXIT_ALL
    
menu_display(idiMenu0
     
    return 
PLUGIN_HANDLED 


public 
tlveral(id
{  
 if (!
access(id,ADMIN_ACCESS)) 
 { 
 
ChatColor(id"%L"LANG_PLAYER"CANT"
 return 
PLUGIN_HANDLED 
 

  
 static 
opcion[64
  
 
formatex(opcioncharsmax(opcion),"\y[ ~ Explose ~ ]"LANG_PLAYER
 new 
iMenu menu_create(opcion"menu"
  
 
formatex(opcioncharsmax(opcion),"\wEuro Jep"LANG_PLAYER
 
menu_additem(iMenuopcion"1")  
  
 
formatex(opcioncharsmax(opcion),"\wEuro Merr"LANG_PLAYER
 
menu_additem(iMenuopcion"2")  
  
 
menu_setprop(iMenuMPROP_EXITMEXIT_ALL
 
menu_display(idiMenu0
  
 return 
PLUGIN_HANDLED 




public 
menu(idmenuitem

     
    if (
item == MENU_EXIT
    { 
        
menu_destroy(menu
        return 
PLUGIN_HANDLED 
    

     
    new 
Data[6], Name[64
    new 
AccessCallback 
     
    menu_item_getinfo
(menuitemAccessData,5Name63Callback
     
    new 
Key str_to_num(Data
     
    switch (
Key
    { 
        case 
1
        {     
            
regalar[id] = 
            quitar
[id] = 0     
            escojer
(id
        } 
        case 
2:  
        {     
            
quitar[id] = 
            regalar
[id] = 
            escojer
(id
        } 
    } 
     
    
menu_destroy(menu)     
    return 
PLUGIN_HANDLED 



public 
escojer(id

    static 
opcion[64
     
    
formatex(opcioncharsmax(opcion),"\y%L"LANG_PLAYER"CHOOSE"
    new 
iMenu menu_create(opcion"choose"
     
    new 
players[32], pnumtempid 
    
new szName[32], szTempid[10
     
    
get_players(playerspnum"a"
     
    for( new 
ii<pnumi++ ) 
    { 
        
tempid players 
         
        get_user_name
(tempidszName31
        
num_to_str(tempidszTempid9
         
        
formatex(opcioncharsmax(opcion), "\w%s \rEuro[%d]"szNameg_jbpacks[tempid]) 
        
menu_additem(iMenuopcionszTempid0
    } 
     
    
menu_display(idiMenu
    return 
PLUGIN_HANDLED 


public 
choose(idmenuitem

    if( 
item == MENU_EXIT 
    { 
        
menu_destroy(menu
        return 
PLUGIN_HANDLED 
    

     
    new 
Data[6], Name[64
    new 
AccessCallback 
    menu_item_getinfo
(menuitemAccessData,5Name63Callback
     
    new 
tempid str_to_num(Data
     
    
gidPlayer[id] = tempid 
    client_cmd
(id"messagemode JbPacks"
     
    
menu_destroy(menu
    return 
PLUGIN_HANDLED 


public 
playerhandle(id

    
// on death 
    
g_jbpacks[id] += 4


public 
player(id

    new 
say[300
    
read_args(saycharsmax(say)) 
     
    
remove_quotes(say
     
    if(!
is_str_num(say) || equal(say"")) 
        return 
PLUGIN_HANDLED 
     
    jbpacks
(idsay)     
     
    return 
PLUGIN_HANDLED  


public 
fw_GetVaultData(id

    
//initaliazed[id] = get_vaultdata(read_data(1)); 
    
initaliazed[id] = true



jbpacks(idsay[]) { 
    new 
amount str_to_num(say
    new 
victim gidPlayer[id
     
    new 
vname[32
    new 
adminname[32
     
    if(
victim 0
    { 
        
get_user_name(victimvname31
        
get_user_name(idadminname31
         
        if(
regalar[id]) 
        { 
            if(
amount get_pcvar_num(g_maxjp)) 
            { 
                
g_jbpacks[victim] = get_pcvar_num(g_maxjp
            } 
            else 
            { 
                
g_jbpacks[victim] = g_jbpacks[victim] + amount 
            

            
ChatColor(0"[%s] Admin, %s tek lojtari %d dha!",adminnamevnameamount
        } 
        if(
quitar[id]) 
        { 
            if(
amount g_jbpacks[victim]) 
            { 
                
g_jbpacks[victim] = 
                ChatColor
(0"[%s] Admin, %s lojtarit i mur te gjitha Euro!",adminnamevname
            } 
            else  
            { 
                
g_jbpacks[victim] = g_jbpacks[victim] - amount 
                ChatColor
(0"[%s] Admin, %s lojtarit  %d Euro i morri!",adminnamevnameamount
            } 
             
        }         
    } 
     
    return 
PLUGIN_HANDLED 
}   


public 
Fwd_PlayerSpawn_Post(id

    if (
is_user_alive(id)) 
    { 
        if(
get_user_team(id) == 1strip_user_weapons(id); give_item(id"weapon_knife")     
         
        
set_user_footsteps(id0
        
Speed[id]     = 
        Speed2
[id]     = 
        Ronda
[id]     = 
        CTCuchillo
[id]     = 
        TCuchillo
[id]     = 
        Destapador
[id]     = 
        Hacha
[id]     = 
        Machete
[id]     = 
        Motocierra
[id]     = 
        Tienda1
(id
        if(
g_innoclip[id]) 
        { 
            
set_user_noclip(id0
            
g_innoclip[id] = false
            
g_lastPosition[id][0] = 
            g_lastPosition
[id][1] = 
            g_lastPosition
[id][2] = 
             
            set_user_rendering
(idkRenderFxNone000kRenderTransAlpha255
        } 
        if(
get_pcvar_num(help))    ChatColor(id"%L"LANG_PLAYER"HELP"
    } 


public 
FwdTakeDamage(victiminflictorattackerFloat:damagedamage_bits

     
    if (
is_valid_player(attacker) && get_user_weapon(attacker) == CSW_KNIFE)     
    { 
        switch(
get_user_team(attacker)) 
        { 
            case 
1
            { 
                if(
TCuchillo[attacker]) 
                {     
                     
                    
SetHamParamFloat(4get_pcvar_float(TDefaultDano)) 
                     
                    if(
get_pdata_int(victim75) == HIT_HEAD
                    { 
                        
SetHamParamFloat(4get_pcvar_float(hTDefaultDano)) 
                    } 
                } 
                 
                if(
Destapador[attacker]) 
                {  
                    
SetHamParamFloat(4get_pcvar_float(PaloDano)) 
                     
                    if(
get_pdata_int(victim75) == HIT_HEAD
                    { 
                        
SetHamParamFloat(4get_pcvar_float(hPaloDano)) 
                    } 
                } 
                 
                if(
Hacha[attacker]) 
                {         
                    
SetHamParamFloat(4get_pcvar_float(HachaDano)) 
                     
                    if(
get_pdata_int(victim75) == HIT_HEAD
                    { 
                        
SetHamParamFloat(4get_pcvar_float(hHachaDano)) 
                    } 
                } 
                 
                if(
Machete[attacker]) 
                {         
                    
SetHamParamFloat(4get_pcvar_float(MacheteDano)) 
                     
                    if(
get_pdata_int(victim75) == HIT_HEAD
                    { 
                        
SetHamParamFloat(4get_pcvar_float(hMacheteDano)) 
                    } 
                } 
                 
                if(
Motocierra[attacker]) 
                {     
                    
SetHamParamFloat(4get_pcvar_float(MotocierraDano)) 
                } 
            } 
            case 
2
            { 
                if(
CTCuchillo[attacker]) 
                {     
                    
SetHamParamFloat(4get_pcvar_float(CTDefaultDano)) 
                     
                    if(
get_pdata_int(victim75) == HIT_HEAD
                    { 
                        
SetHamParamFloat(4get_pcvar_float(hCTDefaultDano)) 
                    } 
                } 
            } 
        } 
    } 
    if(
is_user_connected(attacker) && initaliazed[attacker] && get_user_weapon(attacker) != CSW_KNIFE
    { 
        
SetHamParamFloat(4damage random_float(1.6,1.8)); 
    } 
    return 
HAM_HANDLED 
}   

public 
fw_player_killed(victimattackershouldgib

    if(
get_user_team(attacker) == 1
    { 
        
g_jbpacks[attacker] += get_pcvar_num(g_killjp)  
         
        if(
get_pdata_int(victim75) == HIT_HEAD
        { 
            
g_jbpacks[attacker] += get_pcvar_num(g_killhsjp
        } 
    } 



public 
Event_Change_Weapon(id

    new 
weaponID read_data(2)  
     
    switch (
get_user_team(id)) 
    { 
        case 
1
        { 
            if(
Speed[id]) 
            { 
                
set_user_maxspeed(id500.0
            } 
             
            if(
Speed2[id]) 
            { 
                
set_user_maxspeed(id380.0
            } 
             
            if(
weaponID == CSW_KNIFE && get_pcvar_num(OnOff2)) 
            { 
                if(
TCuchillo[id]) 
                { 
                    
set_pev(idpev_viewmodel2VIEW_MODELT
                    
set_pev(idpev_weaponmodel2PLAYER_MODELT
                } 
                 
                if(
Destapador[id]) 
                { 
                    
set_pev(idpev_viewmodel2VIEW_Palo
                    
set_pev(idpev_weaponmodel2PLAYER_Palo
                } 
                 
                if(
Hacha[id]) 
                { 
                    
set_pev(idpev_viewmodel2VIEW_Hacha
                    
set_pev(idpev_weaponmodel2PLAYER_Hacha
                } 
                 
                if(
Machete[id]) 
                { 
                    
set_pev(idpev_viewmodel2VIEW_Machete
                    
set_pev(idpev_weaponmodel2PLAYER_Machete
                } 
                 
                if(
Motocierra[id]) 
                { 
                    
set_pev(idpev_viewmodel2VIEW_Moto
                    
set_pev(idpev_weaponmodel2PLAYER_Moto
                } 
                 
                 
            } 
        } 
        case 
2
        { 
            if(
CTCuchillo[id] && weaponID == CSW_KNIFE
            { 
                
set_pev(idpev_viewmodel2VIEW_MODELCT
                
set_pev(idpev_weaponmodel2PLAYER_MODELCT
            } 
        } 
    } 
    return 
PLUGIN_CONTINUE  



public 
client_connect(id

    if(
get_cvar_num("jb_savejb")) 
    { 
        
LoadJbs(id
    } 
    
initaliazed[id] = false
    
g_innoclip[id] = false
    
g_lastPosition[id][0] = 
    g_lastPosition
[id][1] = 
    g_lastPosition
[id][2] = 

public 
client_disconnect(id

    if(
get_cvar_num("jb_savejb")) 
    { 
    
SaveJbs(id)     
    } 
    
initaliazed[id] = false
    
g_innoclip[id] = false
    
g_lastPosition[id][0] = 
    g_lastPosition
[id][1] = 
    g_lastPosition
[id][2] = 


stock LoadJbs(id

new 
authid[64];  
get_user_name(id,authid,63
replace_all(authid,63," ","&#-$"

new 
vaultkey[64], vaultdata[64
format(vaultkey,63,"SAVEJP-%s",authid);  
if(
fvaultdata_exists(vaultkey)) 

    
nvault_get(mainvault,vaultkey,vaultdata,63);  
    if(
str_to_num(vaultdata) < get_pcvar_num(g_startjp)) 
    { 
        
g_jbpacks[id] = get_pcvar_num(g_startjp
    } 
    else 
    { 
        
g_jbpacks[id] = str_to_num(vaultdata); 
    } 

else 

    
g_jbpacks[id] = get_pcvar_num(g_startjp
}  


stock SaveJbs(id

new 
authid[64];  
get_user_name(id,authid,63
replace_all(authid,63," ","&#-$"
new 
vaultkey[64], vaultdata[64];  


format(vaultkey,63,"SAVEJP-%s",authid);  
format(vaultdata,63,"%d",g_jbpacks[id]);  
nvault_set(mainvault,vaultkey,vaultdata);  



/*public client_infochanged(id)  
{  
new newname[32],oldname[32]  
get_user_info(id, "name", newname,31)  
get_user_name(id,oldname,31)  
if(!is_user_connected(id) || is_user_bot(id)) return PLUGIN_CONTINUE; 
if(!equali(newname, oldname)) 

set_user_info(id,"name",oldname) 
client_print(id , print_console , "Isim degisikligi engellenmistir! [MGA]"); 
return PLUGIN_HANDLED; 

return PLUGIN_CONTINUE; 
}  

*/  



public fw_SetModel(entitymodel[]) 

if(!
pev_valid(entity)) 
return 
FMRES_IGNORED 

if(!equali(modelOLDWORLD_MODEL))  
    return 
FMRES_IGNORED 
     
new className[33
pev(entitypev_classnameclassName32
     
if(
equal(className"weaponbox") || equal(className"armoury_entity") || equal(className"grenade")) 

    
engfunc(EngFunc_SetModelentityWORLD_MODEL
    return 
FMRES_SUPERCEDE 

return 
FMRES_IGNORED 


public 
Fwd_EmitSound(idchannel, const sample[], Float:volumeFloat:attnflagspitch

     
    if (!
is_user_connected(id)) 
        return 
FMRES_IGNORED
     
    if(
CTCuchillo[id]) 
    { 
        if(
get_user_team(id) == 2
        { 
            if (
equal(sample[8], "kni"3)) 
            { 
                if (
equal(sample[14], "sla"3))  
                { 
                    switch (
random_num(12)) 
                    { 
                        case 
1engfunc(EngFunc_EmitSoundidchannelct_slash1volumeattnflagspitch
                            case 
2engfunc(EngFunc_EmitSoundidchannelct_slash2volumeattnflagspitch
                        } 
                     
                    return 
FMRES_SUPERCEDE
                } 
                if(
equal(sample,"weapons/knife_deploy1.wav")) 
                { 
                    
engfunc(EngFunc_EmitSoundidchannelct_deployvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                if (
equal(sample[14], "hit"3)) 
                { 
                    if (
sample[17] == 'w'
                    { 
                        
engfunc(EngFunc_EmitSoundidchannelct_wallvolumeattnflagspitch
                        return 
FMRES_SUPERCEDE
                    } 
                    else  
                    { 
                        switch (
random_num(14)) 
                        { 
                            case 
1engfunc(EngFunc_EmitSoundidchannelct_hit1volumeattnflagspitch
                                case 
2engfunc(EngFunc_EmitSoundidchannelct_hit2volumeattnflagspitch
                                case 
3engfunc(EngFunc_EmitSoundidchannelct_hit3volumeattnflagspitch
                                case 
4engfunc(EngFunc_EmitSoundidchannelct_hit4volumeattnflagspitch
                            } 
                         
                        return 
FMRES_SUPERCEDE
                    } 
                } 
                if (
equal(sample[14], "sta"3))  
                { 
                    
engfunc(EngFunc_EmitSoundidchannelct_stabvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
            } 
        }     
    } 
     
    if(
TCuchillo[id]) 
    { 
        if(
get_user_team(id) == 1
        { 
            if (
equal(sample[8], "kni"3)) 
            { 
                if (
equal(sample[14], "sla"3))  
                { 
                    switch (
random_num(12)) 
                    { 
                        case 
1engfunc(EngFunc_EmitSoundidchannelt_slash1volumeattnflagspitch
                            case 
2engfunc(EngFunc_EmitSoundidchannelt_slash2volumeattnflagspitch
                        } 
                     
                    return 
FMRES_SUPERCEDE
                } 
                if(
equal(sample,"weapons/knife_deploy1.wav")) 
                { 
                    
engfunc(EngFunc_EmitSoundidchannelt_deployvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                if (
equal(sample[14], "hit"3)) 
                { 
                    if (
sample[17] == 'w')  
                    { 
                        
engfunc(EngFunc_EmitSoundidchannelt_wallvolumeattnflagspitch
                        return 
FMRES_SUPERCEDE
                    } 
                    else  
                    { 
                        switch (
random_num(14)) 
                        { 
                            case 
1engfunc(EngFunc_EmitSoundidchannelt_hit1volumeattnflagspitch
                                case 
2engfunc(EngFunc_EmitSoundidchannelt_hit2volumeattnflagspitch
                                case 
3engfunc(EngFunc_EmitSoundidchannelt_hit3volumeattnflagspitch
                                case 
4engfunc(EngFunc_EmitSoundidchannelt_hit4volumeattnflagspitch
                            } 
                         
                        return 
FMRES_SUPERCEDE
                    } 
                } 
                if (
equal(sample[14], "sta"3)) 
                { 
                    
engfunc(EngFunc_EmitSoundidchannelt_stabvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
            } 
        } 
    } 
     
    if(
Destapador[id]) 
    { 
        if (
equal(sample[8], "kni"3)) 
        { 
            if (
equal(sample[14], "sla"3))  
            { 
                switch (
random_num(12)) 
                { 
                    case 
1engfunc(EngFunc_EmitSoundidchannelpalo_slash1volumeattnflagspitch
                        case 
2engfunc(EngFunc_EmitSoundidchannelpalo_slash2volumeattnflagspitch
                         
                } 
                 
                return 
FMRES_SUPERCEDE
            } 
            if(
equal(sample,"weapons/knife_deploy1.wav")) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelpalo_deployvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
            if (
equal(sample[14], "hit"3)) 
            { 
                if (
sample[17] == 'w')  
                { 
                    
engfunc(EngFunc_EmitSoundidchannelpalo_wallvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                else  
                { 
                    switch (
random_num(14)) 
                    { 
                        case 
1:engfunc(EngFunc_EmitSoundidchannelpalo_hit1volumeattnflagspitch
                            case 
2:engfunc(EngFunc_EmitSoundidchannelpalo_hit2volumeattnflagspitch
                            case 
3:engfunc(EngFunc_EmitSoundidchannelpalo_hit3volumeattnflagspitch
                            case 
4:engfunc(EngFunc_EmitSoundidchannelpalo_hit4volumeattnflagspitch
                        } 
                     
                    return 
FMRES_SUPERCEDE
                } 
            } 
            if (
equal(sample[14], "sta"3)) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelpalo_stabvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
        } 
    } 
     
    if(
Hacha[id]) 
    { 
         
        if (
equal(sample[8], "kni"3)) 
        { 
            if (
equal(sample[14], "sla"3)) 
            { 
                switch (
random_num(12)) 
                { 
                    case 
1engfunc(EngFunc_EmitSoundidchannelhacha_slash1volumeattnflagspitch
                        case 
2engfunc(EngFunc_EmitSoundidchannelhacha_slash2volumeattnflagspitch
                    } 
                 
                return 
FMRES_SUPERCEDE
            } 
            if(
equal(sample,"weapons/knife_deploy1.wav")) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelhacha_deployvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
            if (
equal(sample[14], "hit"3)) 
            { 
                if (
sample[17] == 'w'
                { 
                    
engfunc(EngFunc_EmitSoundidchannelhacha_wallvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                else  
                { 
                    switch (
random_num(13)) 
                    { 
                        case 
1engfunc(EngFunc_EmitSoundidchannelhacha_hit1volumeattnflagspitch
                            case 
2engfunc(EngFunc_EmitSoundidchannelhacha_hit2volumeattnflagspitch
                            case 
3engfunc(EngFunc_EmitSoundidchannelhacha_hit3volumeattnflagspitch
                        } 
                     
                    return 
FMRES_SUPERCEDE
                } 
            } 
            if (
equal(sample[14], "sta"3))  
            { 
                
engfunc(EngFunc_EmitSoundidchannelhacha_stabvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
        } 
    } 
     
    if(
Machete[id]) 
    { 
        if (
equal(sample[8], "kni"3)) 
        { 
            if (
equal(sample[14], "sla"3))  
            { 
                switch (
random_num(12)) 
                { 
                    case 
1engfunc(EngFunc_EmitSoundidchannelmachete_slash1volumeattnflagspitch
                        case 
2engfunc(EngFunc_EmitSoundidchannelmachete_slash2volumeattnflagspitch
                    } 
                return 
FMRES_SUPERCEDE
            } 
            if(
equal(sample,"weapons/knife_deploy1.wav")) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelmachete_deployvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
            if (
equal(sample[14], "hit"3)) 
            { 
                if (
sample[17] == 'w')  
                { 
                    
engfunc(EngFunc_EmitSoundidchannelmachete_wallvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                else 
// hit 
                

                    switch (
random_num(14)) 
                    { 
                        case 
1engfunc(EngFunc_EmitSoundidchannelmachete_hit1volumeattnflagspitch
                            case 
2engfunc(EngFunc_EmitSoundidchannelmachete_hit2volumeattnflagspitch
                            case 
3engfunc(EngFunc_EmitSoundidchannelmachete_hit3volumeattnflagspitch
                            case 
4engfunc(EngFunc_EmitSoundidchannelmachete_hit4volumeattnflagspitch
                        } 
                    return 
FMRES_SUPERCEDE
                } 
            } 
            if (
equal(sample[14], "sta"3))  
            { 
                
engfunc(EngFunc_EmitSoundidchannelmachete_stabvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
        } 
    } 
     
    if(
Motocierra[id]) 
    { 
         
        if (
equal(sample[8], "kni"3)) 
        { 
            if (
equal(sample[14], "sla"3)) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelmotocierra_slashvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
            if(
equal(sample,"weapons/knife_deploy1.wav")) 
            { 
                
engfunc(EngFunc_EmitSoundidchannelmotocierra_deployvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
            if (
equal(sample[14], "hit"3)) 
            { 
                if (
sample[17] == 'w')  
                { 
                    
engfunc(EngFunc_EmitSoundidchannelmotocierra_wallvolumeattnflagspitch
                    return 
FMRES_SUPERCEDE
                } 
                else  
                { 
                    switch (
random_num(12)) 
                    { 
                        case 
1engfunc(EngFunc_EmitSoundidchannelmotocierra_hit1volumeattnflagspitch
                            case 
2engfunc(EngFunc_EmitSoundidchannelmotocierra_hit2volumeattnflagspitch
                             
                    } 
                    return 
FMRES_SUPERCEDE
                } 
            } 
            if (
equal(sample[14], "sta"3))  
            { 
                
engfunc(EngFunc_EmitSoundidchannelmotocierra_stabvolumeattnflagspitch
                return 
FMRES_SUPERCEDE
            } 
        } 
    }     
    return 
FMRES_IGNORED


/*============================================================ 
Stocks! 
============================================================*/ 
stock ChatColor(const id, const input[], any:...) 

    new 
count 1players[32
    static 
msg[191
    
vformat(msg190input3
     
    
replace_all(msg190"!g""^4"// Green Color 
    
replace_all(msg190"!y""^1"// Default Color 
    
replace_all(msg190"!team""^3"// Team Color 
     
     
    
if (idplayers[0] = id; else get_players(playerscount"ch"
    { 
    for (new 
0counti++) 
    { 
        if (
is_user_connected(players)) 
        { 
            
message_begin(MSG_ONE_UNRELIABLEg_iMsgSayText_players)   
            
write_byte(players); 
            
write_string(msg); 
            
message_end(); 
        } 
    } 

}   

stock ham_strip_weapon(id,weapon[]) 

if(!
equal(weapon,"weapon_",7)) return 0

new 
wId get_weaponid(weapon); 
if(!
wId) return 0

new 
wEnt
while((
wEnt engfunc(EngFunc_FindEntityByString,wEnt,"classname",weapon)) && pev(wEnt,pev_owner) != id) {} 
if(!
wEnt) return 0

if(
get_user_weapon(id) == wIdExecuteHamB(Ham_Weapon_RetireWeapon,wEnt); 

if(!
ExecuteHamB(Ham_RemovePlayerItem,id,wEnt)) return 0
ExecuteHamB(Ham_Item_Kill,wEnt); 

set_pev(id,pev_weapons,pev(id,pev_weapons) & ~(1<<wId)); 

return 
1
}   



public 
positionChangeTimer(id

if ( !
is_user_alive(id) ) return 

get_user_origin(idg_lastPosition[id], 0

new 
Float:velocity[3
Entvars_Get_Vector(idEV_VEC_velocityvelocity

if ( 
velocity[0]==0.0 && velocity[1]==0.0 ) { 
    
velocity[0] += 20.0 
    velocity
[2] += 100.0 
    Entvars_Set_Vector
(idEV_VEC_velocityvelocity


set_task(0.4,"positionChangeCheck",id 9911

//---------------------------------------------------------------------------------------------- 
public positionChangeCheck(taskid

new 
id taskid 9911
new 
origin[3

if (!
is_user_alive(id) ) return 

get_user_origin(idorigin0
if ( 
g_lastPosition[id][0] == origin[0] && g_lastPosition[id][1] == origin[1] && g_lastPosition[id][2] == origin[2] && is_user_alive(id) ) { 
    
user_kill(id
    
client_print(id,print_center,"Duvarda kaldigin icin ezildin!"

remove_task(taskid
}   

public 
normalize_light(Taskid

set_lights("#OFF"


stock Entvars_Get_Vector(iIndexiVariableFloat:vRetVector[3]) 
return 
entity_get_vector(iIndexiVariablevRetVector

stock Entvars_Set_Vector(iIndexiVariableFloat:vNewVector[3]) 
    return 
entity_set_vector(iIndexiVariablevNewVector


stock fvaultdata_exists(const key[]) 

if(
nvault_get(mainvault,key) != -1

return 
1

else 

return 
0;     

return -
1



public 
native_jb_get_user_packs(id

return 
g_jbpacks[id]; 


public 
native_jb_set_user_packs(idammount

new 
id get_param(1); 
new 
ammount get_param(2); 
g_jbpacks[id] = ammount 
return 1

[/i][/i][/i][/i][/i]


Cevap: Jailbreak /tl verme - DeaTReX - 20-03-13

Konu Cözüldüğü İçin Çözülmüş İstekler Bölümüne Taşınmıştır !


Cevap: Jailbreak /tl verme - ibocan06 - 17-06-13

Fotoraf varmı kardeşim ??


Cevap: Jailbreak /tl verme - eneskaraca55 - 20-02-15

good


Cevap: Jailbreak /tl verme - Slyvio Borin - 11-07-15

bunu plugin olarak paylaşabilir misniz dosyalarıyla falan ?


Cevap: Jailbreak /tl verme - murat1366 - 03-08-16

tsk