Kod:
#include <amxmodx>#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <fun>
#include <nvault>
#include <jail>
#include <engine>
#include <colorchat>
#define charsmax(%1) (sizeof(%1)-1)
#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,
g_killjp,
g_killhsjp,
g_startjp,
g_maxjp,
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;
new engel1[33];
new AcKapa;
new zombihp[33];
new insanhp[33];
new zombimod[33]; // herkes
new ananzaaxd[33];
new anavault;
new username[33][200]
new password[33][200]
new g_username[33][200]
new g_password[33][200]
new k_username[33][200]
new k_password[33][200]
new g_IslemUcreti
new transfer;
new isyanmenu;
new map[32];
/*============================================================
Weapon Model's
============================================================*/
new VIEW_MODELT[] = "models/TG/yumruk/v_yumruk.mdl"
new PLAYER_MODELT[] = "models/TG/yumruk/p_yumruk.mdl"
new VIEW_MODELCT[] = "models/TG/ctbicak/v_ctbicak.mdl"
new PLAYER_MODELCT[] = "models/TG/ctbicak/P_ctbicak.mdl"
new VIEW_Hacha[] = "models/TG/Kampci/v_Kampci.mdl"
new PLAYER_Hacha[] = "models/TG/Kampci/p_Kampci.mdl"
new VIEW_Machete[] = "models/TG/agir/v_agir.mdl"
new PLAYER_Machete[] = "models/TG/agir/p_agir.mdl"
new VIEW_Palo[] = "models/TG/kilic/v_kilic.mdl"
new PLAYER_Palo[] = "models/TG/kilic/p_kilic.mdl"
new VIEW_Moto[] = "models/TG/serici/v_serici.mdl"
new PLAYER_Moto[] = "models/TG/serici/p_serici.mdl"
new WORLD_MODEL[] = "models/w_knife.mdl"
new OLDWORLD_MODEL[] = "models/w_knife.mdl"
/*============================================================
Shop Sounds!
============================================================*/
new const Si[] = { "[Shop]JailBreak/Yes.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" }
#define PLUGIN "[ OLYMPIAKOS` ~> JaiLbReaK ] JB MOD"
#define VERSION "[ OLYMPIAKOS` ~> JaiLbReaK ] v1.0"
#define AUTHOR "[ OLYMPIAKOS` ~> JaiLbReaK ] "
new hp,gravity,hgs,usp,m4a1,deprem,elektrik;
#define task 672
new zaman = 60
new zaman2 = 90
new zaman3 = 120
new zaman4 = 180
const MENU_TUSLARI = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_0
new takim[36];
new yapimci2[] = "^4[ TurkGaming | JaiLBreaK ]^3"
new yapimci[] = "^3[ TurkGaming | JaiLBreaK ]^4"
/*============================================================
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()
{
get_mapname(map,31);
if((containi(map,"jail") == -1) && (containi(map,"jb_") == -1)) return
register_plugin(PLUGIN, VERSION, AUTHOR);
register_menu("Menu 1", MENU_TUSLARI, "Oyun_Menusu");
register_clcmd("say /jbmenu","kontrol")
register_clcmd("say !jbmenu","kontrol")
register_clcmd("say_team /jbmenu","kontrol")
register_clcmd("say_team !jbmenu","kontrol")
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", "3");
g_startjp = register_cvar("jb_startJP", "5");
g_maxjp = register_cvar("jb_maxgiveJP", "50");
OnOff = register_cvar("jb_Shop", "1")//1(ON) 0(OFF)
OnOff2 = register_cvar("jb_ShopKnifes", "1")//1(ON) 0(OFF)
precio1 = register_cvar("jb_pFlash", "4")
precio2 = register_cvar("jb_pHe", "6")
precio3 = register_cvar("jb_pHEFL", "10")
precio4 = register_cvar("jb_pWalk", "5")
precio5 = register_cvar("jb_pFast", "15")
precio6 = register_cvar("jb_pDrugs", "20")
precio7 = register_cvar("jb_pGlock", "30")
precioC1 = register_cvar("jb_pKnife1", "-1")
precioC2 = register_cvar("jb_pKnife2", "4")
precioC3 = register_cvar("jb_pKnife3", "7")
precioC4 = register_cvar("jb_pKnife4", "22")
AcKapa = register_cvar("jb_engel","0")
TDefaultDano = register_cvar("jb_dKnifeT", "20")
CTDefaultDano = register_cvar("jb_dKnifeCT", "50")
PaloDano = register_cvar("jb_dKnife1", "25")
HachaDano = register_cvar("jb_dKnife2", "45")
MacheteDano = register_cvar("jb_dKnife3", "70")
MotocierraDano = register_cvar("jb_dKnife4", "200")
hTDefaultDano = register_cvar("jb_dHsKnifeT", "40")
hCTDefaultDano = register_cvar("jb_dHsKnifeCT", "80")
hPaloDano = register_cvar("jb_dhsKnife1", "55")
hHachaDano = register_cvar("jb_dhsKnife2", "65")
hMacheteDano = register_cvar("jb_dhsKnife3", "75")
Vida = register_cvar("jb_drLife", "200")
Armor = register_cvar("jb_drArmor", "200")
glock1 = register_cvar("jb_gClip", "20")
glock2 = register_cvar("jb_gAmmo", "1")
syncObj = CreateHudSyncObj()
transfer = register_cvar("jb_transfer","1")
isyanmenu = register_cvar("jb_isyan","1")
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 /mg", "tlveral")
register_clcmd("say /glowmenu","glowmenu")
register_clcmd("JbPacks", "player")
anavault = nvault_open("ZmBanka")
register_clcmd("Hesap_Ismi","Giris_ID")
register_clcmd("Hesap_Ismi_Secin","Kayit_ID")
register_clcmd("Vereceginiz_Miktar","Ammo_Yatir")
register_clcmd("Alacaginiz_Miktar","Ammo_Cek")
register_clcmd("Sifreniz","Giris_Pw")
register_clcmd("Sifre_Secin","Kayit_Pw")
g_IslemUcreti = register_cvar("banka_islem_ucreti","0")
hp = register_cvar("jbisyan_hp","7")
gravity = register_cvar("jbisyan_gravity","20")
hgs = register_cvar("jbisyan_3hg","15")
usp = register_cvar("jbisyan_usp","30")
m4a1 = register_cvar("jbisyan_m4a1","60")
deprem = register_cvar("jbisyan_deprem","15")
elektrik = register_cvar("jbisyan_elektrik","15")
}
/*============================================================
Precaches
============================================================*/
public plugin_precache()
{
precache_sound(Si)
precache_sound("weapons/knife_hitwall1.wav")
precache_sound("weapons/knife_hit4.wav")
precache_sound("weapons/knife_deploy1.wav")
precache_model("models/w_knifepack.mdl")
precache_model("models/w_throwingknife.mdl")
//precache_sound(elbasi)
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)
{
new hostname[64]
get_cvar_string("hostname",hostname,63)
if(get_pcvar_num(OnOff2))
{
if (get_user_team(id) == 1 )
{
static Item[64]
formatex(Item, charsmax(Item),"\y%s",hostname)
new Menu = menu_create(Item, "CuchilleroHandler")
formatex(Item, charsmax(Item),"\wTuvalet Pompasi \y[ %d TL ]", get_pcvar_num(precioC1))
menu_additem(Menu, Item, "1")
formatex(Item, charsmax(Item),"\wBalta \y[ %d TL ]",get_pcvar_num(precioC2))
menu_additem(Menu, Item, "2")
formatex(Item, charsmax(Item),"\wAv Bicagi \y[ %d TL ]",get_pcvar_num(precioC3))
menu_additem(Menu, Item, "3")
formatex(Item, charsmax(Item),"\wTestere \y[ %d TL ]",get_pcvar_num(precioC4))
menu_additem(Menu, Item, "4")
menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, Menu,0)
}
}
return PLUGIN_HANDLED
}
public CuchilleroHandler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
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")
engel1[id] = 1
ColorChat(id,GREEN ,"%s Marketten^3 [ Tuvalet Pompasi ]^4 Satin Aldiniz",yapimci)
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
IlkMenu(id);
}
else
{
ColorChat(id,GREEN ,"%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id);
}
}
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
engel1[id] = 1
ham_strip_weapon(id, "weapon_knife")
give_item(id, "weapon_knife")
engel1[id] = 1
ColorChat(id,GREEN ,"%s Marketten^3 [ Balta ]^4 Satin Aldiniz",yapimci)
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
IlkMenu(id);
}
else
{
ColorChat(id,GREEN ,"%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id);
}
}
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
engel1[id] = 1
ham_strip_weapon(id, "weapon_knife")
give_item(id, "weapon_knife")
ColorChat(id,GREEN ,"%s Marketten^3 [ Av Bicagi ]^4 Satin Aldiniz",yapimci)
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
IlkMenu(id);
}
else
{
ColorChat(id,GREEN, "%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id);
}
}
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")
engel1[id] = 1
ColorChat(id,GREEN, "%s Marketten^3 [ Testere ]^4 Satin Aldiniz",yapimci)
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
IlkMenu(id);
}
else
{
ColorChat(id,GREEN ,"%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id);
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
/*============================================================
ITEM'S MENU
============================================================*/
public Tienda(id)
{
new hostname[64]
get_cvar_string("hostname",hostname,63)
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], num, tempid;
get_players(players, num)
for (new i=0; i<num; i++)
{
tempid = players[i]
if (get_user_team(tempid)==1 && is_user_alive(tempid))
{
contador++;
}
}
if ( contador == 1 )
{
}
else if ( contador >= 2 )
{
static Item[64]
formatex(Item, charsmax(Item),"\y%s",hostname)
new Menu = menu_create(Item, "TiendaHandler")
formatex(Item, charsmax(Item),"\wFlash Bombasi \y[ %d TL ]",get_pcvar_num(precio1))
menu_additem(Menu, Item, "1")
formatex(Item, charsmax(Item),"\wEl Bombasi \y[ %d TL ]",get_pcvar_num(precio2))
menu_additem(Menu, Item, "2")
formatex(Item, charsmax(Item),"\wEl \y+ \wFlash Bombasi \y[ %d TL ]",get_pcvar_num(precio3))
menu_additem(Menu, Item, "3")
formatex(Item, charsmax(Item),"\wSessiz Yurume \y[ %d TL ]",get_pcvar_num(precio4))
menu_additem(Menu, Item, "4")
formatex(Item, charsmax(Item),"\wHizli Yurume \y[ %d TL ]",get_pcvar_num(precio5))
menu_additem(Menu, Item, "5")
formatex(Item, charsmax(Item),"\wUyusturucu \y[ %d TL ]",get_pcvar_num(precio6))
menu_additem(Menu, Item, "6")
formatex(Item, charsmax(Item),"\wGlock \y[ %d TL ]",get_pcvar_num(precio7))
menu_additem(Menu, Item, "7")
menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, Menu,0)
}
}
else
{
}
}
else
{
}
}
else
{
}
}
else
{
}
return PLUGIN_HANDLED
}
public TiendaHandler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
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
ColorChat(id,GREEN,"%s Marketten ^3[ Flash Bombasi ]^4 Aldiniz.",yapimci)
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
Ronda[id] = 0
IlkMenu(id)
}
else
{
ColorChat(id,GREEN ,"%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id)
}
}
case 2:
{
if (g_jbpacks[id] >= Obtener2 && vivo)
{
g_jbpacks[id] -= Obtener2
ColorChat(id,GREEN,"%s Marketten ^3[ El Bombasi ]^4 Aldiniz.",yapimci)
give_item(id, "weapon_hegrenade")
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
Ronda[id] = 0
IlkMenu(id)
}
else
{
ColorChat(id,GREEN ,"%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id)
}
}
case 3:
{
if (g_jbpacks[id] >= Obtener3 && vivo)
{
g_jbpacks[id] -= Obtener3
ColorChat(id,GREEN,"%s Marketten ^3[ El + Flash Bombasi ]^4 Aldiniz.",yapimci)
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
Ronda[id] = 0
IlkMenu(id)
}
else
{
ColorChat(id,GREEN ,"%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id)
}
}
case 4:
{
if (g_jbpacks[id] >= Obtener4 && vivo)
{
g_jbpacks[id] -= Obtener4
ColorChat(id,GREEN,"%s Marketten ^3[ Sessiz Yurume ]^4 Aldiniz.",yapimci)
set_user_footsteps(id, 1)
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
Ronda[id] = 0
IlkMenu(id)
}
else
{
ColorChat(id,GREEN ,"%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id)
}
}
case 5:
{
if (g_jbpacks[id] >= Obtener5 && vivo)
{
g_jbpacks[id] -= Obtener5
ColorChat(id,GREEN,"%s Marketten ^3[ Hizli Kosma ]^4 Aldiniz.",yapimci)
set_user_maxspeed(id, 500.0)
Speed[id] = 1
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
Ronda[id] = 0
IlkMenu(id)
}
else
{
ColorChat(id,GREEN, "%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id)
}
}
case 6:
{
if (g_jbpacks[id] >= Obtener6 && vivo)
{
g_jbpacks[id] -= Obtener6
ColorChat(id,GREEN,"%s Marketten ^3[ Uyusturucu ]^4 Aldiniz.",yapimci)
set_user_armor(id, armor1 + armor2)
set_user_health(id, vida1 + vida2)
set_user_maxspeed(id, 380.0)
Speed2[id] = 1
message_begin( MSG_ONE, gmsg_SetFOV, { 0, 0, 0 }, id )
write_byte( 180 )
message_end( )
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
Ronda[id] = 0
IlkMenu(id)
}
else
{
ColorChat(id,GREEN, "%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id)
}
}
case 7:
{
if (g_jbpacks[id] >= Obtener7 && vivo)
{
g_jbpacks[id] -= Obtener7
ColorChat(id,GREEN,"%s Marketten ^3[ Glock ]^4 Aldiniz.",yapimci)
cs_set_weapon_ammo( give_item( id, "weapon_glock18" ), get_pcvar_num(glock1))
cs_set_user_bpammo(id, CSW_GLOCK18, get_pcvar_num(glock2))
emit_sound(id, CHAN_AUTO, Si, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
Ronda[id] = 0
IlkMenu(id)
}
else
{
ColorChat(id,GREEN, "%s Yeterli^3 [ TL ]^4 ' Niz Yok.",yapimci)
IlkMenu(id)
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public client_putinserver(id)
{
//LoadJbs(id)
g_jbpacks[id] = get_pcvar_num(g_startjp)
set_task(1.0, "JailbreakPacks", id, _, _, "b")
}
public engel(id) {
return PLUGIN_HANDLED;
}
public escojer(id)
{
static opcion[64]
formatex(opcion, charsmax(opcion),"\yOyuncu Secin")
new iMenu = menu_create(opcion, "choose")
new players[32], pnum, tempid
new szName[32], szTempid[10]
get_players(players, pnum, "a")
for( new i; i<pnum; i++ )
{
tempid = players[i]
get_user_name(tempid, szName, 31)
num_to_str(tempid, szTempid, 9)
formatex(opcion, charsmax(opcion), "\y[ %s ] \r[ %i ]" ,szName, g_jbpacks[tempid])
menu_additem(iMenu, opcion, szTempid, 0)
}
menu_display(id, iMenu,0)
return PLUGIN_HANDLED
}
public choose(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new Data[6], Name[64]
new Access, Callback
menu_item_getinfo(menu, item, Access, Data,5, Name, 63, Callback)
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(say, charsmax(say))
remove_quotes(say)
if(!is_str_num(say) || equal(say, ""))
return PLUGIN_HANDLED
jbpacks(id, say)
return PLUGIN_CONTINUE
}
public fw_GetVaultData(id)
{
//initaliazed[id] = get_vaultdata(read_data(1));
initaliazed[id] = true;
}
jbpacks(id, say[]) {
new amount = str_to_num(say)
new victim = gidPlayer[id]
new vname[32]
new adminname[32]
if(victim > 0)
{
get_user_name(victim, vname, 31)
get_user_name(id, adminname, 31)
if(regalar[id])
{
if(amount > get_pcvar_num(g_maxjp))
{
ColorChat(0,RED,"^4[ D'eagLe -hS | JaiLBreaK ]^3 [ %s ]^4 Nickli Admin^3 [ %d ]^4 JB Den Fazla Veremezsin.",adminname,get_pcvar_num(g_maxjp))
log_amx("[ D'eagLe -hS | JaiLBreaK ] %s Nickli Admin 20 JB Den Fazla Vermeye Calisti",adminname)
}
else
{
if(amount <= 20) {
g_jbpacks[victim] = g_jbpacks[victim] + amount
ColorChat(0,GREEN,"%s [ %s ]^3 Nickli Admin^4 [ %s ]^3 Kisiye^4 [ %d ] TL Verdi.",yapimci,adminname, vname, amount)
log_amx("[ D'eagLe -hS | JaiLBreaK ] [ %s ] Nickli Admin [ %s ] Kisiye [ %d ] TL Verdi",adminname,vname,amount)
}
else
{
ColorChat(0,RED,"^4[ D'eagLe -hS | JaiLBreaK ]^3 [ %s ]^4 Nickli Admin^3 [ %d ]^4 JB Den Fazla Veremezsin.",adminname,get_pcvar_num(g_maxjp))
}
}
}
if(quitar[id])
{
if(amount > g_jbpacks[victim])
{
g_jbpacks[victim] = 0
ColorChat(0,GREEN,"%s [ %s ]^3 Nickli Admin^4 [ %s ]^3 Kisinin^4 TUM^3 TL Lerini Aldi.",yapimci,adminname, vname)
log_amx("[ D'eagLe -hS | JaiLBreaK ] [ %s ] Nickli Admin [ %s ] Kisinin Tum TL Sini Aldi",adminname,vname)
}
else
{
g_jbpacks[victim] = g_jbpacks[victim] - amount
ColorChat(0,GREEN,"%s [ %s ]^3 Nickli Admin^4 [ %s ]^3 Kisinin^4 [ %d ] TL sini Aldi",yapimci,adminname, vname, amount)
log_amx("[ D'eagLe -hS | JaiLBreaK ] [ %s ] Admin [ %s ] Kisiden [ %d ] TL Aldi",adminname,vname,amount)
}
}
}
return PLUGIN_HANDLED
}
public Fwd_PlayerSpawn_Post(id)
{
if(takim[id] > 0 ) {
takim[id] = 0;
cs_reset_user_model(id);
}
if (is_user_alive(id))
{
if(get_user_team(id) == 1) {
strip_user_weapons(id); give_item(id, "weapon_knife")
set_user_footsteps(id, 0)
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(get_pcvar_num(AcKapa) == 0) {
IlkMenu(id)
}
engel1[id] = 0;
set_task(0.2,"revive",id)
}
if(get_user_team(id) == 2) {
}
}
client_cmd(id,"bind n ^"say /jbmenu^"")
}
public FwdTakeDamage(victim, inflictor, attacker, Float:damage, damage_bits)
{
if(takim[attacker] == takim[victim] && takim[attacker] != 0 && get_cvar_num("mp_friendlyfire")) {
ColorChat(attacker,RED,"%s Ayni Takimdasiniz Siddete Gerek Yok.")
ColorChat(attacker,RED,"%s Ayni Takimdasiniz Siddete Gerek Yok.")
return HAM_SUPERCEDE
}
if (is_valid_player(attacker) && get_user_weapon(attacker) == CSW_KNIFE)
{
switch(get_user_team(attacker))
{
case 1:
{
if(TCuchillo[attacker])
{
SetHamParamFloat(4, get_pcvar_float(TDefaultDano))
if(get_pdata_int(victim, 75) == HIT_HEAD)
{
SetHamParamFloat(4, get_pcvar_float(hTDefaultDano))
}
}
if(Destapador[attacker])
{
SetHamParamFloat(4, get_pcvar_float(PaloDano))
if(get_pdata_int(victim, 75) == HIT_HEAD)
{
SetHamParamFloat(4, get_pcvar_float(hPaloDano))
}
}
if(Hacha[attacker])
{
SetHamParamFloat(4, get_pcvar_float(HachaDano))
if(get_pdata_int(victim, 75) == HIT_HEAD)
{
SetHamParamFloat(4, get_pcvar_float(hHachaDano))
}
}
if(Machete[attacker])
{
SetHamParamFloat(4, get_pcvar_float(MacheteDano))
if(get_pdata_int(victim, 75) == HIT_HEAD)
{
SetHamParamFloat(4, get_pcvar_float(hMacheteDano))
}
}
if(Motocierra[attacker])
{
SetHamParamFloat(4, get_pcvar_float(MotocierraDano))
}
}
case 2:
{
if(CTCuchillo[attacker])
{
SetHamParamFloat(4, get_pcvar_float(CTDefaultDano))
if(get_pdata_int(victim, 75) == HIT_HEAD)
{
SetHamParamFloat(4, get_pcvar_float(hCTDefaultDano))
}
}
}
}
}
if(is_user_connected(attacker) && initaliazed[attacker] && get_user_weapon(attacker) != CSW_KNIFE)
{
SetHamParamFloat(4, damage * random_float(1.6,1.8));
}
return HAM_HANDLED
}
public fw_player_killed(victim, attacker, shouldgib)
{
if(get_user_team(attacker) == 1)
{
g_jbpacks[attacker] += get_pcvar_num(g_killjp)
if(get_pdata_int(victim, 75) == 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(id, 500.0)
}
if(Speed2[id])
{
set_user_maxspeed(id, 380.0)
}
if(weaponID == CSW_KNIFE && get_pcvar_num(OnOff2))
{
if(TCuchillo[id])
{
set_pev(id, pev_viewmodel2, VIEW_MODELT)
set_pev(id, pev_weaponmodel2, PLAYER_MODELT)
}
if(Destapador[id])
{
set_pev(id, pev_viewmodel2, VIEW_Palo)
set_pev(id, pev_weaponmodel2, PLAYER_Palo)
}
if(Hacha[id])
{
set_pev(id, pev_viewmodel2, VIEW_Hacha)
set_pev(id, pev_weaponmodel2, PLAYER_Hacha)
}
if(Machete[id])
{
set_pev(id, pev_viewmodel2, VIEW_Machete)
set_pev(id, pev_weaponmodel2, PLAYER_Machete)
}
if(Motocierra[id])
{
set_pev(id, pev_viewmodel2, VIEW_Moto)
set_pev(id, pev_weaponmodel2, PLAYER_Moto)
}
}
}
case 2:
{
if(CTCuchillo[id] && weaponID == CSW_KNIFE)
{
set_pev(id, pev_viewmodel2, VIEW_MODELCT)
set_pev(id, pev_weaponmodel2, PLAYER_MODELCT)
}
}
}
return PLUGIN_CONTINUE
}
public client_connect(id)
{
copy(username[id],199,"")
copy(password[id],199,"")
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
initaliazed[id] = false;
}
public client_disconnect(id)
{
copy(username[id],199,"")
copy(password[id],199,"")
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
initaliazed[id] = false;
}
/*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! [OyunYoneticisi]");
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
*/
public fw_SetModel(entity, model[])
{
if(!pev_valid(entity))
return FMRES_IGNORED
if(!equali(model, OLDWORLD_MODEL))
return FMRES_IGNORED
new className[33];
pev(entity, pev_classname, className, 32)
if(equal(className, "weaponbox") || equal(className, "armoury_entity") || equal(className, "grenade"))
{
engfunc(EngFunc_SetModel, entity, WORLD_MODEL)
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
public Fwd_EmitSound(id, channel, const sample[], Float:volume, Float:attn, flags, pitch)
{
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(1, 2))
{
case 1: engfunc(EngFunc_EmitSound, id, channel, ct_slash1, volume, attn, flags, pitch)
case 2: engfunc(EngFunc_EmitSound, id, channel, ct_slash2, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
if(equal(sample,"weapons/knife_deploy1.wav"))
{
engfunc(EngFunc_EmitSound, id, channel, ct_deploy, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
if (equal(sample[14], "hit", 3))
{
if (sample[17] == 'w')
{
engfunc(EngFunc_EmitSound, id, channel, ct_wall, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
else
{
switch (random_num(1, 4))
{
case 1: engfunc(EngFunc_EmitSound, id, channel, ct_hit1, volume, attn, flags, pitch)
case 2: engfunc(EngFunc_EmitSound, id, channel, ct_hit2, volume, attn, flags, pitch)
case 3: engfunc(EngFunc_EmitSound, id, channel, ct_hit3, volume, attn, flags, pitch)
case 4: engfunc(EngFunc_EmitSound, id, channel, ct_hit4, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
}
if (equal(sample[14], "sta", 3))
{
engfunc(EngFunc_EmitSound, id, channel, ct_stab, volume, attn, flags, pitch)
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(1, 2))
{
case 1: engfunc(EngFunc_EmitSound, id, channel, t_slash1, volume, attn, flags, pitch)
case 2: engfunc(EngFunc_EmitSound, id, channel, t_slash2, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
if(equal(sample,"weapons/knife_deploy1.wav"))
{
engfunc(EngFunc_EmitSound, id, channel, t_deploy, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
if (equal(sample[14], "hit", 3))
{
if (sample[17] == 'w')
{
engfunc(EngFunc_EmitSound, id, channel, t_wall, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
else
{
switch (random_num(1, 4))
{
case 1: engfunc(EngFunc_EmitSound, id, channel, t_hit1, volume, attn, flags, pitch)
case 2: engfunc(EngFunc_EmitSound, id, channel, t_hit2, volume, attn, flags, pitch)
case 3: engfunc(EngFunc_EmitSound, id, channel, t_hit3, volume, attn, flags, pitch)
case 4: engfunc(EngFunc_EmitSound, id, channel, t_hit4, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
}
if (equal(sample[14], "sta", 3))
{
engfunc(EngFunc_EmitSound, id, channel, t_stab, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
}
}
}
if(Destapador[id])
{
if (equal(sample[8], "kni", 3))
{
if (equal(sample[14], "sla", 3))
{
switch (random_num(1, 2))
{
case 1: engfunc(EngFunc_EmitSound, id, channel, palo_slash1, volume, attn, flags, pitch)
case 2: engfunc(EngFunc_EmitSound, id, channel, palo_slash2, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
if(equal(sample,"weapons/knife_deploy1.wav"))
{
engfunc(EngFunc_EmitSound, id, channel, palo_deploy, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
if (equal(sample[14], "hit", 3))
{
if (sample[17] == 'w')
{
engfunc(EngFunc_EmitSound, id, channel, palo_wall, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
else
{
switch (random_num(1, 4))
{
case 1:engfunc(EngFunc_EmitSound, id, channel, palo_hit1, volume, attn, flags, pitch)
case 2:engfunc(EngFunc_EmitSound, id, channel, palo_hit2, volume, attn, flags, pitch)
case 3:engfunc(EngFunc_EmitSound, id, channel, palo_hit3, volume, attn, flags, pitch)
case 4:engfunc(EngFunc_EmitSound, id, channel, palo_hit4, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
}
if (equal(sample[14], "sta", 3))
{
engfunc(EngFunc_EmitSound, id, channel, palo_stab, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
}
}
if(Hacha[id])
{
if (equal(sample[8], "kni", 3))
{
if (equal(sample[14], "sla", 3))
{
switch (random_num(1, 2))
{
case 1: engfunc(EngFunc_EmitSound, id, channel, hacha_slash1, volume, attn, flags, pitch)
case 2: engfunc(EngFunc_EmitSound, id, channel, hacha_slash2, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
if(equal(sample,"weapons/knife_deploy1.wav"))
{
engfunc(EngFunc_EmitSound, id, channel, hacha_deploy, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
if (equal(sample[14], "hit", 3))
{
if (sample[17] == 'w')
{
engfunc(EngFunc_EmitSound, id, channel, hacha_wall, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
else
{
switch (random_num(1, 3))
{
case 1: engfunc(EngFunc_EmitSound, id, channel, hacha_hit1, volume, attn, flags, pitch)
case 2: engfunc(EngFunc_EmitSound, id, channel, hacha_hit2, volume, attn, flags, pitch)
case 3: engfunc(EngFunc_EmitSound, id, channel, hacha_hit3, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
}
if (equal(sample[14], "sta", 3))
{
engfunc(EngFunc_EmitSound, id, channel, hacha_stab, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
}
}
if(Machete[id])
{
if (equal(sample[8], "kni", 3))
{
if (equal(sample[14], "sla", 3))
{
switch (random_num(1, 2))
{
case 1: engfunc(EngFunc_EmitSound, id, channel, machete_slash1, volume, attn, flags, pitch)
case 2: engfunc(EngFunc_EmitSound, id, channel, machete_slash2, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
if(equal(sample,"weapons/knife_deploy1.wav"))
{
engfunc(EngFunc_EmitSound, id, channel, machete_deploy, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
if (equal(sample[14], "hit", 3))
{
if (sample[17] == 'w')
{
engfunc(EngFunc_EmitSound, id, channel, machete_wall, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
else // hit
{
switch (random_num(1, 4))
{
case 1: engfunc(EngFunc_EmitSound, id, channel, machete_hit1, volume, attn, flags, pitch)
case 2: engfunc(EngFunc_EmitSound, id, channel, machete_hit2, volume, attn, flags, pitch)
case 3: engfunc(EngFunc_EmitSound, id, channel, machete_hit3, volume, attn, flags, pitch)
case 4: engfunc(EngFunc_EmitSound, id, channel, machete_hit4, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
}
if (equal(sample[14], "sta", 3))
{
engfunc(EngFunc_EmitSound, id, channel, machete_stab, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
}
}
if(Motocierra[id])
{
if (equal(sample[8], "kni", 3))
{
if (equal(sample[14], "sla", 3))
{
engfunc(EngFunc_EmitSound, id, channel, motocierra_slash, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
if(equal(sample,"weapons/knife_deploy1.wav"))
{
engfunc(EngFunc_EmitSound, id, channel, motocierra_deploy, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
if (equal(sample[14], "hit", 3))
{
if (sample[17] == 'w')
{
engfunc(EngFunc_EmitSound, id, channel, motocierra_wall, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
else
{
switch (random_num(1, 2))
{
case 1: engfunc(EngFunc_EmitSound, id, channel, motocierra_hit1, volume, attn, flags, pitch)
case 2: engfunc(EngFunc_EmitSound, id, channel, motocierra_hit2, volume, attn, flags, pitch)
}
return FMRES_SUPERCEDE;
}
}
if (equal(sample[14], "sta", 3))
{
engfunc(EngFunc_EmitSound, id, channel, motocierra_stab, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
}
}
return FMRES_IGNORED;
}
/*============================================================
Stocks!
============================================================*/
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) == wId) ExecuteHamB(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;
}
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(id, ammount)
{
new id = get_param(1);
new ammount = get_param(2);
g_jbpacks[id] = ammount
return 1;
}
public native_bank_get_user_packs(id)
{
return g_jbpacks[id];
}
public native_bank_set_user_packs(id, ammount)
{
new id = get_param(1);
new ammount = get_param(2);
g_jbpacks[id] = ammount
return 1;
}
public IlkMenu(id)
{
if(get_pcvar_num(OnOff2))
{
if (get_user_team(id) == 1 )
{
new hostname[64]
get_cvar_string("hostname",hostname,63)
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\y%s",hostname)
menu = menu_create(Menuz, "amenu_devam")
if(engel1[id] == 0) {
formatex(Menuz, charsmax(Menuz), "\wMarket")
menu_additem(menu, Menuz, "2")
} else {
formatex(Menuz, charsmax(Menuz), "\dMarket \r[ Kullandiniz ]")
menu_additem(menu, Menuz, "2")
}
if(get_pcvar_num(isyanmenu) == 1) {
formatex(Menuz, charsmax(Menuz), "\wT Shop Menusu")
menu_additem(menu, Menuz, "5")
}
if(get_pcvar_num(transfer) == 1) {
formatex(Menuz, charsmax(Menuz), "\wIsyan Menu")
menu_additem(menu, Menuz, "3")
}
formatex(Menuz, charsmax(Menuz), "\yTL Transfer ^n\wCebinizdeki TL \r[ %i ]",g_jbpacks[id])
menu_additem(menu, Menuz, "4")
formatex(Menuz, charsmax(Menuz), "\yCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_display(id, menu, 0)
}
}
}
public amenu_devam(id,amenu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(amenu)
return PLUGIN_HANDLED
}
new acces, callback, data[6], iname[64]
menu_item_getinfo(amenu, item, acces, data, 5, iname, 63,callback)
if(str_to_num(data) == 1)
{
login_menusu(id)
}
else if(str_to_num(data) == 2)
{
if(engel1[id] == 0) {
Tienda1(id)
} else {
IlkMenu(id)
}
}
else if(str_to_num(data) == 3)
{
isyan_menu(id)
}
else if(str_to_num(data) == 4)
{
transfer_menu(id)
}
else if(str_to_num(data) == 5)
{
Tienda(id)
}
menu_destroy(amenu)
return PLUGIN_HANDLED
}
public qmenu_devam(id,amenu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(amenu)
return PLUGIN_HANDLED
}
new acces, callback, data[6], iname[64]
menu_item_getinfo(amenu, item, acces, data, 5, iname, 63,callback)
if(str_to_num(data) == 1)
{
login_menusu(id)
}
else if(str_to_num(data) == 2)
{
}
else if(str_to_num(data) == 3)
{
transfer_menu(id)
}
menu_destroy(amenu)
return PLUGIN_HANDLED
}
public tlveral(id)
{
if(!is_user_admin(id)) {
return PLUGIN_HANDLED;
}
static opcion[64]
formatex(opcion, charsmax(opcion),"\y[ D'eagLe -hS | JaiLBreaK ] TL Yoneticisi", LANG_PLAYER)
new iMenu = menu_create(opcion, "menu")
formatex(opcion, charsmax(opcion),"\w[ D'eagLe -hS | JaiLBreaK ] TL Ver", LANG_PLAYER)
menu_additem(iMenu, opcion, "1")
formatex(opcion, charsmax(opcion),"\w[ D'eagLe -hS | JaiLBreaK ] TL Al", LANG_PLAYER)
menu_additem(iMenu, opcion, "2")
menu_setprop(iMenu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, iMenu, 0)
return PLUGIN_HANDLED;
}
public menu(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new Data[6], Name[64]
new Access, Callback
menu_item_getinfo(menu, item, Access, Data,5, Name, 63, Callback)
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 JailbreakPacks(id)
{
set_hudmessage(255, 255, 0, -1.0, 0.3, 2, 0.5, 5.0)
show_hudmessage(id, "T Shop Menusune Girmek Icin ( M ) Tusuna Basiniz..")
set_hudmessage(0, 255, 255, 10.9, 0.75, 0, 6.0, 2.5)
ShowSyncHudMsg(id, syncObj," Cebinizdeki TL: [ %i ]", g_jbpacks[id])
}
public kontrol(id) {
if(get_pcvar_num(AcKapa) == 0) {
IlkMenu(id)
} else {
ColorChat(id,GREEN,"%s [ JB MENU ]^3 Kapalidir !",yapimci)
}
return PLUGIN_HANDLED;
}
public kont(id) {
if(get_user_team(id) == 2) {
if(get_user_flags(id) & ADMIN_KICK) {
zombihp[id] = 5000;
insanhp[id] = 150;
zm_menu(id)
}
}
}
public zm_menu(id) {
new hostname[64]
get_cvar_string("hostname",hostname,63)
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\y%s^n\wGelismis Zombi Oyunu",hostname)
menu = menu_create(Menuz, "zm_menu_devam")
formatex(Menuz, charsmax(Menuz), "\wZombi HP Arttir \y[ + ]")
menu_additem(menu, Menuz, "1")
formatex(Menuz, charsmax(Menuz), "\wZombi HP Azalt \r[ - ]")
menu_additem(menu, Menuz, "2")
formatex(Menuz, charsmax(Menuz), "\wHuman HP Arttir \y[ + ]")
menu_additem(menu, Menuz, "3")
formatex(Menuz, charsmax(Menuz), "\wHuman HP Azalt \r[ - ]")
menu_additem(menu, Menuz, "4")
formatex(Menuz, charsmax(Menuz), "\wZombie Game \yBaslat")
menu_additem(menu, Menuz, "5")
formatex(Menuz, charsmax(Menuz), "\wZombie Game \rDurdur^n^n\yZombie HP \r[ %i ] \w- \yHuman HP \r[ %i ]",zombihp[id],insanhp[id])
menu_additem(menu, Menuz, "6")
formatex(Menuz, charsmax(Menuz), "\yCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_display(id, menu, 0)
return PLUGIN_HANDLED;
}
public zm_menu_devam(id, menu, item) {
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_CONTINUE
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
if(zombihp[id] > 4999) {
zombihp[id] += 1000;
}
zm_menu(id);
}
case 2: {
if(zombihp[id] > 5999) {
zombihp[id] -= 1000;
}
zm_menu(id);
}
case 3: {
if(insanhp[id] > 49) {
insanhp[id] += 50;
}
zm_menu(id);
}
case 4: {
if(insanhp[id] > 99) {
insanhp[id] -= 50;
}
zm_menu(id);
}
case 5: {
client_cmd(id,"amx_glow @T red")
client_cmd(id,"amx_glow @CT blue")
client_cmd(id,"amx_unammo @T 1")
set_lights("c")
for(new i = 1; i < 33; i++) {
zombimod[i] = 1;
if(is_user_connected(i) && is_user_alive(i) && get_user_team(i) == 2) {
set_user_health(i,zombihp[id]);
strip_user_weapons(i)
give_item(i,"weapon_knife")
cs_set_user_model(i,"zombi")
message_begin(MSG_ONE, get_user_msgid("Fog"), _, i)
write_byte(90) //kirmizi
write_byte(5) //yesil
write_byte(5) //mavi
write_byte(1)
write_byte(1)
write_byte(95)
write_byte(59)
message_end()
}
if(is_user_connected(i) && is_user_alive(i) && get_user_team(i) == 1) {
set_user_health(i,insanhp[id]);
give_item(i,"weapon_ak47")
give_item(i,"weapon_m4a1")
give_item(i,"weapon_deagle")
give_item(i,"weapon_awp")
give_item(i,"weapon_hegrenade")
give_item(i,"weapon_m249")
cs_set_user_bpammo(i,CSW_AK47,1000)
cs_set_user_bpammo(i,CSW_AWP,1000)
cs_set_user_bpammo(i,CSW_M4A1,1000)
cs_set_user_bpammo(i,CSW_DEAGLE,1000)
cs_set_user_bpammo(i,CSW_M249,1000)
message_begin(MSG_ONE, get_user_msgid("Fog"), _, i)
write_byte(50) //kirmizi
write_byte(75) //yesil
write_byte(50) //mavi
write_byte(1)
write_byte(1)
write_byte(95)
write_byte(59)
message_end()
}
}
}
case 6: {
client_cmd(id,"amx_glow @T OFF")
client_cmd(id,"amx_glow @CT OFF")
client_cmd(id,"amx_unammo @T 0")
set_lights("#OFF")
for(new i = 1; i < 33; i++) {
if(is_user_connected(i) && is_user_alive(i) && get_user_team(i) == 2) {
set_user_health(i,100);
strip_user_weapons(i)
give_item(i,"weapon_knife")
give_item(i,"weapon_ak47")
give_item(i,"weapon_m4a1")
give_item(i,"weapon_deagle")
give_item(i,"weapon_awp")
give_item(i,"weapon_hegrenade")
give_item(i,"weapon_m249")
cs_set_user_bpammo(i,CSW_AK47,90)
cs_set_user_bpammo(i,CSW_AWP,90)
cs_set_user_bpammo(i,CSW_M4A1,90)
cs_set_user_bpammo(i,CSW_DEAGLE,37)
cs_set_user_bpammo(i,CSW_M249,200)
cs_reset_user_model(i)
message_begin(MSG_ONE, get_user_msgid("Fog"), _, i)
write_byte(199)
write_byte(199)
write_byte(199)
write_byte(1)
write_byte(1)
write_byte(1)
write_byte(1)
message_end()
}
if(is_user_connected(i) && is_user_alive(i) && get_user_team(i) == 1) {
set_user_health(i,100);
strip_user_weapons(i)
give_item(i,"weapon_knife")
message_begin(MSG_ONE, get_user_msgid("Fog"), _, i)
write_byte(199)
write_byte(199)
write_byte(199)
write_byte(1)
write_byte(1)
write_byte(1)
write_byte(1)
message_end()
}
zombimod[i] = 0;
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public fw_touch_weapon(id) {
for(new i = 1; i < 33; i++) {
if(is_user_connected(i) && is_user_alive(i) && get_user_team(i) == 2) {
strip_user_weapons(i)
give_item(i, "weapon_knife")
}
}
}
public kontrols(id) {
if(get_user_team(id) == 2) {
if(get_user_flags(id) & ADMIN_KICK) {
tkm_menu(id)
}
}
}
public fw_HamSpawn(id) {
takim[id] = 0;
cs_reset_user_model(id);
}
public galatasaray(id) {
new hedef,vucut;
new isim[32];
get_user_aiming(id,hedef,vucut);
get_user_name(hedef,isim,31);
if(hedef && is_valid_ent(hedef) && hedef!=id) {
takim[hedef] = 1;
cs_set_user_model(hedef,"gs");
tkm_menu(id)
ColorChat(hedef,GREEN,"%s Sizi^3 GalataSaray^4 Takimina Atadilar.",yapimci);
ColorChat(0,GREEN,"%s %s^4 Galatasaray Takimina Atandi.",yapimci2,isim);
} else {
tkm_menu(id)
}
}
public fenerbahce(id) {
new hedef,vucut;
new isim[32];
get_user_aiming(id,hedef,vucut);
get_user_name(hedef,isim,31);
if(hedef && is_valid_ent(hedef) && hedef!=id) {
takim[hedef] = 2;
cs_set_user_model(hedef,"fb");
tkm_menu(id)
ColorChat(hedef,GREEN,"%s Sizi^3 FenerBahce^4 Takimina Atadilar.",yapimci);
ColorChat(0,GREEN,"%s %s^4 FenerBahce Takimina Atandi.",yapimci2,isim);
} else {
tkm_menu(id)
}
}
public besiktas(id) {
new hedef,vucut;
new isim[32];
get_user_aiming(id,hedef,vucut);
get_user_name(hedef,isim,31);
if(hedef && is_valid_ent(hedef) && hedef!=id) {
takim[hedef] = 3;
cs_set_user_model(hedef,"bjk");
ColorChat(hedef,GREEN,"%s Sizi^3 Besiktas^4 Takimina Atadilar.",yapimci);
ColorChat(0,GREEN,"%s %s^4 Besiktas Atandi.",yapimci2,isim);
tkm_menu(id)
} else {
tkm_menu(id)
}
}
public trabzon(id) {
new hedef,vucut;
new isim[32];
get_user_aiming(id,hedef,vucut);
get_user_name(hedef,isim,31);
if(hedef && is_valid_ent(hedef) && hedef!=id) {
takim[hedef] = 4;
cs_set_user_model(hedef,"ag");
ColorChat(hedef,GREEN,"%s Sizi^3 Ankara Gucu^4 Takimina Atadilar.",yapimci);
ColorChat(0,GREEN,"%s %s^4 Ankara Gucu Takimina Atandi.",yapimci2,isim);
tkm_menu(id)
} else {
tkm_menu(id)
}
}
public tkm_menu(id)
{
new hostname[64]
get_cvar_string("hostname",hostname,63)
new isim[32]
get_user_name(id,isim,31)
static Menu[512], satir
satir = 0
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\y%s^n\rJaiL Takimlar Eklentisi^n^n",hostname)
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r1. \y[ GalataSaray ] \rTakimi^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r2. \y[ FenerBahce ] \rTakimi^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r3. \y[ BesikTas ] \rTakimi^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r4. \y[ AnkaraGucu ] \rTakimi^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r5. \y[ Takimi Kapat ]^n^n^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r0.\wCikis")
show_menu(id, MENU_TUSLARI, Menu, -1, "Menu 1")
client_cmd(id,"bind mwheeldown slot4")
return PLUGIN_HANDLED
}
public Oyun_Menusu(id, Tus)
{
switch (Tus)
{
case 0:
{
galatasaray(id)
}
case 1:
{
fenerbahce(id)
}
case 2:
{
besiktas(id)
}
case 3:
{
trabzon(id)
}
case 4:
{
kapat(id)
}
case 9:
{
}
}
return PLUGIN_HANDLED;
}
public kapat(id) {
new hedef,vucut;
new isim[32];
get_user_aiming(id,hedef,vucut);
get_user_name(hedef,isim,31);
if(hedef && is_valid_ent(hedef) && hedef!=id) {
takim[hedef] = 0;
cs_reset_user_model(hedef)
ColorChat(hedef,GREEN,"%s Sizi^3 Takimdan Cikarttilar^4.",yapimci);
ColorChat(0,GREEN,"%s %s^4 Takimdan Cikartildi.",yapimci2,isim);
tkm_menu(id)
} else {
tkm_menu(id)
}
}
public menu_handler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
client_cmd(id,"amx_godmode @CT 1")
client_cmd(id,"amx_heal @CT 5000")
client_cmd(id,"amx_unammo @CT 1")
client_cmd(id,"amx_weapon @CT 43")
}
case 2: {
client_cmd(id,"amx_godmode @CT 1")
client_cmd(id,"amx_heal @CT 5000")
client_cmd(id,"amx_unammo @CT 1")
client_cmd(id,"amx_weapon @CT 43")
client_cmd(id,"amx_cvar mp_friendlyfire 1")
client_cmd(id,"amx_glow @T red")
client_cmd(id,"amx_glow @CT aqua")
}
case 3: {
client_cmd(id,"amx_godmode @CT 1")
client_cmd(id,"amx_heal @CT 5000")
client_cmd(id,"amx_unammo @CT 1")
client_cmd(id,"amx_weapon @CT 43")
client_cmd(id,"amx_cvar mp_friendlyfire 1")
client_cmd(id,"amx_glow @T red")
client_cmd(id,"amx_glow @CT aqua")
client_cmd(id,"amx_heal @T 700")
client_cmd(id,"amx_weapon @T 14")
client_cmd(id,"amx_weapon @T 87")
client_cmd(id,"amx_unammo @T 1")
}
case 4: {
client_cmd(id,"amx_godmode @CT 1")
client_cmd(id,"amx_heal @CT 5000")
client_cmd(id,"amx_unammo @CT 1")
client_cmd(id,"amx_weapon @CT 43")
client_cmd(id,"amx_cvar mp_friendlyfire 1")
client_cmd(id,"amx_glow @T red")
client_cmd(id,"amx_glow @CT aqua")
client_cmd(id,"amx_heal @T 700")
client_cmd(id,"amx_weapon @T 43")
client_cmd(id,"amx_weapon @T 42")
client_cmd(id,"amx_unammo @T 1")
}
case 5: {
client_cmd(id,"amx_godmode @CT 1")
client_cmd(id,"amx_heal @CT 5000")
client_cmd(id,"amx_unammo @CT 1")
client_cmd(id,"amx_weapon @CT 43")
client_cmd(id,"amx_bury @T")
client_cmd(id,"amx_weapon @T c4")
}
case 6: {
Menu(id)
}
case 7: {
client_cmd(id,"amx_godmode @CT 1")
client_cmd(id,"amx_heal @CT 5000")
client_cmd(id,"amx_fire @CT 1")
client_cmd(id,"amx_cvar sv_gravity 400")
}
case 8: {
glowmenu(id)
}
case 9: {
tkm_menu(id)
}
case 10: {
konts(id);
}
case 11: {
client_cmd(id,"amx_cvar sv_gravity 800")
client_cmd(id,"amx_godmode @ALL 0")
client_cmd(id,"amx_unammo @ALL 0")
client_cmd(id,"amx_glow @ALL off")
client_cmd(id,"amx_unbury @ALL")
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public birdakika(id) {
set_task(1.0,"birdakika",0+task)
zaman--
if(zaman == 0) {
client_cmd(id,"amx_bury @T")
client_cmd(id,"amx_speed @CT 1")
remove_task(0+task)
}
}
public birbesdakika(id) {
set_task(1.5,"birbesdakika",0+task)
zaman2--
if(zaman2 == 0) {
client_cmd(id,"amx_bury @T")
client_cmd(id,"amx_speed @CT 1")
remove_task(0+task)
remove_task(0+task)
}
}
public ikidakika(id) {
set_task(2.0,"ikidakika",0+task)
zaman3--
if(zaman3 == 0) {
client_cmd(id,"amx_bury @T")
client_cmd(id,"amx_speed @CT 1")
remove_task(0+task)
}
}
public ikibesdakika(id) {
set_task(2.5,"ikibesdakika",0+task)
zaman4--
if(zaman4 == 0) {
client_cmd(id,"amx_bury @T")
client_cmd(id,"amx_speed @CT 1")
remove_task(0+task)
}
}
public Menu(id) {
if(get_user_flags(id) & ADMIN_KICK)
{
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\yOtomatik Saklanbac Oyunu")
menu = menu_create(Menuz, "Menu_Devam")
formatex(Menuz, charsmax(Menuz), "\w1 Dakika Sure")
menu_additem(menu, Menuz, "1")
formatex(Menuz, charsmax(Menuz), "\w1.5 Dakika Sure")
menu_additem(menu, Menuz, "2")
formatex(Menuz, charsmax(Menuz), "\w2 Dakika Sure")
menu_additem(menu, Menuz, "3")
formatex(Menuz, charsmax(Menuz), "\w2.5 Dakika Sure")
menu_additem(menu, Menuz, "4")
formatex(Menuz, charsmax(Menuz), "\yCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_display(id, menu, 0)
}
return PLUGIN_HANDLED;
}
public Menu_Devam(id, menu, item) {
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_CONTINUE
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1:
{
server_cmd("amx_godmode @CT 1")
server_cmd("amx_heal @CT 1000")
birdakika(id)
}
case 2:
{
server_cmd("amx_godmode @CT 1")
server_cmd("amx_heal @CT 1000")
birbesdakika(id)
}
case 3:
{
server_cmd("amx_godmode @CT 1")
server_cmd("amx_heal @CT 1000")
ikidakika(id)
}
case 4:
{
server_cmd("amx_godmode @CT 1")
server_cmd("amx_heal @CT 1000")
ikibesdakika(id)
}
}
return PLUGIN_HANDLED
}
public isyan_menu(id) {
new hostname[64]
get_cvar_string("hostname",hostname,63)
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\y%s^n\w[ D'eagLe -hS | JaiLBreaK ]",hostname)
menu = menu_create(Menuz, "isyan_menu_devam")
formatex(Menuz, charsmax(Menuz), "\w+100 HP \y[ %d TL ]",get_pcvar_num(hp))
menu_additem(menu, Menuz, "1")
formatex(Menuz, charsmax(Menuz), "\wYuksek Ziplama \y[ %d TL ]",get_pcvar_num(gravity))
menu_additem(menu, Menuz, "2")
formatex(Menuz, charsmax(Menuz), "\w3 Adet El Bombasi \y[ %d TL ]",get_pcvar_num(hgs))
menu_additem(menu, Menuz, "3")
formatex(Menuz, charsmax(Menuz), "\w12 Mermili USP \y[ %d TL ]",get_pcvar_num(usp))
menu_additem(menu, Menuz, "4")
formatex(Menuz, charsmax(Menuz), "\w30 Mermili M4A1 \y[ %d TL ]",get_pcvar_num(m4a1))
menu_additem(menu, Menuz, "5")
formatex(Menuz, charsmax(Menuz), "\wDeprem Baslat \y[ %d TL ]",get_pcvar_num(deprem))
menu_additem(menu, Menuz, "6")
formatex(Menuz, charsmax(Menuz), "\wElektrikleri Kes \y[ %d TL ]",get_pcvar_num(elektrik))
menu_additem(menu, Menuz, "7")
formatex(Menuz, charsmax(Menuz), "\yCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_display(id, menu, 0)
return PLUGIN_HANDLED;
}
public isyan_menu_devam(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_CONTINUE
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1:
{
if(jb_get_user_packs(id) >= get_pcvar_num(hp)){
jb_set_user_packs(id, jb_get_user_packs(id) - get_pcvar_num(hp))
set_user_health(id, get_user_health(id) + 100)
ColorChat(id, BLUE, "^3[ D'eagLe -hS | JaiLBreaK ]^4 Isyan Menuden^3 [ %d TL ]^4 Karsiliginda^3 [ +100 HP ]^4 Satin Aldiniz.",get_pcvar_num(hp))
}
}
case 2:
{
if(jb_get_user_packs(id) >= get_pcvar_num(gravity)) {
jb_set_user_packs(id, jb_get_user_packs(id) - get_pcvar_num(gravity))
set_user_gravity(id,0.5 )
ColorChat(id, BLUE, "^3[ D'eagLe -hS | JaiLBreaK ]^4 Isyan Menuden^3 [ %d TL ]^4 Karsiliginda^3 [ Yuksek Ziplama ]^4 Satin Aldiniz.",get_pcvar_num(gravity))
}
}
case 3: {
if(jb_get_user_packs(id) >= get_pcvar_num(hgs)) {
jb_set_user_packs(id, jb_get_user_packs(id) - get_pcvar_num(hgs))
cs_set_user_bpammo(id,CSW_HEGRENADE,3 )
give_item(id,"weapon_hegrenade")
give_item(id,"weapon_hegrenade")
give_item(id,"weapon_hegrenade")
ColorChat(id, BLUE, "^3[ D'eagLe -hS | JaiLBreaK ]^4 Isyan Menuden^3 [ %d TL ]^4 Karsiliginda^3 [ 3 Adet HG ]^4 Satin Aldiniz.",get_pcvar_num(hgs))
}
}
case 4: {
if(jb_get_user_packs(id) >=get_pcvar_num(usp)) {
jb_set_user_packs(id, jb_get_user_packs(id) - get_pcvar_num(usp))
cs_set_user_bpammo(id,CSW_USP,0 )
give_item(id,"weapon_usp")
ColorChat(id, BLUE, "^3[ D'eagLe -hS | JaiLBreaK ]^4 Isyan Menuden^3 [ %d TL ]^4 Karsiliginda^3 [ USP ]^4 Satin Aldiniz.",get_pcvar_num(usp))
}
}
case 5: {
if(jb_get_user_packs(id) >=get_pcvar_num(m4a1)) {
jb_set_user_packs(id, jb_get_user_packs(id) - get_pcvar_num(m4a1))
give_item(id,"weapon_m4a1")
ColorChat(id, BLUE, "^3[ D'eagLe -hS | JaiLBreaK ]^4 Isyan Menuden^3 [ %d TL ]^4 Karsiliginda^3 [ M4A1 ]^4 Satin Aldiniz.",get_pcvar_num(m4a1))
}
}
case 6: {
if(jb_get_user_packs(id) >= get_pcvar_num(deprem)){
new name[32]
jb_set_user_packs(id,jb_get_user_packs(id) - get_pcvar_num(deprem))
get_user_name(id,name,31)
ColorChat(0,GREEN,"^3[ D'eagLe -hS | JaiLBreaK ]^4 [ %s ]^3 Nickli Oyuncu^4 Deprem Baslatti !",name)
set_task(0.2,"Sarsinti",4701,"",0,"b")
set_task(6.0,"DepremiBitir",4702)
}
}
case 7: {
if(jb_get_user_packs(id) >= get_pcvar_num(elektrik)) {
jb_set_user_packs(id,jb_get_user_packs(id) - get_pcvar_num(elektrik))
set_lights("a")
new name[32];
get_user_name(id,name,31)
set_task(5.0,"elektrikAc",3000)
ColorChat(0,GREEN,"^3[ D'eagLe -hS | JaiLBreaK ]^4 [ %s ]^3 Nickli Oyuncu^4 Eklektrikleri Kesti !",name)
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public Sarsinti(TaskID) {
for(new id = 1; id < 33; id++) {
if(is_user_connected(id) && is_user_alive(id)) {
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenShake"), {0,0,0}, id)
write_short(0xFFFF)
write_short(1<<13)
write_short(0xFFFF)
message_end()
}
}
}
public DepremiBitir(TaskID) {
remove_task(4701)
remove_task(TaskID)
}
public elektrikAc(taskid) {
set_lights("#OFF")
remove_task(taskid)
}
public glowmenu(id)
{
if(!is_user_connected(id) || !is_user_alive(id)) {
if(!(get_user_flags(id) == ADMIN_LEVEL_C))
return PLUGIN_HANDLED
}
new menu = menu_create("\yGlow Menu", "menu_handlers");
menu_additem(menu, "\w[ Kirmizi ] Renk", "1",ADMIN_KICK);
menu_additem(menu, "\w[ Mavi ] Renk", "2",ADMIN_KICK );
menu_additem(menu, "\w[ Yesil ] Renk", "3",ADMIN_KICK);
menu_additem(menu, "\w[ Pembe ] Renk", "4",ADMIN_KICK);
menu_additem(menu, "\w[ Aqua ] Renk", "5",ADMIN_KICK);
menu_additem(menu, "\w[ Sari ] Renk", "6",ADMIN_KICK);
menu_additem(menu, "\w[ Glowu Sil ]", "7",ADMIN_KICK);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_HANDLED
}
public menu_handlers(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], szName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);
switch(key)
{
case 1:
{
new name[32],hedefisim[32],hedef,vucut
get_user_name(id,name,31)
get_user_aiming(id,hedef,vucut)
get_user_name(hedef,hedefisim,31)
if(hedef && is_valid_ent(hedef) && hedef!=id)
{
if(is_user_alive(hedef))
{
set_user_rendering(hedef,kRenderFxGlowShell,255,0,0,kRenderNormal,0)
ColorChat(0,GREEN,"[ D'eagLe -hS | JaiLBreaK ] %s Nickli Admin %s Nickli Oyuncuya Kirmizi Glow Verdi.",name,hedefisim)
}
}
else if(entity_get_int(hedef,EV_INT_solid)!=4)
{
}
glowmenu(id)
}
case 2:
{
new name[32],hedefisim[32],hedef,vucut
get_user_name(id,name,31)
get_user_aiming(id,hedef,vucut)
get_user_name(hedef,hedefisim,31)
if(hedef && is_valid_ent(hedef) && hedef!=id)
{
if(is_user_alive(hedef))
{
set_user_rendering(hedef,kRenderFxGlowShell,0,0,255,kRenderNormal,0)
ColorChat(0,GREEN,"[ D'eagLe -hS | JaiLBreaK ] %s Nickli Admin %s Nickli Oyuncuya Mavi Glow Verdi.",name,hedefisim)
}
}
else if(entity_get_int(hedef,EV_INT_solid)!=4)
{
}
glowmenu(id)
}
case 3:
{
new name[32],hedefisim[32],hedef,vucut
get_user_name(id,name,31)
get_user_aiming(id,hedef,vucut)
get_user_name(hedef,hedefisim,31)
if(hedef && is_valid_ent(hedef) && hedef!=id)
{
if(is_user_alive(hedef))
{
set_user_rendering(hedef,kRenderFxGlowShell,0,255,0,kRenderNormal,0)
ColorChat(0,GREEN,"[ D'eagLe -hS | JaiLBreaK ] %s Nickli Admin %s Nickli Oyuncuya Yesil Glow Verdi.",name,hedefisim)
}
}
else if(entity_get_int(hedef,EV_INT_solid)!=4)
{
}
glowmenu(id)
}
case 4:
{
new name[32],hedefisim[32],hedef,vucut
get_user_name(id,name,31)
get_user_aiming(id,hedef,vucut)
get_user_name(hedef,hedefisim,31)
if(hedef && is_valid_ent(hedef) && hedef!=id)
{
if(is_user_alive(hedef))
{
set_user_rendering(hedef,kRenderFxGlowShell,255,162,254,kRenderNormal,0)
ColorChat(0,GREEN,"[ D'eagLe -hS | JaiLBreaK ] %s Nickli Admin %s Nickli Oyuncuya Pempe Glow Verdi.",name,hedefisim)
}
}
else if(entity_get_int(hedef,EV_INT_solid)!=4)
{
}
glowmenu(id)
}
case 5:
{
new name[32],hedefisim[32],hedef,vucut
get_user_name(id,name,31)
get_user_aiming(id,hedef,vucut)
get_user_name(hedef,hedefisim,31)
if(hedef && is_valid_ent(hedef) && hedef!=id)
{
if(is_user_alive(hedef))
{
set_user_rendering(hedef,kRenderFxGlowShell,0, 150, 255,kRenderNormal,0)
ColorChat(0,GREEN,"[ D'eagLe -hS | JaiLBreaK ] %s Nickli Admin %s Nickli Oyuncuya Aqua Glow Verdi.",name,hedefisim)
}
}
else if(entity_get_int(hedef,EV_INT_solid)!=4)
{
}
glowmenu(id)
}
case 6:
{
new name[32],hedefisim[32],hedef,vucut
get_user_name(id,name,31)
get_user_aiming(id,hedef,vucut)
get_user_name(hedef,hedefisim,31)
if(hedef && is_valid_ent(hedef) && hedef!=id)
{
if(is_user_alive(hedef))
{
set_user_rendering(hedef,kRenderFxGlowShell,255,255,0,kRenderNormal,0)
ColorChat(0,GREEN,"[ D'eagLe -hS | JaiLBreaK ] %s Nickli Admin %s Nickli Oyuncuya Sari Glow Verdi.",name,hedefisim)
}
}
else if(entity_get_int(hedef,EV_INT_solid)!=4)
{
}
glowmenu(id)
}
case 7:
{
new name[32],hedefisim[32],hedef,vucut
get_user_name(id,name,31)
get_user_aiming(id,hedef,vucut)
get_user_name(hedef,hedefisim,31)
if(hedef && is_valid_ent(hedef) && hedef!=id)
{
if(is_user_alive(hedef))
{
set_user_rendering(hedef,kRenderFxGlowShell,0,0,0,kRenderNormal,0)
ColorChat(0,RED,"[ D'eagLe -hS | JaiLBreaK ] %s Nickli Admin %s Nickli Oyuncunun Glowunu Kapadi",name,hedefisim)
glowmenu(id)
}
}
else if(entity_get_int(hedef,EV_INT_solid)!=4)
{
}
glowmenu(id)
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public revive(id) {
strip_user_weapons(id)
give_item(id,"weapon_knife")
}
public transfer_menu(id) {
if( !is_user_alive(id) ) return PLUGIN_HANDLED
new menu = menu_create("\yJB Transfer", "transfer_case")
menu_additem(menu, "\y10 \rTL", "1", 0);
menu_additem(menu, "\y20 \rTL", "2", 0);
menu_additem(menu, "\y30 \rTL", "3", 0);
menu_additem(menu, "\y40 \rTL", "4", 0);
menu_additem(menu, "\y50 \rTL", "5", 0);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_HANDLED
}
public transfer_case(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
ananzaaxd[id] = 10;
OyuncuSec(id)
}
case 2: {
ananzaaxd[id] = 20;
OyuncuSec(id)
}
case 3: {
ananzaaxd[id] = 30;
OyuncuSec(id)
}
case 4: {
ananzaaxd[id] = 40;
OyuncuSec(id)
}
case 5: {
ananzaaxd[id] = 50;
OyuncuSec(id)
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public OyuncuSec(id)
{
new ad[32],sznum[6]
new menu = menu_create("OYUNCU SECIN","OyuncuHand")
for(new i = 1;i<=get_maxplayers();i++)
if(is_user_connected(i))
{
num_to_str(i,sznum,5)
get_user_name(i,ad,31)
menu_additem(menu,ad,sznum)
}
menu_display(id,menu)
return PLUGIN_HANDLED
}
public OyuncuHand(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new ad[32],callback,access,data[6]
menu_item_getinfo(menu,item,access,data,5,ad,31,callback)
new name[32];
get_user_name(id,name,31)
new tid = str_to_num(data)
get_user_name(tid,ad,31)
if(ananzaaxd[id] == 10)
{
if(jb_get_user_packs(id) >= 10) {
jb_set_user_packs(id, jb_get_user_packs(id) - 10)
jb_set_user_packs(tid, jb_get_user_packs(tid) + 10)
ColorChat(id,BLUE,"%s %s Kisiye 10 TL TRANSFER ETTINIZ.",yapimci,ad)
ColorChat(tid,BLUE,"%s %s Kisi Size 10 TL TRANSFER ETTI.",yapimci,name)
ananzaaxd[id] = 0
}
else {
ColorChat(id,RED,"%s 10 TL'Niz Bulunmamaktadir.",yapimci)
ananzaaxd[id] = 0
}
}
if(ananzaaxd[id] == 20)
{
if(jb_get_user_packs(id) >= 20) {
jb_set_user_packs(id, jb_get_user_packs(id) - 20 )
jb_set_user_packs(tid, jb_get_user_packs(tid) + 20 )
ColorChat(id,BLUE,"%s %s Kisiye 20 TL TRANSFER ETTINIZ.",yapimci,ad)
ColorChat(tid,BLUE,"%s %s Kisi Size 20 TL TRANSFER ETTI.",yapimci,name)
ananzaaxd[id] = 0
}
else {
ColorChat(id,RED,"%s 20 TL'Niz Bulunmamaktadir.",yapimci)
ananzaaxd[id] = 0
}
}
///
if(ananzaaxd[id] == 30)
{
if(jb_get_user_packs(id) >= 30) {
jb_set_user_packs(id, jb_get_user_packs(id) - 30)
jb_set_user_packs(tid, jb_get_user_packs(tid) + 30)
ColorChat(id,BLUE,"%s %s Kisiye 30 TL TRANSFER ETTINIZ.",yapimci,ad)
ColorChat(tid,BLUE,"%s %s Kisi Size 30 TL TRANSFER ETTI.",yapimci,name)
ananzaaxd[id] = 0
}
else {
ColorChat(id,RED,"%s 30 TL'Niz Bulunmamaktadir.",yapimci)
ananzaaxd[id] = 0
}
}
if(ananzaaxd[id] == 40 )
{
if(jb_get_user_packs(id) >= 40) {
jb_set_user_packs(id, jb_get_user_packs(id) - 40)
jb_set_user_packs(tid, jb_get_user_packs(tid) + 40)
ColorChat(id,BLUE,"%s %s Kisiye 50 TL TRANSFER ETTINIZ.",yapimci,ad)
ColorChat(tid,BLUE,"%s %s Kisi Size 50 TL TRANSFER ETTI.",yapimci,name)
ananzaaxd[id] = 0
}
else {
ColorChat(id,RED,"%s 40 TL'Niz Bulunmamaktadir.",yapimci)
ananzaaxd[id] = 0
}
}
if(ananzaaxd[id] == 50)
{
if(jb_get_user_packs(id) >= 50) {
jb_set_user_packs(id, jb_get_user_packs(id) - 50)
jb_set_user_packs(tid, jb_get_user_packs(tid) + 50)
ColorChat(id,BLUE,"%s %s Kisiye 50 TL TRANSFER ETTINIZ.",yapimci,ad)
ColorChat(tid,BLUE,"%s %s Kisi Size 50 TL TRANSFER ETTI.",yapimci,name)
ananzaaxd[id] = 0
}
else {
ColorChat(id,RED,"%s 50 TL'Niz Bulunmamaktadir.",yapimci)
ananzaaxd[id] = 0
}
}
return PLUGIN_HANDLED
}
public login_menusu(id)
{
if(!is_user_connected(id) || !is_user_alive(id)) return PLUGIN_HANDLED
new banka_ismi[128],map_name[128]
get_mapname(map_name,127)
replace_all(map_name,127,"zm_","")
replace_all(map_name,127,"de_","")
replace_all(map_name,127,"cs_","")
replace_all(map_name,127,"fy_","")
replace_all(map_name,127,"jail_","")
replace_all(map_name,127,"some1s_","")
formatex(banka_ismi,127,"\r%s \wSehir Bankasi",map_name)
new menu = menu_create(banka_ismi,"login_devam")
if(equal(username[id],""))
{
menu_additem(menu,"Giris Yap","1",0)
menu_additem(menu,"Kayit Ol","2",0)
}
else
{
menu_additem(menu,"Para Yatir","3",0)
menu_additem(menu,"Para Cek","4",0)
menu_additem(menu,"Hesap Durumu","6",0)
menu_additem(menu,"Cikis Yap","5",0)
}
if(get_user_flags(id) & ADMIN_BAN)
{
menu_additem(menu,"Oyuncularin Hesaplarina Bak","7",ADMIN_BAN)
}
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
return PLUGIN_HANDLED
}
public login_devam(id,menu,item)
{
if(!is_user_connected(id) || !is_user_alive(id)) return PLUGIN_HANDLED
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new acces,data2[24],iname[64],callback,data
menu_item_getinfo(menu,item,acces,data2,23,iname,63,callback)
data = str_to_num(data2)
switch(data)
{
case 1:
{
client_cmd(id,"messagemode Hesap_Ismi")
}
case 2:
{
client_cmd(id,"messagemode Hesap_Ismi_Secin")
}
case 3:
{
client_cmd(id,"messagemode Vereceginiz_Miktar")
}
case 4:
{
client_cmd(id,"messagemode Alacaginiz_Miktar")
}
case 5:
{
copy(username[id],199,"")
copy(password[id],199,"")
client_print(id,print_center,"Cikis yaptiniz..")
}
case 6:
{
set_hudmessage(255, 255, 255, 0.29, 0.30, 0, 6.0, 5.0,_,_,-1)
show_hudmessage(id, "Hesabinizdaki Miktar : ^n %d TL",get_hesap_ammo(username[id]))
}
case 7:
{
if((get_user_flags(id) & ADMIN_BAN))
{
new message[899],len;
len = formatex(message,898,"<body bgcolor=black><b>");
for(new i = 1; i < 33; i++)
{
if(is_user_connected(i))
{
new iName[64]
get_user_name(i,iName,63)
if(!equal(username[i],""))
{
len += formatex(message[len],898-len,"<font color=red>%s</font><font color=white> (Uzerinde %d TL) - Hesapta= %d TL<br></font>",iName,jb_get_user_packs(i),get_hesap_ammo(username[i]))
}
else
{
len += formatex(message[len],898-len,"<font color=red>%s</font><font color=white> (Uzerinde %d TL)",iName,jb_get_user_packs(i));
}
}
}
show_motd(id,message," - Admin Takip Paneli - ");
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public Giris_ID(id)
{
new say[300]
read_args(say, charsmax(say))
remove_quotes(say)
if(equal(say, "") || !equal(username[id],"") || strlen(say) > 12)
{
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
return PLUGIN_HANDLED
}
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
copy(g_username[id],199,say)
client_cmd(id,"messagemode Sifreniz")
return PLUGIN_CONTINUE
}
public Giris_Pw(id)
{
new say[300]
read_args(say, charsmax(say))
remove_quotes(say)
if(equal(say, "") || !equal(username[id],"") || equal(g_username[id],"") || strlen(say) > 12)
{
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
return PLUGIN_HANDLED
}
copy(g_password[id],199,say)
giris_yap(id,g_username[id], g_password[id])
copy(g_password[id],199,"")
copy(g_username[id],199,"")
copy(k_password[id],199,"")
copy(k_username[id],199,"")
return PLUGIN_CONTINUE
}
/////////////////////////
////#Kayit Islemleri#////
/////////////////////////
public Kayit_ID(id)
{
new say[300]
read_args(say, charsmax(say))
remove_quotes(say)
if(equal(say, "") || !equal(username[id],"") || strlen(say) > 12)
{
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
return PLUGIN_HANDLED
}
copy(k_password[id],199,"")
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,say)
client_cmd(id,"messagemode Sifre_Secin")
return PLUGIN_CONTINUE
}
public Kayit_Pw(id)
{
new say[300]
read_args(say, charsmax(say))
remove_quotes(say)
if(equal(say, "") || !equal(username[id],"") || equal(k_username[id],"") || strlen(say) > 12)
{
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
return PLUGIN_HANDLED
}
copy(k_password[id],199,say)
kayit_yap(id,k_username[id], k_password[id])
copy(g_password[id],199,"")
copy(g_username[id],199,"")
copy(k_password[id],199,"")
copy(k_username[id],199,"")
return PLUGIN_CONTINUE
}
///////////////////////////
///////////////////////////
public giris_yap(id,userid[],psw[])
{
if(!is_user_connected(id) || equal(userid,"") || equal(psw,"") || !equal(username[id],""))
return PLUGIN_HANDLED
new getPw[32], IDFormat[64]
formatex(IDFormat,63,"%s-ID",userid)
nvault_get(anavault,IDFormat,getPw,31)
if(equali(psw,getPw))
{
copy(username[id],199,userid)
copy(password[id],199,psw)
client_print(id,print_chat,"Hesabiniza basariyla giris yapildi. Su anda %d TL depoluyorsunuz!",get_hesap_ammo(userid))
}
else
{
client_print(id,print_center,"Yanlis hesap ismi veya sifre !")
}
return PLUGIN_HANDLED
}
public kayit_yap(id,userid[],psw[])
{
if(!is_user_connected(id) || equal(userid,"") || equal(psw,"") || !equal(username[id],""))
return PLUGIN_HANDLED
new getPw[32], IDFormat[64]
formatex(IDFormat,63,"%s-ID",userid)
nvault_get(anavault,IDFormat,getPw,31)
if(equali(getPw,""))
{
copy(username[id],199,userid)
copy(password[id],199,psw)
new ammoKey[64], hesapKey[64]
formatex(hesapKey,63,"%s-ID",userid)
formatex(ammoKey,63,"%s-TL",userid)
nvault_set(anavault,hesapKey,psw)
nvault_set(anavault,ammoKey,"0")
client_print(id,print_chat,"Hesabinizi kaydettik.Islemler icin ^"/banka^" yazin..")
client_print(id,print_chat,"Hesap adi = %s Sifreniz = %s",userid,psw)
}
else
{
client_print(id,print_center,"Bu hesap zaten kayitlarda var..")
}
return PLUGIN_HANDLED
}
public Ammo_Yatir(id)
{
new say[300]
read_args(say, charsmax(say))
remove_quotes(say)
if(!is_str_num(say) || equal(say, "") || equal(username[id],"") || strlen(say) > 12)
return PLUGIN_HANDLED
if(jb_get_user_packs(id) < str_to_num(say) + get_pcvar_num(g_IslemUcreti))
{
client_print(id,print_center,"O kadar paran var mi ? ( Islem ucreti = %d TL )",get_pcvar_num(g_IslemUcreti))
return PLUGIN_HANDLED
}
jb_set_user_packs(id,jb_get_user_packs(id) - (str_to_num(say) + get_pcvar_num(g_IslemUcreti)))
set_hesap_ammo(username[id],get_hesap_ammo(username[id]) + str_to_num(say))
client_print(id,print_center,"Hesabiniza %d TL transfer edildi..",str_to_num(say))
return PLUGIN_HANDLED
}
public Ammo_Cek(id)
{
new say[300]
read_args(say, charsmax(say))
remove_quotes(say)
if(!is_str_num(say) || equal(say, "") || equal(username[id],"") || strlen(say) > 12)
return PLUGIN_HANDLED
if(get_hesap_ammo(username[id]) < str_to_num(say))
{
client_print(id,print_center,"Hesabinizda yeterli para yok..!")
return PLUGIN_HANDLED
}
jb_set_user_packs(id,jb_get_user_packs(id) + str_to_num(say))
set_hesap_ammo(username[id],get_hesap_ammo(username[id]) - str_to_num(say))
client_print(id,print_center,"Hesabinizdan %d TL cektiniz..",str_to_num(say))
return PLUGIN_HANDLED
}
public get_hesap_ammo(userid[])
{
new gData[64], gAmmoKey[64]
formatex(gAmmoKey,63,"%s-TL",userid)
nvault_get(anavault,gAmmoKey,gData,63)
return str_to_num(gData)
}
public set_hesap_ammo(userid[],miktar)
{
new gAmmoKey[64], miktar2[128]
num_to_str(miktar,miktar2,127)
formatex(gAmmoKey,63,"%s-TL",userid)
nvault_set(anavault,gAmmoKey,miktar2)
return 1
}
public konts(id) {
if(get_user_team(id) == 2) {
if(get_user_flags(id) & ADMIN_KICK) {
zombihp[id] = 5000;
insanhp[id] = 150;
zm_menu(id)
}
}
}