Notes
Notes - notes.io |
#include < amxmisc >
#include < hamsandwich >
#include < cstrike >
#include < fakemeta >
#include < fun >
#include < engine >
#include < jail >
#define PLUGIN "Mariachi 2017 Jbmenu"
#define VERSION "v.3"
#define AUTHOR "Mariachi"
#define charsmax(%1) (sizeof(%1)-1)
#define is_valid_player(%1) (1 <= %1 <= 32)
#define MAXJB 21
#define TAG "Amazon"
// Yetkili Menu Giris Icin Gereken Yetkiler
#define SLOT_MENUU ADMIN_RESERVATION
#define ADMIN_MENUU ADMIN_KICK
#define YONETICI_MENUU ADMIN_RCON
new
precio1, precio2, precioC1, precioC2, precioC3, precio6, g_m4a1,hp,hasar,
g_glock,kacziplasin,syncObj,hasar_miktar,gorev_odul1,gorev_odul2,gorev_odul3,gorev_odul4,
gorev_odul5,gorev_odul6,godmode,gorunmezlik,kiyafet,noclip,g_bomberman[33],CTDefaultDano,
TDefaultDano, PaloDano, MotocierraDano,hTDefaultDano, hCTDefaultDano, hPaloDano, isyanteam,
g_killjp, g_killhsjp, g_startjp,jumpnum[33],g_bonus[33],g_yuksek[33],hasar_azalt[33],Ronda[33],
g_zipla[33],g_kanverdim[33],Speed[33],g_round[33],g_bombaa[33],TCuchillo[33],CTCuchillo[33],
Destapador[33],Motocierra[33],g_jbpacks[33],quitar[33],ananzaaxd[33],regalar[33],gidPlayer[33],
ts3baglan[33],karambit[33],karambitDano,awp_sinow_hasar,Awp_sinow[33],g_maxplayers
enum _: ENGEL {
MARKET,
DOLAR,
YETKILI
}
new g_ENGEL[ 33 ][ ENGEL ]
/*============================================================
Weapon Model's
============================================================*/
new VIEW_MODELT[] = { "models/Mariachi/v_yumruk.mdl" }
new PLAYER_MODELT[] = { "models/Mariachi/p_yumruk.mdl" }
new VIEW_MODELCT[] = "models/[Shop]JailBreak/Electro/Electro.mdl"
new PLAYER_MODELCT[] = "models/[Shop]JailBreak/Electro/Electro2.mdl"
new VIEW_Palo[] = "models/Mariachi/v_knife_kelebek.mdl"
new PLAYER_Palo[] = "models/p_knife.mdl"
new VIEW_Karambit[] = "models/Mariachi/v_knife_karambit.mdl"
new PLAYER_Karambit[] = "models/Mariachi/p_knife_karambit.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"
new const V_awp[] = "models/v_awp_asimov.mdl"; // Asiinow AWP Modeli
new const P_awp[] = "models/p_awp_asimov.mdl"; // Asiinow AWP Modeli
/*============================================================
Weapon Sound's
============================================================*/
new const palo_deploy[] = { "[Shop]JailBreak/Machete/MConvoca.wav" }
new const palo_slash1[] = { "[Shop]JailBreak/Machete/MSlash1.wav" }
new const palo_slash2[] = { "[Shop]JailBreak/Machete/MSlash2.wav" }
new const palo_wall[] = { "[Shop]JailBreak/Machete/MHitWall.wav" }
new const palo_hit1[] = { "[Shop]JailBreak/Machete/MHit1.wav" }
new const palo_hit2[] = { "[Shop]JailBreak/Machete/MHit2.wav" }
new const palo_hit3[] = { "[Shop]JailBreak/Machete/MHit3.wav" }
new const palo_hit4[] = { "[Shop]JailBreak/Machete/MHit4.wav" }
new const palo_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 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_hasar[33]
new bool:dojump[33]
//Gorevler
new
gorev1[33],
gorev2[33],
gorev3[33],
gorev4[33],
gorev5[33],
gorev6[33],
gardiyan_oldur[33],
jb_harca[33],
mahkum_oldur[33],
esya_al[33],
g_gardiyan[33],
g_cek[33],
g_reklam[33],
g_survive[33];
new bool:sarsiliyor = false
new g_iMsgScreenFade
new found[10]
//Meslekler
new
select_meslek[33],
meslek[33];
new isyan_shop_elektrik,isyan_shop_deprem,isyan_shop_ctdisarm,isyan_shop_ctgom,isyan_shop_ctflash,isyan_shop_hucreac,isyan_shop_ctisinla
/*============================================================
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(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /jbmenu","anamenu")
register_clcmd("nightvision","anamenu")
register_clcmd("say_team /jbmenu","anamenu")
register_clcmd("say /reset","reset")
register_clcmd("say /rs","reset")
register_clcmd("say /mg", "kontrol")
register_clcmd("say_team /mg", "kontrol")
register_clcmd("JbPacks", "player")
register_logevent("logevent_round_end", 2, "1=Round_End")
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1)
RegisterHam(Ham_TakeDamage, "player", "FwdTakeDamage", 0)
RegisterHam(Ham_TakeDamage, "player", "OnCBasePlayer_TakeDamage")
RegisterHam(Ham_TakeDamage, "player", "Awp_asinow_damage", 0);
RegisterHam(Ham_Killed, "player", "fw_player_killed")
register_event("CurWeapon", "HookCurWeapon", "be", "1=1")
register_event( "DeathMsg" , "olunce" , "a" )
register_event("HLTV", "elbasi", "a", "1=0", "2=0")
register_event("CurWeapon", "Event_Change_Weapon", "be", "1=1")
register_forward(FM_SetModel, "fw_SetModel")
register_forward(FM_EmitSound, "Fwd_EmitSound")
g_iMsgScreenFade = get_user_msgid("ScreenFade")
g_maxplayers = get_maxplayers();
/*============================================================
Cvar's
============================================================*/
g_killjp = register_cvar("jb_killJP", "2");
g_killhsjp = register_cvar("jb_bonushsJP", "2");
g_startjp = register_cvar("jb_startJP", "3");
kacziplasin = register_cvar("amx_maxjumps","1")
/*============================================================
Cephane Menu Fiyat Cvar :
============================================================*/
precio1 = register_cvar("jb_pFlash", "7")
precio2 = register_cvar("jb_pHe", "6")
precio6 = register_cvar("jb_pYuksek", "40")
g_glock = register_cvar("jb_glock", "50")
g_m4a1 = register_cvar("jb_m4a1", "100")
awp_sinow_hasar = register_cvar("awp_sinov_hasar","600")
/*============================================================
Market Fiyat & Hasar Cvar :
============================================================*/
precioC1 = register_cvar("jb_pKnife1", "-1")
precioC2 = register_cvar("jb_pKnife2", "10")
precioC3 = register_cvar("jb_pKnife3", "30")
TDefaultDano = register_cvar("jb_dKnifeT", "10")
CTDefaultDano = register_cvar("jb_dKnifeCT", "50")
PaloDano = register_cvar("jb_bicak_hasar_1", "10")
karambitDano = register_cvar("jb_bicak_hasar_2", "25")
MotocierraDano = register_cvar("jb_bicak_hasar_3", "200")
hTDefaultDano = register_cvar("jb_dHsKnifeT", "30")
hCTDefaultDano = register_cvar("jb_dHsKnifeCT", "80")
hPaloDano = register_cvar("jb_dhsKnife1", "45")
/*============================================================
Isyan Menu Fiyat Cvar :
============================================================*/
hp = register_cvar("jb_hp", "10")
hasar = register_cvar("jb_hasar", "30")
godmode = register_cvar("jb_godmode", "50")
gorunmezlik = register_cvar("jb_gorunmezlik", "60")
kiyafet = register_cvar("jb_kiyafet", "65")
noclip = register_cvar("jb_noclip", "70")
//ISYAN_SHOP C'VARS
isyan_shop_deprem = register_cvar("isyan_shop_deprem", "25")
isyan_shop_elektrik = register_cvar("isyan_shop_elektrik", "35"
isyan_shop_ctflash = register_cvar("isyan_shop_ctflash", "40")
isyan_shop_hucreac = register_cvar("isyan_shop_hucreac", "90")
isyan_shop_ctisinla = register_cvar("isyan_shop_ctisinla", "150")
/*============================================================
Isyan-Team Cvar :
============================================================*/
isyanteam = register_cvar("jb_isyanteam", "0")
/*============================================================
Gorev Odul Cvar :
============================================================*/
gorev_odul1 = register_cvar("gorev_odul1", "10")
gorev_odul2 = register_cvar("gorev_odul2", "10")
gorev_odul3 = register_cvar("gorev_odul3", "10")
gorev_odul4 = register_cvar("gorev_odul4", "10")
gorev_odul5 = register_cvar("gorev_odul5", "10")
gorev_odul6 = register_cvar("gorev_odul6", "20")
hasar_miktar = register_cvar("jb_hasarkatla", "2.0")
syncObj = CreateHudSyncObj()
}
/*============================================================
Precaches
============================================================*/
public plugin_precache()
{
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(motocierra_deploy)
precache_sound(motocierra_slash)
precache_sound(motocierra_stab)
precache_sound(motocierra_wall)
precache_sound(motocierra_hit1)
precache_sound(motocierra_hit2)
precache_sound("sound/mariachi/kutu_acilis.wav")
precache_sound("sound/mariachi/kutu_dolu.wav")
precache_sound("sound/mariachi/kutu_bos.wav")
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_Karambit)
precache_model(PLAYER_Karambit)
precache_model(VIEW_Moto)
precache_model(PLAYER_Moto)
precache_model(WORLD_MODEL)
precache_model(V_awp)
precache_model(P_awp)
return PLUGIN_CONTINUE
}
//OLUMLU - OLUMSUZ SESLER
public olumlu_ses(id)
{
client_cmd(id,"spk ^"events/enemy_died^"")
}
public olumsuz_ses(id)
{
client_cmd(id,"spk ^"events/friend_died^"")
}
/*============================================================
KNIFE SHOP
============================================================*/
public Bicak_Market(id)
{
if(get_user_team(id) == 1 )
{
if(g_ENGEL[ id ][ MARKET ] == 0)
{
static Item[64]
formatex(Item, charsmax(Item),"y[y- rAmazon y-y] r# wBiCaK yMarket")
new Menu = menu_create(Item, "Bicak_Market_devam")
formatex(Item, charsmax(Item),"rKelebek d= y[%d] yTL d= rHasar r[ w%i r]", get_pcvar_num(precioC1),get_pcvar_num(PaloDano))
menu_additem(Menu, Item, "1")
formatex(Item, charsmax(Item),"rKarambit d= y[%d] yTL d= rHasar r[ w%i r]", get_pcvar_num(precioC2),get_pcvar_num(karambitDano))
menu_additem(Menu, Item, "10")
formatex(Item, charsmax(Item),"rTestere + BomBa d= y[%d] yTL d= rHasar r[ w%i r]^n", get_pcvar_num(precioC3),get_pcvar_num(MotocierraDano))
menu_additem(Menu, Item, "2")
if(!g_reklam[id]) {
formatex(Item, charsmax(Item),"wReklam at d= y[+1] TL")
menu_additem(Menu, Item, "4")
}
else
{
formatex(Item, charsmax(Item),"wReklam at d= w[rKullandinizw}")
menu_additem(Menu, Item, "4")
}
menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, Menu)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gHer dogusunda bir kere markete girebilirsin.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
}
return PLUGIN_HANDLED
}
public Bicak_Market_devam(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 key = str_to_num(data);
switch(key)
{
case 1:
{
if (g_jbpacks[id]>= Obtener1 && vivo)
{
g_jbpacks[id] -= Obtener1
jb_harca[id] += Obtener1
CTCuchillo[id] = 0
TCuchillo[id] = 0
Destapador[id] = 1
Motocierra[id] = 0
esya_al[id] += 1
g_ENGEL[ id ][ MARKET ] = 1
ham_strip_weapon(id, "weapon_knife")
give_item(id, "weapon_knife")
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s] !gMarketten !n[!t Kelebek !n] !gsatin aldin",TAG)
anamenu(id)
}
else
{
anamenu(id)
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.Gereken !n[!t%d!n] !gTL",TAG,Obtener1)
}
}
case 10:
{
if (g_jbpacks[id]>= Obtener2 && vivo)
{
g_jbpacks[id] -= Obtener2
jb_harca[id] += Obtener2
CTCuchillo[id] = 0
TCuchillo[id] = 0
Destapador[id] = 0
karambit[id] = 1
Motocierra[id] = 0
esya_al[id] += 1
g_ENGEL[ id ][ MARKET ] = 1
ham_strip_weapon(id, "weapon_knife")
give_item(id, "weapon_knife")
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s] !gMarketten !n[!t Karambit !n] !gsatin aldin",TAG)
anamenu(id)
}
else
{
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.Gereken !n[!t%d!n] !gTL",TAG,Obtener2)
}
}
case 2:
{
if (g_jbpacks[id] >= Obtener3 && vivo)
{
g_jbpacks[id] -= Obtener3
jb_harca[id] += Obtener3
CTCuchillo[id] = 0
TCuchillo[id] = 0
Destapador[id] = 0
Motocierra[id] = 1
esya_al[id] += 1
g_ENGEL[ id ][ MARKET ] = 1
ham_strip_weapon(id, "weapon_knife")
give_item(id, "weapon_knife")
give_item(id,"weapon_hegrenade")
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s] !gMarketten !n[!tTestere!n] !gsatin aldin",TAG)
}
else
{
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.Gereken !n[!t%d!n] !gTL",TAG,Obtener3)
}
}
case 3:{
if(is_user_alive(id))
{
g_kanverdim[id] = true
g_jbpacks[id] += 3
set_user_health(id,get_user_health(id) - 99)
Bicak_Market(id)
set_task(0.1,"olumlu_ses",id)
}
}
case 4:{
if(is_user_alive(id))
{
g_reklam[id] = true
g_jbpacks[id] += 1
set_task(0.1,"olumlu_ses",id)
renkli_yazi(0,"!t%s !n: !gYetkili Slotluk Ve Komutculuk icin say'a !t[/ts3] !nYaziniz.",TAG)
Bicak_Market(id)
}
}
case 5:{
if(is_user_alive(id))
{
if(cs_get_user_money(id) >= 16000)
{
g_jbpacks[id] += 20
g_ENGEL[ id ][ DOLAR ] = 1
cs_set_user_money(id, cs_get_user_money(id) - 16000)
renkli_yazi(id,"!n[!t%s!n] !g16.000 $ Bozdurarak 20 TL !nAldin.",TAG)
Bicak_Market(id)
set_task(0.1,"olumlu_ses",id)
}
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gMaalesef Yeterli Paraniz Yok!.",TAG)
anamenu(id)
}
}
case 6:{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gHer dogusunda bir kere !tReklam !nAtabilirsin.",TAG)
Bicak_Market(id)
}
case 7:{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gHer dogusunda bir kere !tKan !nVerebilirsin.",TAG)
Bicak_Market(id)
}
case 8:{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gHer dogusunda bir kere !tDolar !nBozabilirsin.",TAG)
Bicak_Market(id)
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public Gardiyan_kaldir() {
new players[ 32 ] , xnum;
get_players( players, xnum, "ae" , "CT" );
for( new i = 0; i < xnum; i++ ) {
new xid = players[ i ];
new Float:ifOrigin[3]
pev(xid, pev_origin, ifOrigin)
ifOrigin[2] += 35.0
set_pev(xid, pev_origin, ifOrigin)
}
}
public Isyan_Menu(id) {
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "y[y-Amazony-y] y# wIsyan yMenu")
menu = menu_create(Menuz, "Isyan_Menu2")
formatex(Menuz, charsmax(Menuz), "wElektrikleri Kes r= y[ %d ] d- yTL",get_pcvar_num(isyan_shop_elektrik))
menu_additem(menu, Menuz, "2", 0)
formatex(Menuz, charsmax(Menuz), "wDeprem Yarat r= y[ %d ] d- yTL",get_pcvar_num(isyan_shop_deprem))
menu_additem(menu, Menuz, "1", 0)
formatex(Menuz, charsmax(Menuz), "w1 CT Disarm r= y[ %d ] d- yTL",get_pcvar_num(isyan_shop_ctdisarm))
menu_additem(menu, Menuz, "3", 0)
formatex(Menuz, charsmax(Menuz), "w1 CT Gom d(5 - Saniye) r= y[ %d ] d- yTL",get_pcvar_num(isyan_shop_ctgom))
menu_additem(menu, Menuz, "4", 0)
formatex(Menuz, charsmax(Menuz), "wTum CT Flash r= y[ %d ] d- yTL",get_pcvar_num(isyan_shop_ctflash))
menu_additem(menu, Menuz, "5", 0)
formatex(Menuz, charsmax(Menuz), "wHucre Ac r= y[ %d ] d- yTL",get_pcvar_num(isyan_shop_hucreac))
menu_additem(menu, Menuz, "6", 0)
formatex(Menuz, charsmax(Menuz), "y1 - wCT'yi Yanina Isinla r= y[ %d ] d- yTL",get_pcvar_num(isyan_shop_ctisinla))
menu_additem(menu, Menuz, "7", 0)
formatex(Menuz, charsmax(Menuz), "rCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_setprop(menu,MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
return PLUGIN_HANDLED;
}
public Isyan_Menu2(id, menu ,item) {
if(item == MENU_EXIT) {
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64], access, callback
menu_item_getinfo(menu,item,access,data,charsmax(data),iName,charsmax(iName),callback)
new key = str_to_num(data)
switch(key) {
case 1: {
if(g_jbpacks[id] >= get_pcvar_num(isyan_shop_deprem)) {
new name[32]
new isim = get_user_name(id,name,31)
renkli_yazi(id,"!t[!g %s !t] !t%s !nIsimli Oyuncu !t[ !gDeprem !t] !nBaslatti.",TAG,isim)
set_task(0.1,"olumlu_ses",id)
set_task(0.2,"Sarsinti",4701,"",0,"b")
set_task(6.0,"DepremiBitir",4702)
sarsiliyor = true
esya_al[id] += 1
jb_harca[id] += get_pcvar_num(isyan_shop_deprem)
g_jbpacks[id] -= get_pcvar_num(isyan_shop_deprem)
}
else
{
renkli_yazi(id,"!t[!g %s !t] !nYeterli !t[ !gTL !t] !n' Niz Yok.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
}
case 2: {
if(g_jbpacks[id] >= get_pcvar_num(isyan_shop_elektrik)) {
g_jbpacks[id] -= get_pcvar_num(isyan_shop_elektrik)
set_lights("a")
set_task(8.0,"elektrikAc")
new name[33]
get_user_name(id,name,32)
renkli_yazi(id,"!t[!g %s !t] !t%s !g Adli Oyuncu Elektrikleri !nKesti",TAG,name)
set_task(0.1,"olumlu_ses",id)
esya_al[id] += 1
jb_harca[id] += get_pcvar_num(isyan_shop_elektrik)
}
else
{
renkli_yazi(id,"!t[!g %s !t] !nYeterli !t[ !gTL !t] !n' Niz Yok.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
}
case 3: {
if (g_jbpacks[id] >= get_pcvar_num(isyan_shop_ctdisarm))
{
new name[32]
get_user_name(id,name,31)
g_jbpacks[id] -= get_pcvar_num(isyan_shop_ctdisarm)
renkli_yazi(id,"!t[!g %s !t] !nIsyan Menuden !t[!g 1 CT Disarm !t] !nAldin.",TAG)
set_task(0.1,"olumlu_ses",id)
esya_al[id] += 1
jb_harca[id] += get_pcvar_num(isyan_shop_ctdisarm)
ctdisarm(id)
}
else
{
renkli_yazi(id,"!t[!g %s !t] !nYeterli !t[ !gTL !t] !n' Niz Yok.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
}
case 4: {
if (g_jbpacks[id] >= get_pcvar_num(isyan_shop_ctgom))
{
new name[32]
get_user_name(id,name,31)
g_jbpacks[id] -= get_pcvar_num(isyan_shop_ctgom)
renkli_yazi(id,"!t[!g %s !t] !nIsyan Menuden !t[!g 5 Saniyelik 1 CT Gom !t] !nAldin.",TAG)
renkli_yazi(0,"!t[!g %s !t] !nGomulen Gardiyan 5 Saniye Sonra !nKaldirilacaktir",TAG)
set_task(0.1,"olumlu_ses",id)
set_task(6.0,"Gardiyan_kaldir")
esya_al[id] += 1
jb_harca[id] += get_pcvar_num(isyan_shop_ctgom)
ctgom(id)
}
else
{
renkli_yazi(id,"!t[!g %s !t] !nYeterli !t[ !gTL !t] !n' Niz Yok.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
}
case 5: {
if (g_jbpacks[id] >= get_pcvar_num(isyan_shop_ctflash))
{
new name[32],players[32],iTempid,iPlayerNum;
get_user_name(id,name,31)
renkli_yazi(id,"!t[!g %s !t] !nSaldir Menuden !t[ !gCT Flash !t] !nAldin.",TAG)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!t[!g %s !t] !n%s Adli Mahkum Jb ile CT'yi Flashladi.",TAG,name)
g_jbpacks[id] -= get_pcvar_num(isyan_shop_ctflash)
esya_al[id] += 1
jb_harca[id] += get_pcvar_num(isyan_shop_ctflash)
get_players(players,iPlayerNum,"ae","CT")
for(new i = 0; i < iPlayerNum; i++)
{
iTempid = players[i];
message_begin(MSG_ONE, g_iMsgScreenFade, {0,0,0}, iTempid);
write_short(1<<15);
write_short(1<<10);
write_short(1<<12);
write_byte(255);
write_byte(255);
write_byte(255);
write_byte(255);
message_end();
}
anamenu(id)
}
else
{
renkli_yazi(id,"!t[!g %s !t] !nYeterli !t[ !gTL !t] !n' Niz Yok.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
}
case 6: {
if (g_jbpacks[id] >= get_pcvar_num(isyan_shop_hucreac))
{
new name[32]
get_user_name(id,name,31)
renkli_yazi(id,"!t[!g %s !t] !nIsyan Menuden !t[ !gHucre Ac !t] !nAldin.",TAG)
set_task(0.1,"olumlu_ses",id)
esya_al[id] += 1
jb_harca[id] += get_pcvar_num(isyan_shop_hucreac)
g_jbpacks[id] -= get_pcvar_num(isyan_shop_hucreac)
renkli_yazi(id,"!t[!g %s !t] !n%s Adli Kisi JB ile Kapilari Acti.",TAG,name)
hucreac()
}
else
{
renkli_yazi(id,"!t[!g %s !t] !nYeterli !t[ !gTL !t] !n' Niz Yok.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
}
case 7: {
if (g_jbpacks[id] >= get_pcvar_num(isyan_shop_ctisinla))
{
new name[32]
get_user_name(id,name,31)
renkli_yazi(id,"!t[!g %s !t] !nIsyan Menuden !t[ !gCT Isinla !t] !nAldin.",TAG)
set_task(0.1,"olumlu_ses",id)
g_jbpacks[id] -= get_pcvar_num(isyan_shop_ctisinla)
esya_al[id] += 1
jb_harca[id] += get_pcvar_num(isyan_shop_ctisinla)
isinla(id)
}
else
{
renkli_yazi(id,"!t[!g %s !t] !nYeterli !t[ !gTL !t] !n' Niz Yok.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
}
}
return PLUGIN_HANDLED
}
public hucreac()
{
new Float:radius = 200.0, Float:origin[3], ent = 1, ent2 = 1, ent3, class[32], name[32], pos
while((pos <= sizeof(found)) && (ent = engfunc(EngFunc_FindEntityByString, ent, "classname", "info_player_deathmatch")))
{
pev(ent, pev_origin, origin)
while((ent2 = engfunc(EngFunc_FindEntityInSphere, ent2, origin, radius)))
{
if(!pev_valid(ent2))
continue
pev(ent2, pev_classname, class, charsmax(class))
if(!equal(class, "func_door"))
continue
pev(ent2, pev_targetname, name, charsmax(name))
ent3 = engfunc(EngFunc_FindEntityByString, 0, "target", name)
if(pev_valid(ent3) && (in_array(ent3, found, sizeof(found)) < 0))
{
ExecuteHamB(Ham_Use, ent3, 0, 0, 1, 1.0)
pos++
break
}
}
}
return pos
}
public Sarsinti(TaskID)
{
for(new id = 1; id < 33; id++)
{
if(is_user_connected(id) && is_user_alive(id) && sarsiliyor)
{
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)
{
if(sarsiliyor)
{
remove_task(4701)
sarsiliyor = false
remove_task(TaskID)
}
}
public elektrikAc(taskid) {
set_lights("#OFF")
remove_task(taskid)
}
public client_PreThink(id)
{
if(!is_user_alive(id)) return PLUGIN_CONTINUE
new nbut = get_user_button(id)
new obut = get_user_oldbutton(id)
if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP) && g_zipla[id])
{
if(jumpnum[id] < get_pcvar_num(kacziplasin))
{
dojump[id] = true
jumpnum[id]++
return PLUGIN_CONTINUE
}
}
if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
{
jumpnum[id] = 0
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public elbasi()
{
new players[32],inum,id
get_players(players,inum)
for(new i;i<inum;i++)
{
id = players[i]
select_meslek[id] = true
g_bonus[id] += 1
g_cek[id] += 1
g_kanverdim[id] = false
g_reklam[ id ] = false
g_bomberman[id] = true
g_gardiyan[id] = true
for( new i; i < ENGEL; i++ )
{
g_ENGEL[ id ][ i ] = 0
}
}
}
public client_PostThink(id)
{
if(!is_user_alive(id)) return PLUGIN_CONTINUE
if(dojump[id] == true)
{
new Float:velocity[3]
entity_get_vector(id,EV_VEC_velocity,velocity)
velocity[2] = random_float(265.0,285.0)
entity_set_vector(id,EV_VEC_velocity,velocity)
dojump[id] = false
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public HUD_YAZI(id)
{
if(get_user_team(id) == 1)
{
set_hudmessage(85, 170, 255, -1.0, 0.85, 0, 6.0, 1.0, 0.0, 0.0, -1 );
ShowSyncHudMsg(id, syncObj," ^n", g_jbpacks[id])
}
}
public T_Cephane(id)
{
if(is_user_alive(id))
{
static Item[64]
formatex(Item, charsmax(Item),"y[y- Amazon y-y] r# yCephane Menu")
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),"wYuksek Atlama y[%d] TL d(Yuksekten Dusunce Can Gitmez)", get_pcvar_num(precio6))
menu_additem(Menu, Item, "6")
formatex(Item, charsmax(Item),"w20 Mermili Glock y[%d] TL", get_pcvar_num(g_glock))
menu_additem(Menu, Item, "8")
formatex(Item, charsmax(Item),"w30 Mermili M4A1 y[%d] TL", get_pcvar_num(g_m4a1))
menu_additem(Menu, Item, "9")
menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, Menu)
}
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 Obtener1 = get_pcvar_num(precio1)
new Obtener2 = get_pcvar_num(precio2)
new Obtener6 = get_pcvar_num(precio6)
new esya8 = get_pcvar_num(g_m4a1)
new esya7 = get_pcvar_num(g_glock)
new key = str_to_num(data);
switch(key)
{
case 1:
{
if (g_jbpacks[id] >= Obtener1 && vivo)
{
g_jbpacks[id] -= Obtener1
jb_harca[id] += Obtener1
esya_al[id] += 1
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s] !gCephane Menuden !n[!gFlash Bombasi!n] !gsatin aldin",TAG)
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
Ronda[id] = 0
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.Gereken !n[!t%d!n] !gTL",TAG,Obtener1)
}
}
case 2:
{
if (g_jbpacks[id] >= Obtener2 && vivo)
{
g_jbpacks[id] -= Obtener2
jb_harca[id] += Obtener2
esya_al[id] += 1
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s] !gCephane Menuden !n[!gEl Bombasi!n] !gsatin aldin",TAG)
give_item(id, "weapon_hegrenade")
Ronda[id] = 0
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.Gereken !n[!t%d!n] !gTL",TAG,Obtener2)
}
}
case 6:
{
if (g_jbpacks[id] >= Obtener6 && vivo)
{
g_jbpacks[id] -= Obtener6
jb_harca[id] += Obtener6
esya_al[id] += 1
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s] !gCephane Menuden !n[!gYuksek Atlama!n] !gsatin aldin",TAG)
g_yuksek[id] = true
Ronda[id] = 0
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.Gereken !n[!t%d!n] !gTL",TAG,Obtener6)
}
}
case 8:
{
if(g_jbpacks[id] >= esya7 && vivo)
{
g_jbpacks[id] -= esya7
jb_harca[id] += esya7
esya_al[id] += 1
set_task(0.1,"olumlu_ses",id)
give_item(id,"weapon_glock18")
renkli_yazi(id,"!n[!t%s] !gT Shopdan !n[!t20 Mermili Glock!n] !gsatin aldin",TAG)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.Gereken !n[!t%d!n] !gTL",TAG,esya7)
}
}
case 9 :
{
if(g_jbpacks[id] >= esya8 && vivo)
{
g_jbpacks[id] -= esya8
jb_harca[id] += esya8
esya_al[id] += 1
set_task(0.1,"olumlu_ses",id)
give_item(id,"weapon_m4a1")
renkli_yazi(id,"!n[!t%s] !gT Shopdan !n[!t30 Mermili M4A1!n] !gsatin aldin",TAG)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.Gereken !n[!t%d!n] !gTL",esya8)
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public client_connect(id)
{
select_meslek[id] = true
meslek[id] = 0
jumpnum[id] = 0
gorev1[id] = 0
gorev2[id] = 0
gorev3[id] = 0
gorev4[id] = 0
gorev5[id] = 0
gorev6[id] = 0
gardiyan_oldur[id] = 0
jb_harca[id] = 0
mahkum_oldur[id] = 0
esya_al[id] = 0
g_survive[id ] = 0
dojump[id] = false
g_zipla[id] = false
g_bonus[id] = 3
g_cek[id] = 3
remove_task(id+600)
}
public client_disconnect(id)
{
select_meslek[id] = true
meslek[id] = 0
jumpnum[id] = 0
gorev1[id] = 0
gorev2[id] = 0
gorev3[id] = 0
gorev4[id] = 0
gorev5[id] = 0
gorev6[id] = 0
gardiyan_oldur[id] = 0
jb_harca[id] = 0
mahkum_oldur[id] = 0
esya_al[id] = 0
g_survive[id ] = 0
dojump[id] = false
g_zipla[id] = false
g_bonus[id] = 3
g_cek[id] = 3
remove_task(id+600)
}
public OnCBasePlayer_TakeDamage( id, iInflictor, iAttacker, Float:flDamage, bitsDamageType )
{
if( bitsDamageType & DMG_FALL && g_yuksek[id])
{
return HAM_SUPERCEDE
}
if(meslek[id] == 1)
{
SetHamParamFloat(4, flDamage * 0.8)
}
if(hasar_azalt[id])
{
SetHamParamFloat(4, flDamage * 0.7)
}
return HAM_IGNORED
}
public Awp_asinow_damage(pevVictim, pevInflictor, pevAttacker, Float:flDamage, iDmgBits) {
if(!(1 <= pevAttacker <= g_maxplayers)) {
return HAM_HANDLED;
}
if(!is_user_alive(pevAttacker)) {
return HAM_HANDLED;
}
if(get_user_team(pevAttacker)) {
if(Awp_sinow[pevAttacker])
{
SetHamParamFloat(4, get_pcvar_float(awp_sinow_hasar))
}
}
return HAM_HANDLED
}
public awp_asimov(id)
{
Awp_sinow[id] = 1
strip_user_weapons(id)
ham_strip_weapon(id, "weapon_awp")
give_item(id,"weapon_knife")
give_item(id,"weapon_awp")
cs_set_user_bpammo(id,CSW_AWP,100)
return PLUGIN_HANDLED
}
public HookCurWeapon(id) {
new silahID = read_data(2);
switch(get_user_team(id)) {
case 1: {
if(Awp_sinow[id] && silahID == CSW_AWP) {
set_pev(id,pev_viewmodel2,V_awp)
set_pev(id, pev_weaponmodel2,P_awp)
}
}
case 2 : {
if(Awp_sinow[id] && silahID == CSW_AWP) {
set_pev(id,pev_viewmodel2,V_awp)
set_pev(id, pev_weaponmodel2,P_awp)
}
}
}
}
public olunce()
{
new olduren = read_data(1)
new olen = read_data(2)
if(olduren == olen)
{
return PLUGIN_HANDLED
}
if(get_user_team(olduren) == 1 && get_user_team(olen) == 1)
mahkum_oldur[olduren] += 1
if(get_user_team(olduren) == 1 && get_user_team(olen) == 2)
gardiyan_oldur[olduren] += 1
if(meslek[olen] == 5)
{
set_task(2.0,"rev_sansi",olen+413)
}
return PLUGIN_CONTINUE;
}
public rev_sansi(taskid)
{
new id = taskid - 413
if(!is_user_alive(id))
{
switch(random_num(1,3))
{
case 1 :
{
renkli_yazi(id,"!n[!t%s] !gTekrar Dogamadin",TAG)
}
case 2 :
{
ExecuteHamB(Ham_CS_RoundRespawn,id)
renkli_yazi(id,"!n[!t%s] !gRevlendin",TAG)
renkli_yazi(0,"!n[!t%s] !gHey CT ! Biri Revlendi Kos Hucreye",TAG)
renkli_yazi(0,"!n[!t%s] !gHey CT ! Biri Revlendi Kos Hucreye",TAG)
renkli_yazi(0,"!n[!t%s] !gHey CT ! Biri Revlendi Kos Hucreye",TAG)
}
case 3 :
{
renkli_yazi(id,"!n[!t%s] !gTekrar Dogamadin",TAG)
}
}
}
}
public Kutu_Menu(id)
{
if(is_user_alive(id))
{
new Menu = menu_create("y[y- Amazon y-y] r# ySans Menuleri ","Kutu_Menu_devam")
menu_additem(Menu,"w[rAmazonw] d// wMalzeme Kutusu y[15] TL","1")
menu_additem(Menu,"w[rAmazonw] d// wTabanca Kutusu y[20] TL","2")
menu_additem(Menu,"w[rAmazonw] d// wAwp Asimov Kutusu r(y2/1r) rSans y[100] TL","3")
menu_additem(Menu,"w[rAmazonw] d// wAwp Asimov Kutusu r(y4/1r) rSans y[50] TL","4")
menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, Menu, 0);
}
return PLUGIN_HANDLED
}
public Kutu_Menu_devam(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64]
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
new key = str_to_num(data)
switch(key)
{
case 1:
{
if(g_jbpacks[id] >= 15)
{
g_jbpacks[id] -= 15
jb_harca[id] += 15
esya_al[id] += 1
set_task(7.0,"Malzeme_Kutusu",id)
client_cmd(id,"spk ^"mariachi/kutu_acilis^"")
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
case 2:
{
if(g_jbpacks[id] >= 20)
{
g_jbpacks[id] -= 20
jb_harca[id] += 20
esya_al[id] += 1
set_task(7.0,"Tabanca_Kutusu",id)
client_cmd(id,"spk ^"mariachi/kutu_acilis^"")
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
case 3:
{
if(g_jbpacks[id] >= 100)
{
g_jbpacks[id] -= 100
jb_harca[id] += 100
esya_al[id] += 1
set_task(7.0,"Awp_asimov_kutusu",id)
client_cmd(id,"spk ^"mariachi/kutu_acilis^"")
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
case 4:
{
if(g_jbpacks[id] >= 50)
{
g_jbpacks[id] -= 50
jb_harca[id] += 50
esya_al[id] += 1
set_task(7.0,"Awp_asimov_kutusu2",id)
client_cmd(id,"spk ^"mariachi/kutu_acilis^"")
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public Malzeme_Kutusu(id)
{
switch(random_num(0,8))
{
case 0: {
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 1: {
CTCuchillo[id] = 0
TCuchillo[id] = 0
Destapador[id] = 0
Motocierra[id] = 1
esya_al[id] += 1
ham_strip_weapon(id, "weapon_knife")
give_item(id, "weapon_knife")
renkli_yazi(id,"!n[ !g%s !n] !n[!gTebrikler!n] !gKutudan !tTestere Cikti ! !",TAG)
client_cmd(id,"spk ^"mariachi/kutu_dolu^"")
}
case 2: {
set_user_health( id,get_user_health( id ) +100 )
renkli_yazi(id,"!n[ !g%s !n] !n[!gTebrikler!n] !gKutudan !t+100 Cikti ! !",TAG)
client_cmd(id,"spk ^"mariachi/kutu_dolu^"")
}
case 3: {
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 4: {
give_item(id,"weapon_hegrenade")
cs_set_user_bpammo(id,CSW_HEGRENADE,2)
renkli_yazi(id,"!n[ !g%s !n] !n[!gTebrikler!n] !gKutudan !tx2 BomBa Cikti ! !",TAG)
client_cmd(id,"spk ^"mariachi/kutu_dolu^"")
}
case 5: {
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 6: {
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 7: {
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 8: {
give_item(id,"weapon_hegrenade")
give_item(id,"weapon_flashbang")
give_item(id,"weapon_smokegrenade")
renkli_yazi(id,"!n[ !g%s !n] !n[!gTebrikler!n] !gKutudan !tBomBa Paketi Cikti ! !",TAG)
client_cmd(id,"spk ^"mariachi/kutu_dolu^"")
}
}
return PLUGIN_HANDLED;
}
public Tabanca_Kutusu( id )
{
switch(random_num(0,6))
{
case 0:{
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 1:{
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 2:{
give_item(id,"weapon_deagle")
renkli_yazi(id,"!n[ !g%s !n] !n[!gTebrikler!n] !gKutudan !t7 Mermili Deagle Cikti ! !",TAG)
client_cmd(id,"spk ^"mariachi/kutu_dolu^"")
}
case 3:{
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 4:{
give_item(id,"weapon_glock18")
renkli_yazi(id,"!n[ !g%s !n] !n[!gTebrikler!n] !gKutudan !t20 Mermili Glock Cikti ! !",TAG)
client_cmd(id,"spk ^"mariachi/kutu_dolu^"")
}
case 5:{
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 6:{
give_item(id,"weapon_usp")
renkli_yazi(id,"!n[ !g%s !n] !n[!gTebrikler!n] !gKutudan !t12 Mermili Usp Cikti ! !",TAG)
client_cmd(id,"spk ^"mariachi/kutu_dolu^"")
}
}
return PLUGIN_HANDLED;
}
public Awp_asimov_kutusu( id )
{
switch(random_num(0,1))
{
case 0: {
set_task(0.5,"awp_asimov",id)
renkli_yazi(id,"!n[ !g%s !n] !n[!gTebrikler!n] !gKutudan !tAwp_Asimov !gCikti ! !",TAG)
client_cmd(id,"spk ^"mariachi/kutu_dolu^"")
}
case 1: {
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
}
return PLUGIN_HANDLED;
}
public Awp_asimov_kutusu2( id )
{
switch(random_num(0,3))
{
case 0: {
set_task(0.5,"awp_asimov",id)
renkli_yazi(id,"!n[ !g%s !n] !n[!gTebrikler!n] !gKutudan !tAwp_Asimov !gCikti ! !",TAG)
client_cmd(id,"spk ^"mariachi/kutu_dolu^"")
}
case 1: {
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 2: {
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
case 3: {
renkli_yazi(id,"!n[ !g%s !n] !gMalesef Kutudan !tBisey Cikmadi",TAG)
client_cmd(id,"spk ^"mariachi/kutu_bos^"")
}
}
return PLUGIN_HANDLED;
}
public logevent_round_end()
{
new players[32],inum,id
get_players(players,inum)
for(new i;i<inum;i++)
{
id = players[i]
if(is_user_alive(id) && get_user_team(id) == 1)
{
CTCuchillo[id] = 0
TCuchillo[id] = 0
g_round[id] = 1
strip_user_weapons(id)
give_item(id,"weapon_knife")
g_survive[id] += 1
}
}
}
public client_putinserver(id)
{
g_jbpacks[id] = get_pcvar_num(g_startjp)
set_task( 1.0, "HUD_YAZI", id, _, _, "b" );
jumpnum[id] = 0
dojump[id] = false
g_zipla[id] = false
}
public kontrol(id)
{
if(get_user_team(id) == 2)
{
duel_menu(id)
}
return PLUGIN_HANDLED
}
public duel_menu(id)
{
static opcion[64]
formatex(opcion, charsmax(opcion),"y[y- Amazon y-y] r# wTL VER AL")
new iMenu = menu_create(opcion, "menu")
formatex(opcion, charsmax(opcion),"yTL VER")
menu_additem(iMenu, opcion, "1")
formatex(opcion, charsmax(opcion),"yTL AL")
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 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)
formatex(opcion, charsmax(iMenu), "yCikis")
menu_setprop(iMenu,MPROP_EXITNAME,iMenu)
}
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 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
}
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 > MAXJB ){
renkli_yazi(id,"!t[!g %s !t] !t%s !nMalesef !t[!g 20 TL !t] !n'Den Fazla Veremezsin.",TAG,adminname)
log_amx("[%s] %s Nickli Gardiyan 20 JB Den Fazla Vermeye Calisti",adminname)
} else {
if(amount < MAXJB ){
g_jbpacks[victim] = g_jbpacks[victim] + amount
renkli_yazi(id,"!t[!g %s !t] !g%s !nNickli Gardiyan !t[ !g%s !t] !tAdli !nKisiye !t[ !g%d !t] !nTL Verdi.",TAG,adminname, vname, amount)
} else {
renkli_yazi(id,"!t[!g %s !t] !t%s !nNickli Gardiyan !t[!g 20 TL !t] !n'Den Fazla Veremezsin.",TAG,adminname)
}
}
}
if(quitar[id]) {
if(amount > g_jbpacks[victim]) {
g_jbpacks[victim] = 0
renkli_yazi(id,"!t[!g %s !t] !t%s !nNickli Gardiyan !g%s !tAdli !nMahkumun !gTUM TL !n'lerini Aldi.",TAG,adminname, vname)
log_amx("[ %s ] Nickli Admin [ %s ] Kisinin Tum TL Sini Aldi",adminname,vname)
} else {
g_jbpacks[victim] = g_jbpacks[victim] - amount
renkli_yazi(id,"!t[!g %s !t] !t%s !nNickli Gardiyan !t[ !g%s !t] !nKisinin !t[ !g%d !t] !nTL sini Aldi.",TAG,adminname, vname, amount)
}
}
}
return PLUGIN_HANDLED
}
public Fwd_PlayerSpawn_Post(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)
set_user_maxspeed(id,600.0)
Speed[id] = 0
Ronda[id] = 1
TCuchillo[id] = 1
Destapador[id] = 0
karambit[id] = 0
Motocierra[id] = 0
jumpnum[id] = 0
g_round[id] = 0
dojump[id] = false
g_hasar[id] = false
g_zipla[id] = false
g_yuksek[id] = false
g_bombaa[id] = true
Awp_sinow[id] = 0
Bicak_Market(id)
}
if(get_user_team(id) == 2)
{
CTCuchillo[id] = 1
}
if(meslek[id] == 2)
{
set_user_gravity(id,0.65)
}
if(meslek[id] == 7) {
set_user_health(id, 150);
set_user_armor(id, 150);
}
}
public anamenu(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 == 0 )
{
renkli_yazi(id,"!n[!t%s!n] !gSon Mahkum Bu Menuden yararlanamaz",TAG)
}
else if ( contador >= 0 )
{
new menuz;
static amenu[512];
formatex(amenu,charsmax(amenu)," r|r Amazon-Gamingr| yJailBreak wy#rJBMenu")
menuz = menu_create(amenu,"anamenu2")
if(g_ENGEL[ id ][ MARKET ] == 0)
{
formatex(amenu,charsmax(amenu),"r|rAmazonr|d- yMarket Menu")
menu_additem(menuz,amenu,"1")
}
else
{
formatex(amenu,charsmax(amenu),"r|rAmazonr|d- yMarket Menu d[- Kullandiniz -]")
menu_additem(menuz,amenu,"1")
}
formatex(amenu,charsmax(amenu),"r|rAmazonr|d- yEnvanter Menu")
menu_additem(menuz,amenu,"2")
formatex(amenu,charsmax(amenu),"r|rAmazonr|d- yKisisel Ayar Menu")
menu_additem(menuz,amenu,"10")
if(select_meslek[id])
{
formatex(amenu,charsmax(amenu),"r|rAmazonr|d- yMeslek Menu")
menu_additem(menuz,amenu,"5")
}
else
{
formatex(amenu,charsmax(amenu),"r|rAmazonr|d- yMeslek Menu d[- Kullandiniz -]")
menu_additem(menuz,amenu,"5")
}
formatex(amenu,charsmax(amenu),"r|rAmazonr|d- yGorev Menu")
menu_additem(menuz,amenu,"4")
menu_setprop(menuz,MPROP_EXITNAME,"wCikis Yap")
menu_setprop(menuz,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menuz,0)
}
}
}
return PLUGIN_HANDLED
}
public anamenu2(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64]
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
new key = str_to_num(data)
if(key == 1)
{
Bicak_Market(id)
//Market
}
else if(key == 2)
{
Envanter_Menu(id)
//Envanter Menu
}
else if(key == 3)
{
isyan_kralligi(id)
//Isyan-Team Menu
}
else if(key == 4)
{
gorev_menu(id)
//Gorev Menu
}
else if(key == 5)
{
meslek_menu(id)
//Meslek Menu
}
else if(key == 6)
{
Bicak_Market(id)
}
else if(key == 20)
{
anamenu(id)
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gIsyan-Team menusu isyanteam aktifken kullanilabilmektedir.",TAG)
}
else if(key == 7)
{
Yetkili_Menu(id)
//Yetkili Menu
}
else if(key == 10)
{
ayarla(id)
//Kisisel Ayar Menu
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public ayarla(id)
{
if(get_user_team(id) == 1)
{
new Menu = menu_create("y[y- Amazon y-y] r# wKisisel Ayar Menu","ayarcek")
menu_additem(Menu,"wFPS Ayarlari Uygula","1")
menu_additem(Menu,"wMapin Adini Ogren","2")
menu_additem(Menu,"wKill Cek","3")
menu_additem(Menu,"wSkorunu Sifirla^n","4")
if(ts3baglan[ id ] == 0)
{
menu_additem(Menu,"wTS3 Baglan r+5 TL AL","5")
}
else
{
menu_additem(Menu,"wTS3 Baglan r[- dKullandiniz r-]","5")
}
menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, Menu, 0);
}
return PLUGIN_HANDLED
}
public ayarcek(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],aname[32]
menu_item_getinfo(menu,item,access,data,5,aname,31,callback)
new name [32]
get_user_name(id,name,31)
new key = str_to_num(data)
switch(key)
{
case 1 :{
fps(id)
set_task(0.1,"olumlu_ses",id)
}
case 2 :{
console_cmd(id,"say currentmap")
}
case 3 :{
user_kill(id)
}
case 4 :{
reset(id)
set_task(0.1,"olumlu_ses",id)
}
case 5 :{
if(ts3baglan[ id ] == 0)
{
client_cmd(id,"say /ts3")
ts3baglan[ id ] = 1
g_jbpacks[ id ] += 5
set_task(0.1,"olumlu_ses",id)
ayarla(id)
renkli_yazi(id,"!n[ !g%s !n] TS3'e Baglandiniz !n[ !g5 TL !n] !tAldiniz",TAG)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[ !g%s !n] !tHer Mapta 1 Kere Kullanabilirsiniz",TAG)
ayarla(id)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public fps(id)
{
console_cmd(id,"fps_max 9999")
console_cmd(id,"fps_modem 9999")
console_cmd(id,"cl_cmdrate 151")
console_cmd(id,"cl_showfps 1")
console_cmd(id,"rate 25000")
console_cmd(id,"cl_updaterate 151")
}
public Yetkili_Menu(id)
{
if(g_ENGEL[ id ][ YETKILI ] == 0)
{
new Menu = menu_create("y[y- Amazon y-y] r# wYetkili Menu","Yetkili_Menu_devam")
menu_additem(Menu,"w[rAmazonw] d// yUser Ozel y1 ve 5 Arasi TL Sansi","6")
menu_additem(Menu,"w[rAmazonw] d// ySlot d& wKomutcu yMenu","3")
menu_additem(Menu,"w[rAmazonw] d// yAdmin yMenu","4")
menu_additem(Menu,"w[rAmazonw] d// yYonetici yMenu","5")
menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, Menu, 0);
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gHer dogusunda bir kere girebilirsin.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED;
}
public Yetkili_Menu_devam(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64]
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
new key = str_to_num(data)
switch(key)
{
case 3 :
{
if(get_user_flags(id) & SLOT_MENUU)
{
slot_menu(id)
//slot menu
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gSLOT Degilsin.Slotluk icin /ts3 yaziniz",TAG)
}
}
case 4 :
{
if(get_user_flags(id) & ADMIN_MENUU)
{
Admin_menu(id)
//Admin menu
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gAdmin Degilsin. Adminlik Fiyat ve Ayrintilari icin /ts3 yaziniz.",TAG)
}
}
case 5 :
{
if(get_user_flags(id) & YONETICI_MENUU)
{
Yonetici_Menu(id)
//Yonetici Menu
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gYonetici Degilsin. Adminlik Fiyat Ve Ayrintilari icin /ts3 yaziniz.",TAG)
}
}
case 6 :
if(g_bonus[id] >= 1)
{
user_bonus(id)
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public user_bonus(id)
{
switch(random_num(1,6))
{
case 1 :{
g_jbpacks[id] += 1
renkli_yazi(id,"!n[!t%s!n] !g1 TL Kazandin",TAG)
}
case 2 :{
g_jbpacks[id] += 1
renkli_yazi(id,"!n[!t%s!n] !g1 TL Kazandin",TAG)
}
case 3 :{
g_jbpacks[id] += 3
renkli_yazi(id,"!n[!t%s!n] !g3 TL Kazandin",TAG)
}
case 4 :{
g_jbpacks[id] += 4
renkli_yazi(id,"!n[!t%s!n] !g4 TL Kazandin",TAG)
}
case 5 :{
g_jbpacks[id] += 2
renkli_yazi(id,"!n[!t%s!n] !g2 TL Kazandin",TAG)
}
case 6 :{
g_jbpacks[id] += 5
renkli_yazi(id,"!n[!t%s!n] !g5 TL Kazandin",TAG)
}
}
}
public Admin_menu(id)
{
new menu = menu_create("y[y- Amazon y-y] r# wAdmin Menusu", "Admin_menu_devam")
menu_additem(menu, "wSaglik Paketi d- w(-y100 HPw-)","1")
menu_additem(menu, "wUcan Tom d- w(-y500 Gravityw-)","2")
menu_additem(menu, "w2x Bomba d- w(-yHe+Flashbangw-) ","3")
menu_additem(menu, "wYetkili Bahisi d- w(-y5 TLw-)","4")
menu_additem(menu, "wYetkili Bahisi d- w(-y4000$w-)","5")
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_HANDLED
}
public Admin_menu_devam(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64]
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
new key = str_to_num(data)
switch(key)
{
case 1:{
set_user_health(id,get_user_health(id) + 100)
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gAdmin Menusunden 100 Hp aldiniz",TAG)
}
case 2:{
set_user_gravity(id, 0.5)
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gAdmin Menusunden 500 gravity aldiniz",TAG)
}
case 3:{
give_item(id, "weapon_flashbang")
give_item(id, "weapon_hegrenade")
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gAdmin Menusunden !n[!tHe+Flashbang!n] Bombasi Aldiniz ",TAG)
}
case 4:{
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !nAdmin Menusunden !g5 TL !nAldiniz.",TAG)
}
case 5:
{
cs_set_user_money(id, cs_get_user_money(id) + 4000);
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !nAdmin Menusunden !g4000$ !nAldiniz.",TAG)
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public Yonetici_Menu(id)
{
new menu = menu_create("y[y- Amazon y-y] r# wYonetici Menusu", "Yonetici_Menu_devam");
menu_additem(menu, "wSaglik Paketi d= w(-y100 HPw-)","1")
menu_additem(menu, "wUcan Tom d= w(-y450 Gravityw-)","2")
menu_additem(menu, "wBomba Seti d= w(-yHe+Flash+Smokew-) ","3")
menu_additem(menu, "wYetkili Bahisi d= w(-y10 TLw-)","5")
menu_additem(menu, "wYetkili Bahisi d= w(-y8000$w-)","4")
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_HANDLED
}
public Yonetici_Menu_devam(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64]
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
new key = str_to_num(data)
switch(key)
{
case 1:{
set_user_health(id,get_user_health(id) +100)
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYonetici Menusunden 100 Hp aldiniz",TAG)
}
case 2:{
set_user_gravity(id, 0.450)
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYonetici Menusunden 450 gravity aldiniz",TAG)
}
case 3:{
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
give_item(id, "weapon_flashbang")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_smokegrenade")
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYonetici Menusunden Bomba Seti Aldiniz ",TAG)
}
case 4:{
cs_set_user_money(id, cs_get_user_money(id) + 8000);
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYonetici Menusunden 8000$ Aldiniz.",TAG)
}
case 5:{
g_jbpacks[id] += 10
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYonetici Menusunden 10 Tl Aldiniz ",TAG)
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public transfer_menu(id)
{
if( !is_user_alive(id) ) return PLUGIN_HANDLED
new menu = menu_create("y[y- Amazon y-y] r# wTL Transfer Menusu", "transfer_case")
menu_additem(menu, "y10 d- yTL", "1", 0);
menu_additem(menu, "y20 d- yTL", "2", 0);
menu_additem(menu, "y30 d- yTL", "3", 0);
menu_additem(menu, "y40 d- yTL", "4", 0);
menu_additem(menu, "y50 d- yTL", "5", 0);
menu_additem(menu, "y100 d- yTL", "6", 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)
}
case 6:{
ananzaaxd[id] = 100;
OyuncuSec(id)
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public OyuncuSec(id)
{
new ad[32],sznum[6]
new menu = menu_create("wOyuncu ySecin","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)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !t%s !gKisiye !n[!t 10 !n] !gTL Transfer Ettiniz.",TAG,ad)
renkli_yazi(tid,"!n[!t !g%s !n] !t%s !gKisi Size !n[!t 10 !n] !gTL Transfer Etti.",TAG,name)
ananzaaxd[id] = 0
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !gYeterli !n[ !tTL !n] !g' Niz !gBulunmamaktadir.",TAG)
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 )
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !t%s !gKisiye !n[!t 20 !n] !gTLTransfer Ettiniz.",TAG,ad)
renkli_yazi(tid,"!n[!t !g%s !n] !t%s !gKisi Size !n[!t 20 !n] !gTL Transfer Etti.",TAG,name)
ananzaaxd[id] = 0
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !gYeterli !n[ !tTL !n] !g' Niz !gBulunmamaktadir.",TAG)
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)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !t%s !gKisiye !n[!t 30 !n] !gTLTransfer Ettiniz.",TAG,ad)
renkli_yazi(tid,"!n[!t !g%s !n] !t%s !gKisi Size !n[!t 30 !n] !gTL Transfer Etti.",TAG,name)
ananzaaxd[id] = 0
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !gYeterli !n[ !tTL !n] !g' Niz !gBulunmamaktadir.",TAG)
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)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !t%s !gKisiye !n[!t 40 !n] !gTLTransfer Ettiniz.",TAG,ad)
renkli_yazi(tid,"!n[!t !g%s !n] !t%s !gKisi Size !n[!t 40 !n] !gTL Transfer Etti.",TAG,name)
ananzaaxd[id] = 0
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !gYeterli !n[ !tTL !n] !g' Niz !gBulunmamaktadir.",TAG)
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)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !t%s !gKisiye !n[!t 50 !n] !gTLTransfer Ettiniz.",TAG,ad)
renkli_yazi(tid,"!n[!t !g%s !n] !t%s !gKisi Size !n[!t 50 !n] !gTL Transfer Etti.",TAG,name)
ananzaaxd[id] = 0
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !gYeterli !n[ !tTL !n] !g' Niz !gBulunmamaktadir.",TAG)
ananzaaxd[id] = 0
}
}
if(ananzaaxd[id] == 100)
{
if(jb_get_user_packs(id) >= 100)
{
jb_set_user_packs(id, jb_get_user_packs(id) - 100)
jb_set_user_packs(tid, jb_get_user_packs(tid) + 100)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !t%s !gKisiye !n[!t 100 !n] !gTLTransfer Ettiniz.",TAG,ad)
renkli_yazi(tid,"!n[!t !g%s !n] !t%s !gKisi Size !n[!t 50 !n] !gTL Transfer Etti.",TAG,name)
ananzaaxd[id] = 0
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t !g%s !n] !gYeterli !n[ !tTL !n] !g' Niz !gBulunmamaktadir.",TAG)
ananzaaxd[id] = 0
}
}
return PLUGIN_HANDLED
}
public Envanter_Menu(id)
{
new menuz;
static amenu[512];
formatex(amenu,charsmax(amenu),"y[y- Amazon y-y] r# wEnvanter Menu")
menuz = menu_create(amenu,"Envanter_Menu_devam")
formatex(amenu,charsmax(amenu),"w[rAmazonw] d// yT-Shop Menu")
menu_additem(menuz,amenu,"2")
formatex(amenu,charsmax(amenu),"w[rAmazonw] d// yIsyan Menu")
menu_additem(menuz,amenu,"5")
formatex(amenu,charsmax(amenu),"w[rAmazonw] d// yCephane Menu")
menu_additem(menuz,amenu,"1")
formatex(amenu,charsmax(amenu),"w[rAmazonw] d// yKutu Menu")
menu_additem(menuz,amenu,"4")
formatex(amenu,charsmax(amenu),"w[rAmazonw] d// yTL Transfer Menu")
menu_additem(menuz,amenu,"3")
menu_setprop(menuz,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menuz,0)
}
public Envanter_Menu_devam(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64]
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
new key = str_to_num(data)
if(key == 1)
{
T_Cephane(id)
}
else if(key == 2)
{
T_SHOP(id)
}
else if(key == 3)
{
transfer_menu(id)
}
else if(key == 4)
{
Kutu_Menu(id)
}
else if(key == 5)
{
Isyan_Menu(id)
}
menu_destroy(menu)
return PLUGIN_HANDLED;
}
public reset(id)
{
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
renkli_yazi(id,"!n[!t%s!n] !gSkorunu Sifirladin",TAG)
}
public T_SHOP(id)
{
static Item[64];
new Menu;
formatex(Item,charsmax(Item),"y[y- Amazon y-y] r# wT-Shop Menu")
Menu = menu_create(Item,"isyan_zamani")
formatex(Item,charsmax(Item),"w100 HP d= y[%d] TL",get_pcvar_num(hp))
menu_additem(Menu,Item,"1")
formatex(Item,charsmax(Item),"w100 Armor d= y[5] TL")
menu_additem(Menu,Item, "5")
formatex(Item,charsmax(Item),"wHasari 2ye Katla d= y[%d] TL",get_pcvar_num(hasar))
menu_additem(Menu,Item,"2")
formatex(Item,charsmax(Item),"wGodmode y(-d5 Sny-) d= y[%d] TL",get_pcvar_num(godmode))
menu_additem(Menu,Item,"9")
formatex(Item,charsmax(Item),"wGorunmezlik y(-d10 Sny-) d= y[%d] TL",get_pcvar_num(gorunmezlik))
menu_additem(Menu,Item,"8")
formatex(Item,charsmax(Item),"wCT Kiyafeti y(-d10 Sny-) d= y[%d] TL",get_pcvar_num(kiyafet))
menu_additem(Menu,Item,"12")
formatex(Item,charsmax(Item),"wNoclip y(-d3 Sny-) d= y[%d] TL",get_pcvar_num(noclip))
menu_additem(Menu,Item,"3")
menu_setprop(Menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,Menu,0)
}
public isyan_zamani(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64]
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
new canli = is_user_alive(id)
new esya1 = get_pcvar_num(hp)
new esya2 = get_pcvar_num(hasar)
new isyan3 = get_pcvar_num(godmode)
new isyan4 = get_pcvar_num(gorunmezlik)
new isyan5 = get_pcvar_num(kiyafet)
new isyan6 = get_pcvar_num(noclip)
new key = str_to_num(data)
switch(key)
{
case 1 :
{
if(g_jbpacks[id] >= esya1 && canli)
{
g_jbpacks[id] -= esya1
jb_harca[id] += esya1
esya_al[id] += 1
set_user_health(id,get_user_health(id) +100)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gT-Shop Menuden !n[!t100 HP!n] !gsatin aldin",TAG)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
case 2 :
{
if(g_jbpacks[id] >= esya2 && canli)
{
g_jbpacks[id] -= esya2
jb_harca[id] += esya2
g_hasar[id] = true
esya_al[id] += 1
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gT-Shop Menuden !n[!tHasari 2ye Katla!n] !gsatin aldin",TAG)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
case 3 :
{
if(g_jbpacks[id] >= isyan6 && canli)
{
g_jbpacks[id] -= isyan6
jb_harca[id] += isyan6
esya_al[id] += 1
set_user_noclip(id,1)
set_task(3.0,"kapat1",id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gT-Shop Menuden !n[!tNoclip!n] !gsatin aldin",TAG)
renkli_yazi(id,"!n[!t%s!n] !g3 Saniye Sonra Normale Doneceksin.",TAG)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
case 8 :
{
if(g_jbpacks[id] >= isyan4 && canli)
{
g_jbpacks[id] -= isyan4
jb_harca[id] += isyan4
esya_al[id] += 1
set_user_rendering(id, kRenderFxGlowShell, 255, 255, 0, kRenderTransAlpha, 0)
set_task(10.0,"gorunmezkapat",id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s] !gT-Shop Menuden !n[!tGorunmezlik!n] !gsatin aldin",TAG)
renkli_yazi(id,"!n[!t%s] !g10 Saniye Sonra Normale Doneceksin.",TAG)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
case 9 :
{
if(g_jbpacks[id] >= isyan3 && canli)
{
g_jbpacks[id] -= isyan3
jb_harca[id] += isyan3
esya_al[id] += 1
set_user_godmode(id,1)
set_task(5.0,"kapat2",id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gT-Shop Menuden !n[!tGodmode!n] !gsatin aldin",TAG)
renkli_yazi(id,"!n[!t%s!n] !g5 Saniye Sonra Normale Doneceksin.",TAG)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
case 12 :
{
if(g_jbpacks[id] >= isyan5 && canli)
{
g_jbpacks[id] -= isyan5
jb_harca[id] += isyan5
esya_al[id] += 1
cs_set_user_model(id, "ndguards")
set_task(10.0,"modelreset",id)
set_task(0.1,"olumlu_ses",id)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
case 5:
{
if(g_jbpacks[id] >= 10 && canli)
{
g_jbpacks[id] -= 10
jb_harca[id] += 10
esya_al[id] += 1
set_user_armor(id,get_user_armor(id) +100)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s] !gT-Shop Menuden !n[!t100 Armor!n] !gsatin aldin",TAG)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gYeterli !n[!tTL!n]' !gniz yok.",TAG)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public ctdisarm(id)
{
new ad[32],sznum[6]
new menu = menu_create("rSecdigin Gardiyani Disarmla","ctdisarm_devam")
for(new i = 1;i<=get_maxplayers();i++)
if(is_user_connected(i) && get_user_team(i) == 2 && is_user_alive(i))
{
num_to_str(i,sznum,5)
get_user_name(i,ad,31)
menu_additem(menu,ad,sznum)
}
menu_display(id,menu, 0)
return PLUGIN_HANDLED
}
public ctdisarm_devam(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)
strip_user_weapons(tid)
give_item(tid,"weapon_knife")
renkli_yazi(0,"!n[!t%s!n] !g%s !nAdli Mahkum !tJB !nile !g%s !nadli gadriyani disarmladi.",TAG,name,ad)
return PLUGIN_HANDLED
}
public ctgom(id)
{
new ad[32],sznum[6]
new menu = menu_create("rSecdigin Gardiyani Gom","ctgom_devam")
for(new i = 1;i<=get_maxplayers();i++)
if(is_user_connected(i) && get_user_team(i) == 2 && is_user_alive(i))
{
num_to_str(i,sznum,5)
get_user_name(i,ad,31)
menu_additem(menu,ad,sznum)
}
menu_display(id,menu, 0)
return PLUGIN_HANDLED
}
public ctgom_devam(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)
new Float: iforigin[3]
pev(tid,pev_origin,iforigin)
iforigin[2] -= 30
set_pev(tid,pev_origin,iforigin)
renkli_yazi(0,"!n[!t%s!n] !g%s !nAdli Mahkum !tJB !nile !g%s !nadli gadriyani gomdu.",TAG,name,ad)
return PLUGIN_HANDLED
}
public theal(id)
{
new players[32],inum;
static tempid;
get_players(players,inum)
for(new i; i<inum; i++)
{
tempid = players[i]
if(get_user_team(tempid) == 1)
{
set_user_health(tempid,get_user_health(tempid) +50)
}
}
}
public modelreset(id)
{
cs_set_user_model(id, "prisioneirosaw")
}
public isinla(id)
{
new name[32],inum[6]
if(get_user_team(id) == 1)
{
new menu = menu_create("rSecdigin Gardiyani Yanina Isinla","isinla_devam")
for(new i = 1;i<=get_maxplayers();i++)
if(is_user_connected(i) && get_user_team(i) == 2 && is_user_alive(i))
{
num_to_str(i,inum,5)
get_user_name(i,name,31)
menu_additem(menu,name,inum)
}
menu_display(id,menu, 0)
}
return PLUGIN_HANDLED
}
public isinla_devam(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[32]
menu_item_getinfo(menu,item,access,data,5,iname,31,callback)
new isim[32]
new tid = str_to_num(data)
get_user_name(id,iname,31)
get_user_name(tid,isim,31)
new Float:szOrigin[3]
pev(id,pev_origin,szOrigin)
szOrigin[0] += 40
set_pev(tid,pev_origin,szOrigin)
renkli_yazi(0,"!n[!g%s!n] !tadli mahkum !n[!g%s!n] !tadli kisiyi JB ile yanina isinladi.",iname,isim)
return PLUGIN_HANDLED;
}
public kapat1(id)
{
set_user_noclip(id,0)
renkli_yazi(id,"!n[!t%s!n] !g3 Sn'lik Noclip Hakkin Doldu.",TAG)
}
public kapat2(id)
{
set_user_godmode(id,0)
renkli_yazi(id,"!n[!t%s!n] !g5 Sn'lik Godmode Hakkin Doldu.",TAG)
}
public gorunmezkapat(id)
{
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255)
renkli_yazi(id,"!n[!t%s!n] !g10 Sn'lik Gorunmezlik Hakkin Doldu.",TAG)
}
public slot_menu(id)
{
new Menu = menu_create("y[y- Amazon y-y] r# wSlot Menusu","slot_devam")
menu_additem(Menu,"w50 Hp","1")
menu_additem(Menu,"wBonus Al w(-y3 Elde 1w-) ","2")
menu_additem(Menu,"wReklam At w(-y+5 TLw-) ","5")
menu_additem(Menu,"wDaha Az Hasar Al","3")
menu_additem(Menu,"w100 Zirh","4")
menu_setprop(Menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,Menu,0)
return PLUGIN_HANDLED
}
public slot_devam(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64]
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
new name [32]
get_user_name(id,name,31)
new key = str_to_num(data)
switch(key)
{
case 1 :
{
set_user_health(id,get_user_health (id) + 50)
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gSlotmenusunden !n[!t+50 HP!n] !galdin.",TAG)
}
case 2 :
{
if(g_bonus[id] >= 3)
{
g_ENGEL[ id ][ YETKILI ] = 1
g_bonus[id] = 0
bonus_al(id)
anamenu(id)
set_task(0.1,"olumlu_ses",id)
}
else
{
set_task(0.1,"olumsuz_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gBonusu 3 elde 1 alabilirsin",TAG)
}
}
case 3 :
{
g_ENGEL[ id ][ YETKILI ] = 1
hasar_azalt[id] = true
anamenu(id)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gSlotmenusunden !n[!tHasar Azalt!n] !galdin.",TAG)
}
case 4 :
{
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
set_user_armor(id,get_user_armor(id) + 100)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gSlotmenusunden !n[!t+ 100 Armor!n] !galdin.",TAG)
}
case 5:
{
g_ENGEL[ id ][ YETKILI ] = 1
anamenu(id)
g_jbpacks[id] += 5
set_task(0.1,"olumlu_ses",id)
renkli_yazi(0,"!t%s!n : !gBol Yetkili Slotluk Ve Komutculuk ucretsizdir.",name)
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public bonus_al(id)
{
switch(random_num(1,6))
{
case 1 :
{
g_jbpacks[id] += 5
renkli_yazi(id,"!n[!t%s!n] !g5 TL Kazandin",TAG)
}
case 2 :
{
g_jbpacks[id] += 5
renkli_yazi(id,"!n[!t%s!n] !g5 TL Kazandin",TAG)
}
case 3 :
{
g_jbpacks[id] += 3
renkli_yazi(id,"!n[!t%s!n] !g1 TL Kazandin",TAG)
}
case 4 :
{
g_jbpacks[id] += 10
renkli_yazi(id,"!n[!t%s!n] !g10 TL Kazandin",TAG)
}
case 5 :{
g_jbpacks[id] += 6
renkli_yazi(id,"!n[!t%s!n] !g6 TL Kazandin",TAG)
}
case 6 :{
g_jbpacks[id] += 4
renkli_yazi(id,"!n[!t%s!n] !g4 TL Kazandin",TAG)
}
}
}
stock in_array(needle, data[], size)
{
for(new i = 0; i < size; i++)
{
if(data[i] == needle)
return i
}
return -1
}
public gorev_menu(id)
{
static Item[64],sure;
new Menu;
formatex(Item,charsmax(Item),"y[y- Amazon y-y] r# wGorev Menu")
Menu = menu_create(Item,"odul_al")
sure = get_user_time(id,1) / 60
if(gardiyan_oldur[id] < 5)
{
formatex(Item,charsmax(Item),"w[r5w] yGardiyan Oldur d[r%d/5d] w[y%d TLw]",gardiyan_oldur[id],get_pcvar_num(gorev_odul1))
menu_additem(Menu,Item,"1")
}
if(gardiyan_oldur[id] >= 5 && gorev1[id] == 0)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi.rOdulunu Almak icin d[y1'ed] rbas.")
menu_additem(Menu,Item,"1")
}
if(gorev1[id] == 1)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi.")
menu_additem(Menu,Item,"1")
}
if(jb_harca[id] < 80)
{
formatex(Item,charsmax(Item),"w[r80w] yTL Harca.d[r%d/80d] w[y%d TLw]",jb_harca[id],get_pcvar_num(gorev_odul2))
menu_additem(Menu,Item,"2")
}
if(jb_harca[id] >= 80 && gorev2[id] == 0)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi.rOdulunu Almak icin d[y2'ed] rbas.")
menu_additem(Menu,Item,"2")
}
if(gorev2[id] == 1)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi.")
menu_additem(Menu,Item,"2")
}
if(mahkum_oldur[id] < 10)
{
formatex(Item,charsmax(Item),"w[r10w] yarkadasini oldur. d[r%d/10d] w[y%d TLw]",mahkum_oldur[id],get_pcvar_num(gorev_odul3))
menu_additem(Menu,Item,"3")
}
if(mahkum_oldur[id] >= 10 && gorev3[id] == 0)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi.rOdulunu Almak icin d[y3'ed] rbas.")
menu_additem(Menu,Item,"3")
}
if(gorev3[id] == 1)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi.")
menu_additem(Menu,Item,"3")
}
if(esya_al[id] < 12)
{
formatex(Item,charsmax(Item),"yToplam w[r12w] yEsya Satin Al d[r%d/12d] w[y%d TLw]",esya_al[id],get_pcvar_num(gorev_odul4))
menu_additem(Menu,Item,"4")
}
if(esya_al[id] >= 12 && gorev4[id] == 0)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi.rOdulunu Almak icin d[y4'ed] rbas.")
menu_additem(Menu,Item,"4")
}
if(gorev4[id] == 1)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi")
menu_additem(Menu,Item,"4")
}
if(g_survive[id] < 8 )
{
formatex(Item,charsmax(Item),"w[r8w] yKez Hayatta Kal d[r%d/8d] w[y%d TLw]",g_survive[id],get_pcvar_num(gorev_odul5))
menu_additem(Menu,Item,"5")
}
if(g_survive[id] >= 8 && gorev5[id] == 0)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi.rOdulunu Almak icin d[y5'ed] rbas.")
menu_additem(Menu,Item,"5")
}
if(gorev5[id] == 1)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi")
menu_additem(Menu,Item,"5")
}
if(sure < 30 )
{
formatex(Item,charsmax(Item),"w[r30w] yDakika Swde Takil.d[r%d/30d] w[y%d TLw]",sure,get_pcvar_num(gorev_odul6))
menu_additem(Menu,Item,"6")
}
if(sure >= 30 && gorev6[id] == 0)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi.rOdulunu Almak icin d[y6'ed] rbas.")
menu_additem(Menu,Item,"6")
}
if(gorev6[id] == 1)
{
formatex(Item,charsmax(Item),"yGorev Tamamlandi")
menu_additem(Menu,Item,"6")
}
menu_setprop(Menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,Menu,0)
return PLUGIN_HANDLED
}
public odul_al(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[32];
menu_item_getinfo(menu,item,access,data,5,iname,31,callback)
get_user_name(id,iname,31)
new odul1 = get_pcvar_num(gorev_odul1)
new odul2 = get_pcvar_num(gorev_odul2)
new odul3 = get_pcvar_num(gorev_odul3)
new odul4 = get_pcvar_num(gorev_odul4)
new odul5 = get_pcvar_num(gorev_odul5)
new odul6 = get_pcvar_num(gorev_odul6)
switch(str_to_num(data))
{
case 1 :
{
if(gardiyan_oldur[id] < 5)
{
gorev_menu(id)
}
if(gardiyan_oldur[id] >= 5 && gorev1[id] == 0)
{
g_jbpacks[id] += odul1
renkli_yazi(id,"!n[!t%s!n] !g5 Gardiyan oldurdugun icin !n[!t%d TL!n] !gkazandin",TAG,odul1)
set_task(0.1,"olumlu_ses",id)
gorev1[id] = 1
}
if(gorev1[id] == 1)
{
gorev_menu(id)
}
}
case 2 :
{
if(jb_harca[id] < 80)
{
gorev_menu(id)
}
if(jb_harca[id] >= 80 && gorev2[id] == 0)
{
g_jbpacks[id] += odul2
renkli_yazi(id,"!n[!t%s!n] !g80 TL harcadigin icin !n[!t%d TL!n] !gkazandin",TAG,odul2)
set_task(0.1,"olumlu_ses",id)
gorev2[id] = 1
}
if(gorev2[id] == 1)
{
gorev_menu(id)
}
}
case 3 :
{
if(mahkum_oldur[id] < 10)
{
gorev_menu(id)
}
if(mahkum_oldur[id] >= 10 && gorev3[id] == 0)
{
g_jbpacks[id] += odul3
renkli_yazi(id,"!n[!t%s!n] !gFF'de 10 Arkadasini vurdugun icin !n[!t%d TL!n] !gkazandin",TAG,odul3)
set_task(0.1,"olumlu_ses",id)
gorev3[id] = 1
}
if(gorev3[id] == 1)
{
gorev_menu(id)
}
}
case 4 :
{
if(esya_al[id] < 12)
{
gorev_menu(id)
}
if(esya_al[id] >= 12 && gorev4[id] == 0)
{
g_jbpacks[id] += odul4
renkli_yazi(id,"!n[!t%s!n] !gToplam 12 Esya aldigin icin !n[!t%d TL!n] !gkazandin",TAG,odul4)
set_task(0.1,"olumlu_ses",id)
gorev4[id] = 1
}
if(gorev4[id] == 1)
{
gorev_menu(id)
}
}
case 5 :
{
if(g_survive[id] < 8 )
{
gorev_menu(id)
}
if(g_survive[id] >= 8 && gorev5[id] == 0)
{
g_jbpacks[id] += odul5
renkli_yazi(id,"!n[!t%s!n] !gToplam 8 kez hayatta kaldigin icin !n[!t%d TL!n] !gkazandin",TAG,odul5)
set_task(0.1,"olumlu_ses",id)
gorev5[id] = 1
}
if(gorev5[id] == 1)
{
gorev_menu(id)
}
}
case 6 :
{
static sure;
sure = get_user_time(id,1) / 60
if(sure < 30 )
{
gorev_menu(id)
}
if(sure >= 30 && gorev6[id] == 0)
{
g_jbpacks[id] += odul6
renkli_yazi(id,"!n[!t%s!n] !gToplam 30 dakika swde durdugun icin !n[!t%d TL!n] !gkazandin",TAG,odul6)
set_task(0.1,"olumlu_ses",id)
gorev6[id] = 1
}
if(gorev6[id] == 1)
{
gorev_menu(id)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public meslek_menu(id)
{
if(select_meslek[id])
{
static Item[64];
new Menu;
formatex(Item,charsmax(Item),"y[y- Amazon y-y] r# wMeslek Menu")
Menu = menu_create(Item,"meslek_sec")
formatex(Item,charsmax(Item),"w(-yRambow-) y[d Az Hasar Alir y]")
menu_additem(Menu,Item,"1")
formatex(Item,charsmax(Item),"w(-yAstronotw-) y[d Yuksek Ziplar y]")
menu_additem(Menu,Item,"2")
formatex(Item,charsmax(Item),"w(-yHirsizw-) y[d 10dk ' da 10 TL Calar y]")
menu_additem(Menu,Item,"4")
formatex(Item,charsmax(Item),"w(-yAvciw-) y[d Her wCT dOldurdugunde y10 dTL Kazanirsin y]")
menu_additem(Menu,Item,"6")
formatex(Item,charsmax(Item),"w(-yTerminatorw-) y[d Her El y150 dHP w+ y150 dArmor y]")
menu_additem(Menu,Item,"7")
formatex(Item,charsmax(Item),"w(-ySansli Adamw-) y[d 3 / 1 Rev Sansi y]")
menu_additem(Menu,Item,"5")
menu_display(id,Menu,0)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gHer Elde 1 Kere Meslek Deyisme Hakkin Vardir",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
return PLUGIN_HANDLED
}
public meslek_sec(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64];
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
switch(str_to_num(data))
{
case 1 : {
if(meslek[id] == 1)
{
renkli_yazi(id,"!n[!t%s!n] !gZaten mesleginiz !n[!tRambo!n]",TAG)
set_task(0.1,"olumsuz_ses",id)
return PLUGIN_HANDLED
}
if(meslek[id] == 4) remove_task(id+600)
select_meslek[id] = false
meslek[id] = 1
set_user_gravity(id,0.8)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gRambo meslegini sectin",TAG)
}
case 2 : {
if(meslek[id] == 2)
{
renkli_yazi(id,"!n[!t%s!n] !gZaten mesleginiz !n[!tAstronot.!n]",TAG)
set_task(0.1,"olumsuz_ses",id)
return PLUGIN_HANDLED
}
if(meslek[id] == 4) remove_task(id+600)
select_meslek[id] = false
meslek[id] = 2
set_user_gravity(id,0.5)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gAstronot meslegini sectin",TAG)
}
case 4 : {
if(meslek[id] == 4)
{
renkli_yazi(id,"!n[!t%s!n] !gZaten mesleginiz !n[!tTL Hirsizi.!n]",TAG)
set_task(0.1,"olumsuz_ses",id)
return PLUGIN_HANDLED
}
select_meslek[id] = false
meslek[id] = 4
set_task(600.0,"GiveJB2",id+600,_,_,"b")
set_user_gravity(id,0.8)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gTL Hirsizi meslegini sectin",TAG)
}
case 5 : {
if(meslek[id] == 5)
{
renkli_yazi(id,"!n[!t%s!n] !gZaten mesleginiz !n[!tSansli Adam.!n]",TAG)
set_task(0.1,"olumsuz_ses",id)
return PLUGIN_HANDLED
}
if(meslek[id] == 4) remove_task(id+600)
select_meslek[id] = false
meslek[id] = 5
set_user_gravity(id,0.8)
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] !gSansli Adam meslegini sectin",TAG)
}
case 6 : {
if(meslek[id] == 6)
{
renkli_yazi(id,"!n[!t%s!n] !gZaten mesleginiz !n[!t Avci. !n]",TAG)
set_task(0.1,"olumsuz_ses",id)
return PLUGIN_HANDLED
}
if(meslek[id] == 4) remove_task(id+600)
select_meslek[id] = false
meslek[id] = 6;
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] ^1Mesleginizi ^3[ ^4Avci ^3] ^1Olarak Sectiniz !",TAG)
}
case 7 : {
if(meslek[id] == 7)
{
renkli_yazi(id,"!n[!t%s!n] !gZaten mesleginiz !n[!t Terminator !n]",TAG)
set_task(0.1,"olumsuz_ses",id)
return PLUGIN_HANDLED
}
if(meslek[id] == 4) remove_task(id+600)
select_meslek[id] = false
meslek[id] = 7;
set_task(0.1,"olumlu_ses",id)
renkli_yazi(id,"!n[!t%s!n] ^1Mesleginizi !n[!t Terminator !n] ^1Olarak Sectiniz !",TAG)
set_user_health(id, 150)
set_user_armor(id, 150)
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public GiveJB2(taskid)
{
new id = taskid - 600;
g_jbpacks[id] += 10
renkli_yazi(id,"!n[!t%s!n] !g10 Daikadir swde oldugun icin 10 TL kazandin",TAG)
set_task(0.1,"olumlu_ses",id)
}
public eDeath2() {
new killer = read_data(1);
new victim = read_data(2);
if(get_user_team(killer) == 1 && get_user_team(victim) == 2 && meslek[killer] == 6) {
jb_set_user_packs(killer,jb_get_user_packs(killer) + 10)
}
}
public isyan_kralligi(id)
{
if(g_bomberman[id])
{
isyan_team_menu(id)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gIsyan-Team Menusune Her el !t1 Defa!g Girebilirsin.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
return PLUGIN_HANDLED
}
public isyan_team_menu(id)
{
if(get_user_flags(id) & ADMIN_IMMUNITY)
{
static Item[64];
new Menu;
formatex(Item,charsmax(Item),"y[y- Amazon y-y] r# wIsyan-Team Menu")
Menu = menu_create(Item,"bombermancim")
formatex(Item,charsmax(Item),"wTakimina Armor Ver y[+100]")
menu_additem(Menu,Item,"4")
formatex(Item,charsmax(Item),"wTakimina HP Ver y[+50]")
menu_additem(Menu,Item,"3")
formatex(Item,charsmax(Item),"wTakimina Bomba Ver y[Flash]")
menu_additem(Menu,Item,"6")
formatex(Item,charsmax(Item),"wTakimina Bomba Ver y[He]")
menu_additem(Menu,Item,"2")
formatex(Item,charsmax(Item),"wTakimina JB Ver y[+10 TL]")
menu_additem(Menu,Item,"1")
menu_setprop(Menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,Menu,0)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gBu Menuye Sadece !tISYANTEAM !gBaskanlari girebilir.",TAG)
set_task(0.1,"olumsuz_ses",id)
anamenu(id)
}
return PLUGIN_HANDLED;
}
public bombermancim(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64]
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
new key = str_to_num(data)
switch(key)
{
case 1 :
{
renkli_yazi(0,"!n[!t%s!n] !gTum isyancilara !n[!t+10 JB!n] !gverildi",TAG)
g_bomberman[id] = false
set_task(0.1,"olumlu_ses",id)
jb_ver(id)
anamenu(id)
}
case 2 :
{
renkli_yazi(0,"!n[!t%s!n] !gTum isyancilara !n[!tBomba!n] !gverildi",TAG)
g_bomberman[id] = false
set_task(0.1,"olumlu_ses",id)
bombaver(id)
anamenu(id)
}
case 6 :
{
renkli_yazi(0,"!n[!t%s!n] !gTum isyancilara !n[!tFlash Bombasi!n] !gverildi",TAG)
g_bomberman[id] = false
set_task(0.1,"olumlu_ses",id)
bombaver2(id)
anamenu(id)
}
case 3 :
{
renkli_yazi(0,"!n[!t%s!n] !gTum isyancilara !n[!t+50 HP!n] !gverildi",TAG)
g_bomberman[id] = false
set_task(0.1,"olumlu_ses",id)
hp_ver(id)
anamenu(id)
}
case 4 :
{
renkli_yazi(0,"!n[!t%s!n] !gTum isyancilara !n[!t+100 ARMOR!n] !gverildi",TAG)
g_bomberman[id] = false
set_task(0.1,"olumlu_ses",id)
armor_ver(id)
anamenu(id)
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public jb_ver(id)
{
new players[32],inum;
static tempid;
get_players(players,inum)
for(new i; i<inum; i++)
{
tempid = players[i]
if(get_user_team(tempid) == 1 && get_user_flags(tempid) & ADMIN_RESERVATION)
{
g_jbpacks[tempid] += 10
}
}
}
public bombaver(id)
{
new players[32],inum;
static tempid;
get_players(players,inum)
for(new i; i<inum; i++)
{
tempid = players[i]
if(get_user_team(tempid) == 1 && get_user_flags(tempid) & ADMIN_RESERVATION)
{
give_item(tempid,"weapon_hegrenade")
}
}
}
public bombaver2(id)
{
new players[32],inum;
static tempid;
get_players(players,inum)
for(new i; i<inum; i++)
{
tempid = players[i]
if(get_user_team(tempid) == 1 && get_user_flags(tempid) & ADMIN_RESERVATION)
{
give_item(tempid,"weapon_flashbang")
}
}
}
public hp_ver(id)
{
new players[32],inum;
static tempid;
get_players(players,inum)
for(new i; i<inum; i++)
{
tempid = players[i]
if(get_user_team(tempid) == 1 && get_user_flags(tempid) & ADMIN_RESERVATION)
{
set_user_health(tempid,get_user_health(tempid) +50)
}
}
}
public armor_ver(id)
{
new players[32],inum;
static tempid;
get_players(players,inum)
for(new i; i<inum; i++)
{
tempid = players[i]
if(get_user_team(tempid) == 1 && get_user_flags(tempid) & ADMIN_RESERVATION)
{
set_user_armor(tempid,get_user_armor(tempid) + 100)
}
}
}
public ucretsiz_al(id)
{
switch(random_num(1,1)){
case 1 :
{
g_jbpacks[id] += 10
}
}
}
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;
}
public Event_Change_Weapon(id)
{
new weaponID = read_data(2)
switch (get_user_team(id))
{
case 1:
{
if(Speed[id])
{
set_user_maxspeed(id, 600.0)
}
if(weaponID == CSW_KNIFE)
{
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(karambit[id])
{
set_pev(id, pev_viewmodel2, VIEW_Karambit)
set_pev(id, pev_weaponmodel2, PLAYER_Karambit)
}
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)
}
}
}
if(meslek[id] == 2)
{
set_user_gravity(id,0.7)
}
return PLUGIN_CONTINUE;
}
public fw_SetModel(entity, model[])
{
new className[33]
if(!pev_valid(entity))
return FMRES_IGNORED
if(!equali(model, OLDWORLD_MODEL))
return FMRES_IGNORED
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(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;
}
public FwdTakeDamage(victim, inflictor, attacker, Float:damage, damage_bits)
{
if(!is_valid_player(attacker) || !is_valid_player(victim)) return HAM_IGNORED
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(karambit[attacker])
{
SetHamParamFloat(4, get_pcvar_float(karambitDano))
}
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((damage_bits & DMG_FALL) && g_yuksek[victim])
{
return HAM_SUPERCEDE
}
if(is_valid_player(attacker) && g_hasar[attacker])
{
damage *= get_pcvar_float(hasar_miktar)
SetHamParamFloat(4,damage)
}
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 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 get_godmode()
{
new ctsayisi, godluct
for( new i = 1; i<(get_maxplayers() + 1); i++)
{
if(is_user_connected(i) && get_user_team(i) == 2 && is_user_alive(i))
{
ctsayisi++
if(!pev(i,pev_takedamage))
{
godluct++
}
}
}
if(godluct == ctsayisi && ctsayisi > 0)
{
return 1
}
else if(godluct != ctsayisi && godluct > 0)
{
return godluct
}
else if(godluct == 0 && ctsayisi > 0)
{
return 0
}
else
{
return 0
}
return PLUGIN_HANDLED
}
/*============================================================
Stocks!
============================================================*/
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
replace_all(msg, 190, "!g", "^x04"); // Yeşil Renk
replace_all(msg, 190, "!t", "^x03"); // Takım Renk( CT mavi , T kırmızı )
if (id) players[0] = id; else get_players(players, count, "ch"); {
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team