cs 1.6 base builder bbmenu plugini 2017
COUNTER STRİKE 1.6 BASE-BUİLDER BBMENU V1 PLUGİNİ FULL !
Counter Strike 1.6 için Yepyeni NatronAbi Web site Tarafından Yapılmıştır !!!
hepsini bir metin belgesine kopyalayıp bbmenu.sma olarak kaydedin !
KOD ;
*************************************
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <fakemeta>
#include <engine>
#include <basebuilder>
#define M4A1_HASAR 2.1 /*Kac vurdugunu ayarlayabilirsiniz...*/
#define AWP_HASAR 5.0 /*Kac vurdugunu ayarlayabilirsiniz...*/
#define ADMIN_FLAG ADMIN_LEVEL_A
#define fm_cs_set_weapon_ammo(%1,%2) set_pdata_int(%1, 51, %2, 4)
#define ServerName "KaraKaleBB"
#define tag "^1[^4 KaraKaleBB^1]^3"
#if defined _colorchat_included
#endinput
#endif
#define _colorchat_included
enum Color
{
NORMAL = 1, // clients scr_concolor cvar color
GREEN, // Green Color
TEAM_COLOR, // Red, grey, blue
GREY, // grey
RED, // Red
BLUE, // Blue
}
new TeamName[][] =
{
"",
"TERRORIST",
"CT",
"SPECTATOR"
}
ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
if( !get_playersnum() ) return;
new message[256];
switch(type)
{
case NORMAL: // clients scr_concolor cvar color
{
message[0] = 0x01;
}
case GREEN: // Green
{
message[0] = 0x04;
}
default: // White, Red, Blue
{
message[0] = 0x03;
}
}
vformat(message[1], 251, msg, 4);
// Make sure message is not longer than 192 character. Will crash the server.
message[192] = '^0';
new team, ColorChange, index, MSG_Type;
if(id)
{
MSG_Type = MSG_ONE;
index = id;
} else {
index = FindPlayer();
MSG_Type = MSG_ALL;
}
team = get_user_team(index);
ColorChange = ColorSelection(index, MSG_Type, type);
ShowColorMessage(index, MSG_Type, message);
if(ColorChange)
{
Team_Info(index, MSG_Type, TeamName[team]);
}
}
ShowColorMessage(id, type, message[])
{
static bool:saytext_used;
static get_user_msgid_saytext;
if(!saytext_used)
{
get_user_msgid_saytext = get_user_msgid("SayText");
saytext_used = true;
}
message_begin(type, get_user_msgid_saytext, _, id);
write_byte(id)
write_string(message);
message_end();
}
Team_Info(id, type, team[])
{
static bool:teaminfo_used;
static get_user_msgid_teaminfo;
if(!teaminfo_used)
{
get_user_msgid_teaminfo = get_user_msgid("TeamInfo");
teaminfo_used = true;
}
message_begin(type, get_user_msgid_teaminfo, _, id);
write_byte(id);
write_string(team);
message_end();
return 1;
}
ColorSelection(index, type, Color:Type)
{
switch(Type)
{
case RED:
{
return Team_Info(index, type, TeamName[1]);
}
case BLUE:
{
return Team_Info(index, type, TeamName[2]);
}
case GREY:
{
return Team_Info(index, type, TeamName[0]);
}
}
return 0;
}
FindPlayer()
{
new i = -1;
while(i <= get_maxplayers())
{
if(is_user_connected(++i))
return i;
}
return -1;
}
const NOCLIP_WPN_BS = ((1<<CSW_HEGRENADE)|(1<<CSW_SMOKEGRENADE)|(1<<CSW_FLASHBANG)|(1<<CSW_KNIFE)|(1<<CSW_C4))
new const g_MaxClipAmmo[] = {
0, 13, 0, 10, 0, 7, 0, 30, 30, 0, 15, 20, 25, 30, 35, 25, 12, 20,
10, 30, 100, 8, 30, 30, 20, 0, 7, 30, 30, 0, 50
}
new g_isZombie[33];
new Getuserhumankill[33];
new Getuserzombiekill[33];
new Getuserhskill[33];
new Getuserdies[33];
new Getuseruzikill[33];
new Getuserdeaglekill[33];
new Getuserknifekill[33];
// BOOLS
new gorev1[33];
new gorev2[33];
new gorev3[33];
new gorev4[33];
new on_human[33];
new g_survive[33];
new yirmi_zombie[33];
new harca_kazan[33];
// CVARS
new g1,g2,g3,g4
new gorev_odul1,gorev_odul2,gorev_odul3,gorev_odul4
new g_killTL
g_baslangic = register_cvar("bb_baslangictl", "5")
g_killTL = register_cvar("bb_killtl",
new VIEW_M4A1GOLD[] = "models/basebuilder/v_goldm4a1.mdl";
new PLAYER_M4A1GOLD[] = "models/basebuilder/p_goldm4a1.mdl";
new VIEW_OZELAWP[] = "models/v_awp.mdl";
new PLAYER_OZELAWP[] = "models/p_awp.mdl";
new TL[33], Gorunmezlik[33], syncObj,
bool:engel1[33], bool:engel2[33],
bool:m4a1[33], bool:awp[33]
new gidPlayer[33], quitar[33], regalar[33], unammocuk[33]
new bool:timeout[33];
new meslek[33];
new healtime2[33];
public plugin_init() {
register_clcmd("say /bbmenu", "basebuilder_menu")
register_clcmd("eintl", "tlver")
register_clcmd("nightvision", "basebuilder_menu")
register_clcmd("TLMiktari", "playernow")
register_event("CurWeapon", "HookCurWeapon", "be", "1=1")
register_event("DeathMsg", "eDeathh", "a");
register_event("DeathMsg","eDeath","a")
register_logevent("YeniTur", 2, "1=Round_Start")
register_logevent("ElSonu", 2, "1=Round_End")
register_event("CurWeapon", "HookCurWeapon", "be", "1=1")
RegisterHam(Ham_Spawn, "player", "FwdHamPlayerSpawn", 1)
RegisterHam(Ham_TakeDamage, "player", "silahhasar", 0);
register_event("CurWeapon" , "Event_CurWeapon" , "be" , "1=1" );
register_message(get_user_msgid("StatusIcon"), "Msg_StatusIcon")
g2 = register_cvar("ct_zombi", "5000")
g3 = register_cvar("ct_deagle", "5000")
g4 = register_cvar("ct_uzi", "5000")
gorev_odul1 = register_cvar("bb_gorevodul1", "10")
gorev_odul2 = register_cvar("bb_gorevodul2", "10") //tl ayarlari
gorev_odul3 = register_cvar("bb_gorevodul3", "10")
gorev_odul4 = register_cvar("bb_gorevodul4", "15")
}
public Event_CurWeapon(id){
if(unammocuk[id]){
new iWeapon = read_data(2)
if( !( NOCLIP_WPN_BS & (1<<iWeapon) ) )
{
fm_cs_set_weapon_ammo( get_pdata_cbase(id, 373) , g_MaxClipAmmo[ iWeapon ] )
}
}
}
public plugin_natives()
{
register_native("bb_is_user_zombie","native_is_user_zombie", 1)
}
public plugin_precache()
{
precache_model(VIEW_M4A1GOLD)
precache_model(PLAYER_M4A1GOLD)
precache_model(VIEW_OZELAWP)
precache_model(PLAYER_OZELAWP)
syncObj = CreateHudSyncObj()
}
public tlver(id)
{
if(get_user_flags(id) & ADMIN_RCON)
{
static jailbreak[64]
formatex(jailbreak, sizeof(jailbreak) - 1, "\r[\y%s\r] \wTL Ver lan tirrek / Al len tirrek", ServerName)
new menu = menu_create(jailbreak, "mgveral2")
formatex(jailbreak, sizeof(jailbreak) - 1, "\yTL Ver")
menu_additem(menu, jailbreak, "1")
formatex(jailbreak, sizeof(jailbreak) - 1, "\yTL Al")
menu_additem(menu, jailbreak, "2")
formatex(jailbreak, sizeof(jailbreak) - 1, "\yCikis")
menu_setprop(menu, MPROP_EXITNAME, jailbreak)
menu_display(id, menu, 0)
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
public mgveral2(id, menu, item)
{
if(item == MENU_EXIT) {
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[32], Access, Callback
menu_item_getinfo(menu, item, Access, data, sizeof(data) - 1, iName, sizeof(iName) - 1, Callback)
switch(str_to_num(data)) {
case 1: {
regalar[id] = 1
quitar[id] = 0
escojer(id)
}
case 2: {
regalar[id] = 0
quitar[id] = 1
escojer(id)
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public escojer(id)
{
static jailbreak[64]
formatex(jailbreak, sizeof(jailbreak) - 1, "\r[\y%s\r] \wOyuncu Secin", ServerName)
new menu = menu_create(jailbreak, "escojer2")
new players[32], pnum, tempid, szName[32], szTempid[10]
get_players(players, pnum, "a")
for( new i; i<pnum; i++ ) {
tempid = players[i]
get_user_name(tempid, szName, sizeof(szName) - 1)
num_to_str(tempid, szTempid, sizeof(szTempid) - 1)
formatex(jailbreak, sizeof(jailbreak) - 1, "\d[\y%s] \r~ \d[\y%i\d]", szName, TL[tempid])
menu_additem(menu, jailbreak, szTempid, 0)
}
menu_display(id, menu)
return PLUGIN_HANDLED;
}
public escojer2(id, menu, item) {
if(item == MENU_EXIT) {
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[32], Access, Callback
menu_item_getinfo(menu, item, Access, data, sizeof(data) - 1, iName, sizeof(iName) - 1, Callback)
new tempid = str_to_num(data)
gidPlayer[id] = tempid
client_cmd(id, "messagemode TLMiktari")
menu_destroy(menu)
return PLUGIN_HANDLED;
}
public playernow(id) {
if(!(get_user_flags(id) & ADMIN_IMMUNITY)) {
return PLUGIN_HANDLED;
}
new say[300]
read_args(say, sizeof(say) - 1)
remove_quotes(say)
if(!is_str_num(say) || equal(say, "")) {
return PLUGIN_HANDLED;
}
tlmiktarinow(id, say)
return PLUGIN_CONTINUE;
}
tlmiktarinow(id, say[]) {
new amount = str_to_num(say)
new victim = gidPlayer[id]
new zName[32]
get_user_name(victim, zName, sizeof(zName) - 1)
if(regalar[id]) {
if(amount < 1) {
return PLUGIN_HANDLED;
}
if(amount > 999999) {
return PLUGIN_HANDLED;
}
TL[victim] += amount
client_printc(0, "!t[!g%s!t] !n'!t%s!n' !nadli kisiye !t%i !ntl verdi!", ServerName, zName, amount)
}
if(quitar[id]) {
if(amount > TL[victim]) {
TL[victim] = 0
client_printc(0, "!t[!g%s!t] !n'!t%s!n' !nadli kisinin Tum TL'lerini aldi", ServerName, zName)
} else {
TL[victim] -= amount
client_printc(0, "!t[!g%s!t] !n'!t%s!n' !nadli kisiden !t%i !ntl aldi", ServerName, zName, amount)
}
}
return PLUGIN_HANDLED;
}
public FwdHamPlayerSpawn(id)
{
m4a1[id] = false
awp[id] = false
Gorunmezlik[id] = -1
set_entity_visibility(id, 1)
}
public YeniTur()
{
new players[32], inum;
static Uid;
get_players(players, inum, "a")
for(new i; i < inum; i++) {
Uid = players[i];
Gorunmezlik[Uid] = -1
engel1[Uid] = false
engel2[Uid] = false
m4a1[Uid] = false
awp[Uid] = false
set_entity_visibility(Uid, 1)
}
}
public ElSonu() {
new players[32], inum;
static Uid;
get_players(players, inum, "a")
for(new i; i < inum; i++) {
Uid = players[i];
Gorunmezlik[Uid] = -1
engel1[Uid] = false
engel2[Uid] = false
m4a1[Uid] = false
awp[Uid] = false
set_entity_visibility(Uid, 1)
}
server_cmd("amx_disarm @all")
server_cmd("amx_unammo @all 0")
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4Silah Bugu ve Unammo bugu yasaklanmistir.")
}
public Msg_StatusIcon(msgid, msgdest, id)
{
static szMsg[8]
get_msg_arg_string(2, szMsg, sizeof(szMsg) - 1)
if(equal(szMsg, "buyzone") && get_msg_arg_int(1))
{
set_pdata_int(id, 235, get_pdata_int(id, 235) & ~(1 << 0))
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
public silahhasar(pevVictim, pevInflictor, pevAttacker, Float:flDamage, iDmgBits)
{
if(!(1 <= pevAttacker <= get_maxplayers())) {
return HAM_HANDLED;
}
if(!is_user_alive(pevAttacker)) {
return HAM_HANDLED;
}
if(get_user_team(pevAttacker)) {
if(m4a1[pevAttacker]) {
SetHamParamFloat(4, flDamage * M4A1_HASAR);
}
if(awp[pevAttacker]) {
SetHamParamFloat(4, flDamage * AWP_HASAR);
}
}
return HAM_IGNORED;
}
public basebuilder_menu(id)
{
new menu = menu_create("\yKaraKaleBB \r// \yBy Emrullah Ertas^n \wOzel Surum", "basebuilder_menu2")
if(bb_is_user_zombie(id))
{
if(engel1[id])
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rHp Shop\y] \r[\wKullandiniz\r]", "1", 0);
else
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rHp Shop\y]", "1", 0);
}
else
{
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rHp Shop\y]", "1", 0);
}
if(bb_is_user_zombie(id))
{
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rSilah Shop\y]", "2", 0);
}
else
{
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rSilah Shop\y]", "2", 0);
}
if(bb_is_user_zombie(id))
{
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rItem Shop\y]", "3", 0);
}
else
{
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rItem Shop\y]", "3", 0);
}
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rDoviz Brosu\y]", "4", 0);
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rGorev Menu\y]", "5", 0);
if(get_user_flags(id) & ADMIN_RESERVATION)
{
if(engel2[id])
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rOzel Menu\y] [\wKullanildi\y]", "6", 0);
else
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rOzel Menu \w(Yetkili)\y]", "6", 0);
}
else
{
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\rOzel Menu\y] \r[\wYetkililere Ozel\r]", "6", 0);
}
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\wMeslek Menu\y]", "7", 0);
if(get_user_flags(id) & ADMIN_RESERVATION)
{
if(engel2[id])
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\wSlot Menu\y] [\wKullanildi\y]", "8", 0);
else
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\wSlot Menu\y]", "8", 0);
}
else
{
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\wSlot Menu\y] \r[\wSlotlarimiza Ozel\r]", "8", 0);
}
if(bb_is_user_zombie(id))
{
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\wCT Gec \y= \r20 TL\y]", "9", 0);
}
else
{
menu_additem(menu, "\y[KaraKaleBB ] \w// \y[\wCT Gec \r(CT DESIN!)\y]", "9", 0);
}
menu_additem(menu, "\rCikis", "0", 0);
menu_setprop(menu, MPROP_PERPAGE, 0)
menu_display(id, menu, 0)
return PLUGIN_HANDLED;
}
public basebuilder_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, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
if(bb_is_user_zombie(id))
{
if(engel1[id])
{
client_printc(id, "!t[!gKaraKaleBB !t] !nBu El HPMenuyu Kullandiniz")
basebuilder_menu(id)
}
else
{
zmhpmenu(id)
}
}
else
{
cthpmenu(id)
}
}
case 2: {
if(bb_is_user_zombie(id))
{
client_printc(id, "!t[!gKaraKaleBB !t] !tZombiler buraya !g Giremez..")
basebuilder_menu(id)
}
else
{
insanmenu(id)
}
}
case 3: {
if(bb_is_user_zombie(id))
{
zombiitemmenu(id)
}
else
{
ctitemmenu(id)
}
}
case 4: {
dovizburosu(id)
}
case 5: {
gorev_menu(id)
}
case 6: {
if(get_user_flags(id) & ADMIN_RESERVATION)
{
if(engel2[id])
basebuilder_menu(id)
else
zm_yetkilimenu(id)
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !gYetkin Yok. !tGiremessin...")
basebuilder_menu(id)
}
}
case 7: {
meslekmenu(id)
}
case 8: {
if(get_user_flags(id) & ADMIN_RESERVATION)
{
if(engel2[id])
basebuilder_menu(id)
else
bbslotmenu(id)
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !gYetkin Yok. !tGiremessin...")
basebuilder_menu(id)
}
}
case 9: {
if(bb_is_user_zombie(id))
{
ct_gec(id)
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !tZATEN !gCT ' !tDESIN!")
basebuilder_menu(id)
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public gorev_menu(id)
{
if(is_user_alive(id))
{
static Item[64]
formatex(Item,charsmax(Item),"\wGorev Menusu")
new menu = menu_create(Item,"odul_al")
if(harca_kazan[id] < 40)
{
formatex(Item,charsmax(Item),"\y40 TL Harca \w[\r%i/40\w] \y[%d TL]",harca_kazan[id],get_pcvar_num(gorev_odul1))
menu_additem(menu,Item,"1")
}
if(harca_kazan[id] >= 40 && gorev1[id] == 0)
{
formatex(Item,charsmax(Item),"\yGorev Tamamlandi.\rOdulunu Almak Icin 1'e Bas.")
menu_additem(menu,Item,"1")
}
if(gorev1[id] == 1)
{
formatex(Item,charsmax(Item),"\yTamamlandi")
menu_additem(menu,Item,"1")
}
if(on_human[id] < 10)
{
formatex(Item,charsmax(Item),"\y10 Insan Oldur \w[\r%i/10\w] \y[%d TL]",on_human[id],get_pcvar_num(gorev_odul2))
menu_additem(menu,Item,"2")
}
if(on_human[id] >= 10 && gorev2[id] == 0)
{
formatex(Item,charsmax(Item),"\yGorev Tamamlandi.\rOdulunu Almak Icin 2'e Bas.")
menu_additem(menu,Item,"2")
}
if(gorev2[id] == 1)
{
formatex(Item,charsmax(Item),"\yTamamlandi")
menu_additem(menu,Item,"2")
}
if(g_survive[id] < 15)
{
formatex(Item,charsmax(Item),"\y15 Kez Hayatta Kal \w[\r%i/15\w] \y[%d TL]",g_survive[id],get_pcvar_num(gorev_odul3))
menu_additem(menu,Item,"3")
}
if(g_survive[id] >= 15 && gorev3[id] == 0)
{
formatex(Item,charsmax(Item),"\yGorev Tamamlandi.\rOdulunu Almak Icin 3'e Bas.")
menu_additem(menu,Item,"3")
}
if(gorev3[id] == 1)
{
formatex(Item,charsmax(Item),"\yTamamlandi")
menu_additem(menu,Item,"3")
}
if(yirmi_zombie[id] < 20)
{
formatex(Item,charsmax(Item),"\y20 Zombi Oldur \w[\r%i/20\w] \y[%d TL]",yirmi_zombie[id],get_pcvar_num(gorev_odul4))
menu_additem(menu,Item,"4")
}
if(yirmi_zombie[id] >= 20 && gorev4[id] == 0)
{
formatex(Item,charsmax(Item),"\yGorev Tamamlandi.\rOdulunu Almak Icin 4'e Bas.")
menu_additem(menu,Item,"4")
}
if(gorev4[id] == 1)
{
formatex(Item,charsmax(Item),"\yTamamlandi")
menu_additem(menu,Item,"4")
}
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu,0)
}
}
public odul_al(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 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)
switch(str_to_num(data))
{
case 1 :
{
if(harca_kazan[id] < 40 && gorev1[id] == 0)
{
gorev_menu(id)
}
if(harca_kazan[id] >= 40 && gorev1[id] == 0)
{
TL[id] += odul1
client_printc(id,"!n[!t%s!n] !g25 TL Harcadigin icin !n[!t%d TL!n] !gkazandin",odul1)
gorev1[id] = 1
}
if(gorev1[id] == 1)
{
gorev_menu(id)
}
}
case 2 :
{
if(on_human[id] < 10 && gorev2[id] == 0)
{
gorev_menu(id)
}
if(on_human[id] >= 10 && gorev2[id] == 0)
{
TL[id] += odul2
client_printc(id,"!n[!t%s!n] !g10 insan oldurerek !n[!t%d TL!n] !gkazandin",odul2)
gorev2[id] = 1
}
if(gorev2[id] == 1)
{
gorev_menu(id)
}
}
case 3 :
{
if(g_survive[id] < 15 && gorev3[id] == 0)
{
gorev_menu(id)
}
if(g_survive[id] >= 15 && gorev3[id] == 0)
{
TL[id] += odul3
client_printc(id,"!n[!t%s!n] !g15 Kez hayatta ladigib icin !n[!t%d TL!n] !gkazandin",odul3)
gorev3[id] = 1
}
if(gorev3[id] == 1)
{
gorev_menu(id)
}
}
case 4 :
{
if(yirmi_zombie[id] < 20 && gorev4[id] == 0)
{
gorev_menu(id)
}
if(yirmi_zombie[id] >= 20 && gorev4[id] == 0)
{
TL[id] += odul4
client_printc(id,"!n[!t%s!n] !g20 zombi oldurerek !n[!t10 TL!n] !gkazandin",odul4)
gorev4[id] = 1
}
if(gorev4[id] == 1)
{
gorev_menu(id)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public fw_player_killed(victim, attacker, shouldgib)
{
if(get_user_team(attacker) == 1)
{
on_human[attacker] += 1
TL[attacker] += get_pcvar_num(g_killTL)
}
else
{
yirmi_zombie[attacker] += 1
TL[attacker] += get_pcvar_num(g_killTL)
}
}
public adminlikfiyat(id)
{
new menu = menu_create("\yAdminlik \wFiyatlari", "adminlikfiyatgir")
menu_additem(menu, "\y[KaraKaleBB] \w// \y[\r1 Aylik Normal Adminlik \w15 TL\y]", "1", 0);
menu_additem(menu, "\y[KaraKaleBB] \w// \y[\r1 Aylik VIP Adminlik \w20 TL\y]", "2", 0);
menu_additem(menu, "\y[KaraKaleBB] \w// \y[\r1 Aylik Elit Adminlik \w25 TL\y]", "3", 0);
menu_additem(menu, "\y[KaraKaleBB] \w// \y[\r1Aylik Yonetim [Panelli] \w35TL\y]", "4", 0);
menu_additem(menu, "\y[KaraKaleBB] \w// \y[\r2 Aylik Vip Adminlik \w35 TL\y]", "5", 0);
menu_additem(menu, "\y[KaraKaleBB] \w// \y[\r2 Aylik Elit Adminlik \w40 TL\y]", "6", 0);
menu_additem(menu, "\y[KaraKaleBB] \w// \y[\r2 Aylik Yonetim [Panelli] \w60 TL\y]", "7", 0);
menu_additem(menu, "\y[KaraKaleBB] \w// \y[\wSlotluk = \rUcretsiz!! \y]", "8", 0);
menu_additem(menu, "\y[KaraKaleBB] \w// \y[\wTs3 Hizli \rGiris \y]", "9", 0);
menu_additem(menu, "\rCikis", "0", 0);
menu_setprop(menu, MPROP_PERPAGE, 0)
menu_display(id, menu, 0)
return PLUGIN_HANDLED;
}
public adminlikfiyatgir(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, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
client_printc(id, "!t[!gKaraKaleBB !t] !tSeceneklere Basmak Yasaklidir.")
adminlikfiyat(id)
}
case 2: {
client_printc(id, "!t[!gKaraKaleBB !t] !tSeceneklere Basmak Yasaklidir.")
adminlikfiyat(id)
}
case 3: {
client_printc(id, "!t[!gKaraKaleBB !t] !tSeceneklere Basmak Yasaklidir.")
adminlikfiyat(id)
}
case 4: {
client_printc(id, "!t[!gKaraKaleBB !t] !tSeceneklere Basmak Yasaklidir.")
adminlikfiyat(id)
}
case 5: {
client_printc(id, "!t[!gKaraKaleBB !t] !tSeceneklere Basmak Yasaklidir.")
adminlikfiyat(id)
}
case 6: {
client_printc(id, "!t[!gKaraKaleBB !t] !tSeceneklere Basmak Yasaklidir.")
adminlikfiyat(id)
}
case 7: {
client_printc(id, "!t[!gKaraKaleBB !t] !tSeceneklere Basmak Yasaklidir.")
adminlikfiyat(id)
}
case 8: {
client_printc(id, "!t[!gKaraKaleBB !t] !tSlotluk Ucretsizdir /ts3")
adminlikfiyat(id)
}
case 9: {
client_cmd(id, "say /ts3")
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public meslekmenu(id) {
new menu = menu_create("\rKaraKaleBB \d| \yMeslek Menu","menu_handler")
menu_additem(menu,"\yDoktor \d[Baskalarina Can Verir] \r(E Tusu)","1")
menu_additem(menu,"\yAvci \d[CT Oldur 1500 $ Kazan]","2")
menu_additem(menu,"\yHirsiz \d[2 Dakikada 1000 $ Calar] ","3")
menu_additem(menu,"\yIssiz \d[Issiz Dolasicam] ","4")
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
return PLUGIN_HANDLED
}
public menu_handler(id,menu,item) {
if(item == MENU_EXIT) {
menu_destroy(menu)
return PLUGIN_HANDLED
}
new name[64],data[6];
new access,callback;
menu_item_getinfo(menu,item,access,data,5,name,63,callback)
switch(str_to_num(data)) {
case 1:{
if(timeout[id]) {
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1En az bir el dolmadan meslek degistiremezsiniz.")
return PLUGIN_HANDLED
}
if(meslek[id] == 1) {
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Mesleginiz Zaten ^3[ ^4Doktor ^3] !")
return PLUGIN_HANDLED
}
if(meslek[id] == 3) remove_task(id+513)
timeout[id] = true;
meslek[id] = 1;
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Mesleginizi ^3[ ^4Doktor ^3] ^1Olarak Sectiniz !")
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Can vermek istediginiz kisiye dogru bakarak ^3[ ^4E ^3] tusuna basin.")
}
case 2:{
if(timeout[id]) {
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1En az bir el dolmadan meslek degistiremezsiniz.")
return PLUGIN_HANDLED
}
if(meslek[id] == 2) {
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Mesleginiz Zaten ^3[ ^4Avci ^3] !")
return PLUGIN_HANDLED
}
if(meslek[id] == 3) remove_task(id+513)
timeout[id] = true;
meslek[id] = 2;
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Mesleginizi ^3[ ^4Avci ^3] ^1Olarak Sectiniz !")
}
case 3:{
if(timeout[id]) {
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1En az bir el dolmadan meslek degistiremezsiniz.")
return PLUGIN_HANDLED
}
if(meslek[id] == 3) {
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Mesleginiz Zaten ^3[ ^4TL Hirsizi ^3] !")
return PLUGIN_HANDLED
}
timeout[id] = true;
meslek[id] = 3;
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Mesleginizi ^3[ ^4TL Hirsizi ^3] ^1Olarak Sectiniz !")
set_task(120.0,"GiveJB2",id+600,_,_,"b")
}
case 4:{
if(timeout[id]) {
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1En az bir el dolmadan meslek degistiremezsiniz.")
return PLUGIN_HANDLED
}
if(meslek[id] == 4) {
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Mesleginiz Zaten ^3[ ^4Issiz ^3] !")
return PLUGIN_HANDLED
}
timeout[id] = true;
meslek[id] = 4;
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Mesleginizi ^3[ ^4Issiz ^3] ^1Olarak Sectiniz !")
cs_set_user_money(id,cs_get_user_money(id) + 10)
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public fw_EmitSound2( id, iChannel, szSound[], Float:flVol, Float:flAtt, iFlags, iPitch ) {
if( equal( szSound, "common/wpn_denyselect.wav" ) && meslek[id] == 1){
new Uid,body,Float:dist;
dist = get_user_aiming(id,Uid,body)
if(Uid) {
if(dist > 70.0) {
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Hedef Cok Uzakta !")
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1HEALTHKIT = %d/2",healtime2[id])
}
else {
if(!healtime2[id]) {
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Hakkiniz Doldu Sonraki Eli Bekleyin. !")
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1HEALTHKIT = 0/2")
}
else {
--healtime2[id];
client_print(id,print_center,"HEALTHKIT = %d/2",healtime2[id])
set_user_health(Uid,get_user_health(Uid) + 20)
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Hedefe ^3[^4 5000 HP ^3] Verildi !")
}
}
}
}
}
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] == 2) {
cs_set_user_money(killer,cs_get_user_money(killer) + 500)
ColorChat(killer,GREEN ,"^3[^4 KaraKaleBB ^3] ^1Bir CT oldurdugunuz icin ^3[^4 1500 Dolar ^3] ^1kazandiniz !")
}
}
public GiveJB2(taskid) {
new id = taskid - 600;
cs_set_user_money(id,cs_get_user_money(id) + 1000)
ColorChat(id,GREEN ,"^3[^4 KaraKaleBB ^3]^3 2 dakikadir ^1oyunda oldugunuz icin. ^3[^4 1000 Dolar ^3] ^1kazandiniz !")
}
public ct_gec(id)
{
if(TL[id] >= 20)
{
TL[id] -= 20
cs_set_user_team(id, CS_TEAM_CT)
ExecuteHamB(Ham_CS_RoundRespawn,id)
new isim[18]
get_user_name(id,isim,17)
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4%s ^1Nickli Kisi ^3[ ^4 20 TL ^3] ^1'Vererek ^3CT ^1Takimina Gecti.",isim)
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4%s ^1Nickli Kisi ^3[ ^4 20 TL ^3] ^1'Vererek ^3CT ^1Takimina Gecti.",isim)
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4%s ^1Nickli Kisi ^3[ ^4 20 TL ^3] ^1'Vererek ^3CT ^1Takimina Gecti.",isim)
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4%s ^1Nickli Kisi ^3[ ^4 20 TL ^3] ^1'Vererek ^3CT ^1Takimina Gecti.",isim)
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4%s ^1Nickli Kisi ^3[ ^4 20 TL ^3] ^1'Vererek ^3CT ^1Takimina Gecti.",isim)
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4%s ^1Nickli Kisi ^3[ ^4 20 TL ^3] ^1'Vererek ^3CT ^1Takimina Gecti.",isim)
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4%s ^1Nickli Kisi ^3[ ^4 20 TL ^3] ^1'Vererek ^3CT ^1Takimina Gecti.",isim)
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4%s ^1Nickli Kisi ^3[ ^4 20 TL ^3] ^1'Vererek ^3CT ^1Takimina Gecti.",isim)
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4%s ^1Nickli Kisi ^3[ ^4 20 TL ^3] ^1'Vererek ^3CT ^1Takimina Gecti.",isim)
ColorChat(0,GREEN ,"^3[^4 KaraKaleBB ^3] ^4%s ^1Nickli Kisi ^3[ ^4 20 TL ^3] ^1'Vererek ^3CT ^1Takimina Gecti.",isim)
}
else
{
client_printc(id, "!t[!gKaraKaleBB!t] !nYeterli Paran Yok")
}
}
public zm_yetkilimenu(id)
{
if(!is_user_alive(id))
return PLUGIN_HANDLED;
if(get_user_flags(id))
{
new menu = menu_create("\yKaraKaleBB ~\yZombie World~ \r// \yYetkili Menu", "zm_yetkilimenu1")
menu_additem(menu, "\y[KaraKaleBB ] \r// \wNormal Admin", "1", 0, ADMIN_BAN);
menu_additem(menu, "\y[KaraKaleBB ] \r// \wVIP Admin", "2", 0, ADMIN_BAN);
menu_additem(menu, "\y[KaraKaleBB ] \r// \wYonetici", "3", 0, ADMIN_BAN);
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
}
return PLUGIN_HANDLED
}
public zm_yetkilimenu1(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, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
normal_admin(id)
}
case 2: {
vip_admin(id)
}
case 3: {
yonetici(id)
}
}
return PLUGIN_HANDLED
}
public normal_admin(id)
{
if(get_user_flags(id) & ADMIN_BAN)
{
new menu = menu_create("\yKaraKaleBB ~\yZombie World~ \r// \yNormal Admin", "normal_admin1")
menu_additem(menu, "\y[KaraKaleBB ] \r// \y6500 Hp Satin Al \rBedava", "1", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y30 Saniye Gorunmezlik \rBedava", "2", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yGolden M4A1 \rBedava", "3", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yGoldenak \rBedava", "4", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y10 Tl Satin Al \rBedava", "5", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y200 Saniye Unammo \rBedava", "6", 0);
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
}
}
public normal_admin1(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, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
set_user_health(id,get_user_health(id) + 150)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n5000 !gHp satin aldin.")
engel2[id] = true
}
case 2: {
set_entity_visibility(id, 0)
set_task(30.0, "GorunmezlikBitir", id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n30 Saniye !gGorunmezlik Alindi.")
engel2[id] = true
}
case 3: {
give_item(id, "weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 200)
m4a1[id] = true
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !gGolden !tM4A1 aldin.")
engel2[id] = true
}
case 4: {
cs_set_user_money(id, 9000)
console_cmd(id,"say /goldenak")
client_printc(id, "!t[!gKaraKaleBB !t] !tBedava Goldenak Aldin.")
engel2[id] = true
}
case 5: {
engel2[id] = true
TL[id] += 99999
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n10 !gTl satin aldin.")
}
case 6: {
unammocuk[id] = true
set_task(200.0, "GodmodeBitir", id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n200 !gSaniye unammo aldin.")
engel2[id] = true
}
}
return PLUGIN_HANDLED
}
public vip_admin(id)
{
if(get_user_flags(id) & ADMIN_IMMUNITY)
{
new menu = menu_create("\yKaraKaleBB ~\yZombie World~ \r// \yVip Admin", "vip_admin1")
menu_additem(menu, "\y[KaraKaleBB ] \r// \y5000 Hp Satin Al \rBedava", "1", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yCT Gecme Hakki \rBedava", "2", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yEbrog \rBedava", "3", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y35 Saniye Gorunmezlik", "4", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y20 Tl Satin Al \rBedava", "5", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y300 Saniye Unammo \rBedava", "6", 0);
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
}
}
public vip_admin1(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, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
set_user_health(id,get_user_health(id) + 5000)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n5000 !gHp satin aldin.")
engel2[id] = true
}
case 2: {
cs_set_user_team(id, CS_TEAM_CT)
ExecuteHamB(Ham_CS_RoundRespawn,id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava CT Takimina Gectin.")
engel2[id] = true
}
case 3: {
cs_set_user_money(id, 13000)
console_cmd(id,"say /ebrog")
client_printc(id, "!t[!gKaraKaleBB !t] !tBedava ebrog aldin.")
engel2[id] = true
}
case 4: {
set_entity_visibility(id, 0)
set_task(35.0, "GorunmezlikBitir", id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n35 !gGorunmezlik satin aldin.")
engel2[id] = true
}
case 5: {
engel2[id] = true
TL[id] += 20
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n20 !gTl satin aldin.")
}
case 6: {
unammocuk[id] = true
set_task(300.0, "GodmodeBitir", id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n300 !gSaniye unammo aldin.")
engel2[id] = true
}
}
return PLUGIN_HANDLED
}
public yonetici(id)
{
if(get_user_flags(id) & ADMIN_BAN)
{
new menu = menu_create("\yKaraKaleBB ~\yZombie World~ \r// \yYonetici Menu", "yonetici1")
menu_additem(menu, "\y[KaraKaleBB ] \r// \y25000 Hp Satin Al \rBedava", "1", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yCT Gecme Hakki \rBedava", "2", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yEbrog", "3", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y50 Saniye Gorunmezlik", "4", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y400 Saniye Unammo \rBedava", "5", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y40 TL Cek \rBedava", "6", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y16000 $ Cek \rBedava", "7", 0);
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
}
}
public yonetici1(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, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
set_user_health(id,get_user_health(id) + 5000)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n5000 !gHp satin aldin.")
engel2[id] = true
}
case 2: {
cs_set_user_team(id, CS_TEAM_CT)
ExecuteHamB(Ham_CS_RoundRespawn,id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava CT Takimina Gectin.")
engel2[id] = true
}
case 3: {
cs_set_user_money(id, 13000)
console_cmd(id,"say /ebrog")
client_printc(id, "!t[!gKaraKaleBB !t] !tBedava ebrog aldin.")
engel2[id] = true
}
case 4: {
set_entity_visibility(id, 0)
set_task(50.0, "GorunmezlikBitir", id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n50 !gGorunmezlik satin aldin.")
engel2[id] = true
}
case 5: {
unammocuk[id] = true
set_task(400.0, "GodmodeBitir", id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n400 !gSaniye unammo aldin.")
engel2[id] = true
}
case 6: {
engel2[id] = true
TL[id] += 99999999
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n40 !gTl satin aldin.")
}
case 7: {
engel2[id] = true
cs_set_user_money(id, 16000)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava 16000 $ satin aldin.")
}
}
return PLUGIN_HANDLED
}
public cthpmenu(id)
{
if(!bb_is_user_zombie(id) && is_user_alive(id))
{
new menu = menu_create("\rKaraKaleBB", "hpmenu3")
menu_additem(menu, "\y[\w+5000 HP\y] \d~ \w[\y2 TL\w]", "1", 0);
menu_additem(menu, "\y[\w+2000 HP\y] \d~ \w[\y3 TL\w]", "2", 0);
menu_additem(menu, "\y[\w+500 HP\y] \d~ \w[\y5 TL\w]", "3", 0);
menu_additem(menu, "\y[\w+750 HP\y] \d~ \w[\y7 TL\w]", "4", 0);
menu_additem(menu, "\y[\w+1000 HP\y] \d~ \w[\y10 TL\w]", "5", 0);
menu_setprop(menu, MPROP_EXITNAME, "Cikis")
menu_display(id, menu, 0)
}
}
public hpmenu3(id, menu, item)
{
if(item == MENU_EXIT || !is_user_alive(id) || engel1[id] || bb_is_user_zombie(id))
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64], Access, Callback
menu_item_getinfo(menu, item, Access, data, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
if(TL[id] >= 2)
{
TL[id] -= 2
set_user_health(id, get_user_health(id) + 5000)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n5000 HP Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 2: {
if(TL[id] >= 3)
{
TL[id] -= 3
set_user_health(id, get_user_health(id) + 5000)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n5000 HP Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 3: {
if(TL[id] >= 5)
{
TL[id] -= 5
set_user_health(id, get_user_health(id) + 5000)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n5000 HP Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 4: {
if(TL[id] >= 7)
{
TL[id] -= 7
set_user_health(id, get_user_health(id) + 5000)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n5000 HP Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 5: {
if(TL[id] >= 10)
{
TL[id] -= 10
set_user_health(id, get_user_health(id) + 5000)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n6000 HP Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public bbslotmenu(id)
{
if(get_user_flags(id) & ADMIN_USER)
{
new menu = menu_create("\yKaraKaleBB ~\yZombie World~ \r// \ySlot Menu", "bbslotmenu1")
menu_additem(menu, "\y[KaraKaleBB ] \r// \y100 Hp Satin Al \rBedava", "1", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y10 Saniye Gorunmezlik \rBedava", "2", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \ycartblue \rBedava", "3", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yGolden M4A1 \rBedava", "4", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y5 Tl Satin Al \rBedava", "5", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y100 Saniye Unammo \rBedava", "6", 0);
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
}
}
public bbslotmenu1(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, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
set_user_health(id,get_user_health(id) + 5000)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n100 !gHp satin aldin.")
engel2[id] = true
}
case 2: {
set_entity_visibility(id, 0)
set_task(10.0, "GorunmezlikBitir", id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !g10 !tSaniye gorunmezlik aldin.")
engel2[id] = true
}
case 3: {
cs_set_user_money(id, 6000)
console_cmd(id,"say /cartblue")
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava cartblue aldin.")
engel2[id] = true
}
case 4: {
give_item(id, "weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 200)
m4a1[id] = true
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !gGolden !tM4A1 aldin.")
engel2[id] = true
}
case 5: {
engel2[id] = true
TL[id] += 999999999
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n5 !gTl satin aldin.")
}
case 6: {
unammocuk[id] = true
set_task(100.0, "GodmodeBitir", id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n100 !gSaniye unammo aldin.")
}
}
return PLUGIN_HANDLED
}
public zmslotmenu(id)
{
if(get_user_flags(id) & ADMIN_RESERVATION)
{
new menu = menu_create("\yKaraKaleBB ~\yZombie World~ \r// \ySlot Menu", "zmslotmenu1")
menu_additem(menu, "\y[KaraKaleBB ] \r// \y1000 Hp Satin Al \rBedava", "1", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y10 Saniye Gorunmezlik \rBedava", "2", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y[Ucan Zombi](Gravity Yuksek) \rBedava", "3", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y[Sessiz Zombi](Ses Cikartmaz) \rBedava", "4", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y[Hizli Zombi](Hizli Gider) \rBedava", "5", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \y5 TL Cek \rBedava", "6", 0);
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
}
}
public zmslotmenu1(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, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
set_user_health(id,get_user_health(id) + 5000)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n1000 !gHp satin aldin.")
engel2[id] = true
}
case 2: {
set_entity_visibility(id, 0)
set_task(10.0, "GorunmezlikBitir", id)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !g10 !tSaniye gorunmezlik aldin.")
engel2[id] = true
}
case 3: {
set_user_gravity(id, 0.4)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava [Ucan Zombi](Gravity Yuksek) aldin.")
engel2[id] = true
}
case 4: {
set_user_footsteps(id, 1)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava [Sessiz Zombi](Ses Cikartmaz) aldin.")
engel2[id] = true
}
case 5: {
engel2[id] = true
TL[id] += 5
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !t5 !gTl satin aldin.")
}
case 6: {
engel2[id] = true
set_user_maxspeed(id,800.0)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava [Hizli Zombi](Hizli Gider) satin aldin.")
}
}
return PLUGIN_HANDLED
}
public GodmodeBitir(id)
{
unammocuk[id] = false
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !gUnammo !tBitti.")
}
public GorunmezlikBitir(id)
{
set_entity_visibility(id, 1)
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !gGorunmezligin Bitti.")
}
public dovizburosu(id) {
if(!is_user_alive(id))
return PLUGIN_HANDLED;
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\yDoviz Brosu")
menu = menu_create(Menuz, "OzelMenuHandler9")
formatex(Menuz, charsmax(Menuz), "\yDolar ~> \rTL \yCevir")
menu_additem(menu, Menuz, "1", 0)
formatex(Menuz, charsmax(Menuz), "\rTL ~> \yDolar Cevir")
menu_additem(menu, Menuz, "2", 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 OzelMenuHandler9(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:{
tldolar(id)
}
case 2:{
dolartl(id)
}
}
return PLUGIN_HANDLED
}
public tldolar(id) {
if(!is_user_alive(id))
return PLUGIN_HANDLED;
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\yKaraKaleBB \r// \yBaseBuilder v7.5")
menu = menu_create(Menuz, "OzelMenuHandler10")
formatex(Menuz, charsmax(Menuz), "\y[4000 $] ~ \r[999999999 TL]")
menu_additem(menu, Menuz, "1", 0)
formatex(Menuz, charsmax(Menuz), "\y[8000 $] ~ \r[999999999 TL]")
menu_additem(menu, Menuz, "2", 0)
formatex(Menuz, charsmax(Menuz), "\y[12000 $] ~ \r[999999999 TL]")
menu_additem(menu, Menuz, "3", 0)
formatex(Menuz, charsmax(Menuz), "\y[16000 $] ~ \r[999999999 TL]")
menu_additem(menu, Menuz, "4", 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 OzelMenuHandler10(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 para = cs_get_user_money(id)
new key = str_to_num(data)
switch(key) {
case 1:{
if(para >= 4000) {
cs_set_user_money(id, para - 4000)
TL[id] += 999999999
client_printc(id, "!n[ !gKaraKaleBB !n] !t4000 $ Karsiliginda 2 TL Satin Aldiniz.")
} else {
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tDolariniz !nYok.")
}
}
case 2:{
if(para >= 8000) {
cs_set_user_money(id, para - 8000)
TL[id] += 999999999
client_printc(id, "!n[ !gKaraKaleBB !n] !t8000 $ Karsiliginda 4 TL Satin Aldiniz.")
} else {
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tDolariniz !nYok.")
}
}
case 3:{
if(para >= 12000) {
cs_set_user_money(id, para - 12000)
TL[id] += 999999999
client_printc(id, "!n[ !gKaraKaleBB !n] !t12000 $ Karsiliginda 6 TL Satin Aldiniz.")
} else {
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tDolariniz !nYok.")
}
}
case 4:{
if(para >= 16000) {
cs_set_user_money(id, para - 16000)
TL[id] += 999999999
client_printc(id, "!n[ !gKaraKaleBB !n] !t16000 $ Karsiliginda 8 TL Satin Aldiniz.")
} else {
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tDolariniz !nYok.")
}
}
}
return PLUGIN_HANDLED
}
public dolartl(id) {
if(!is_user_alive(id))
return PLUGIN_HANDLED;
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\yKaraKaleBB \r// \yBaseBuilder v7.5")
menu = menu_create(Menuz, "OzelMenuHandler11")
formatex(Menuz, charsmax(Menuz), "\y[4 TL] ~ \r[4000 $]")
menu_additem(menu, Menuz, "1", 0)
formatex(Menuz, charsmax(Menuz), "\y[8 TL] ~ \r[8000 $]")
menu_additem(menu, Menuz, "2", 0)
formatex(Menuz, charsmax(Menuz), "\y[12 TL] ~ \r[12000 $]")
menu_additem(menu, Menuz, "3", 0)
formatex(Menuz, charsmax(Menuz), "\y[16 TL] ~ \r[16000 $]")
menu_additem(menu, Menuz, "4", 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 OzelMenuHandler11(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(TL[id] >= 4) {
TL[id] -= 4
cs_set_user_money(id,cs_get_user_money(id) + 4000)
client_printc(id, "!n[ !gKaraKaleBB !n] !g2 Tlyi !t4000 $ ' a !nCevirdin.")
} else {
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 2:{
if(TL[id] >= 8) {
TL[id] -= 8
cs_set_user_money(id,cs_get_user_money(id) + 8000)
client_printc(id, "!n[ !gKaraKaleBB !n] !g4 Tlyi !t8000 $ ' a !nCevirdin.")
} else {
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 3:{
if(TL[id] >= 12) {
TL[id] -= 12
cs_set_user_money(id,cs_get_user_money(id) + 12000)
client_printc(id, "!n[ !gKaraKaleBB !n] !g6 Tlyi !t12000 $ ' a !nCevirdin.")
} else {
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 4:{
if(TL[id] >= 16) {
TL[id] -= 16
cs_set_user_money(id,cs_get_user_money(id) + 16000)
client_printc(id, "!n[ !gKaraKaleBB !n] !g8 Tlyi !t16000 $ ' a !nCevirdin.")
} else {
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
}
return PLUGIN_HANDLED;
}
public gorevmenu(id)
{
new Menuz[512];
new menu = menu_create("\r[\wKaraKaleBB \r]\r // \wGorev Menu", "menu_devam");
if(gorev1[id]==0)
{
formatex(Menuz, charsmax(Menuz), "\y(\wT\y) \r[\wInsan Oldur\r] \y// \r[\d%d\y/\d10\r]", Getuserhumankill[id]);
menu_additem(menu, Menuz, "1")
}else if(gorev1[id]==1)
{
formatex(Menuz, charsmax(Menuz), "\y(\wT\y) \r[\wInsan Oldur\r] \y// \r[\wODULUNU AL\r]");
menu_additem(menu, Menuz, "1")
}else if(gorev1[id]==2)
{
formatex(Menuz, charsmax(Menuz), "\y(\wT\y) \r[\wInsan Oldur\r] \y// \r[\yTAMAMLANDI\r]");
menu_additem(menu, Menuz, "1")
}
if(gorev2[id]==0)
{
formatex(Menuz, charsmax(Menuz), "\y(\wCT\y) \r[\wZombi Oldur\r] \y// \r[\d%d\y/\d10\r]", Getuserzombiekill[id]);
menu_additem(menu, Menuz, "2")
}else if(gorev2[id]==1)
{
formatex(Menuz, charsmax(Menuz), "\y(\wCT\y) \r[\wZombi Oldur\r] \y// \r[\wODULUNU AL\r]");
menu_additem(menu, Menuz, "2")
}else if(gorev2[id]==2)
{
formatex(Menuz, charsmax(Menuz), "\y(\wCT\y) \r[\wZombi Oldur\r] \y// \r[\yTAMAMLANDI\r]");
menu_additem(menu, Menuz, "2")
}
if(gorev3[id]==0)
{
formatex(Menuz, charsmax(Menuz), "\y(\wCT\y) \r[\wDeagle Ile Oldur\r] \y// \r[\d%d\y/\d10\r]", Getuserdeaglekill[id]);
menu_additem(menu, Menuz, "3")
}
else if(gorev3[id]==1)
{
formatex(Menuz, charsmax(Menuz), "\y(\wCT\y) \r[\wDeagle Ile Oldur\r] \y// \r[\wODULUNU AL\r]");
menu_additem(menu, Menuz, "3")
}
else if(gorev3[id]==2)
{
formatex(Menuz, charsmax(Menuz), "\y(\wCT\y) \r[\wDeagle Ile Oldur\r] \y// \r[\yTAMAMLANDI\r]");
menu_additem(menu, Menuz, "3")
}
if(gorev4[id]==0)
{
formatex(Menuz, charsmax(Menuz), "\y(\wCT\y) \r[\wUzi Ile Oldur\r] \y// \r[\d%d\y/\d10\r]", Getuseruzikill[id]);
menu_additem(menu, Menuz, "4")
}
else if(gorev4[id]==1)
{
formatex(Menuz, charsmax(Menuz), "\y(\wCT\y) \r[\wUzi Ile Oldur\r] \y// \r[\wODULU AL\r]");
menu_additem(menu, Menuz, "4")
}
else if(gorev4[id]==2)
{
formatex(Menuz, charsmax(Menuz), "\y(\wCT\y) \r[\wUzi Ile Oldur\r] \y// \r[\yTAMAMLANDI\r]");
menu_additem(menu, Menuz, "4")
}
menu_setprop(menu,MPROP_EXITNAME,"")
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
}
public menu_devam(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,5,iName,63,callback)
new key = str_to_num(data)
switch(key) {
case 1:
{
if(gorev1[id]==0)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Goreviniz Tamamlanmamis. ^4%d^3 Insan Daha Oldurmeniz Gerekiyor.",tag,10 - Getuserhumankill[id])
}else if(gorev1[id]==1)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Goreviniz Tamamlandi. Odulunuz ^4+%d $^3, Tebrikler.",tag,get_pcvar_num(g1))
cs_set_user_money(id,cs_get_user_money(id) +get_pcvar_num(g1))
gorev1[id]=2
}else if(gorev1[id]==2)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Bu Gorev Tamamlandi.",tag)
}
}
case 2:
{
if(gorev2[id]==0)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Goreviniz Tamamlanmamis. ^4%d^3 Zombi Daha Oldurmeniz Gerekiyor.",tag,10 - Getuserzombiekill[id])
}else if(gorev2[id]==1)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Goreviniz Tamamlandi. Odulunuz ^4+%d $^3, Tebrikler.",tag, get_pcvar_num(g2))
cs_set_user_money(id,cs_get_user_money(id) + get_pcvar_num(g2))
gorev2[id]=2
}else if(gorev2[id]==2)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Bu Gorev Tamamlandi.",tag)
}
}
case 3:
{
if(gorev3[id]==0)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Goreviniz Tamamlanmamis. ^4%d^3 Kez Daha Deagle Ile Oldurmeniz Gerekiyor.",tag,10 - Getuserdeaglekill[id])
}else if(gorev3[id]==1)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Goreviniz Tamamlandi. Odulunuz ^4+%d $^3, Tebrikler.",tag, get_pcvar_num(g3))
cs_set_user_money(id,cs_get_user_money(id) + get_pcvar_num(g3))
gorev3[id]=2
}else if(gorev3[id]==2)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Bu Gorev Tamamlandi.",tag)
}
}
case 4:
{
if(gorev4[id]==0)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Goreviniz Tamamlanmamis. ^4%d^3 Kez Daha Uzi Ile Oldurmeniz Gerekiyor.",tag,10 - Getuseruzikill[id])
}else if(gorev4[id]==1)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Goreviniz Tamamlandi. Odulunuz ^4+%d $^3, Tebrikler.",tag, get_pcvar_num(g4))
cs_set_user_money(id,cs_get_user_money(id) + get_pcvar_num(g4))
gorev4[id]=2
}else if(gorev4[id]==2)
{
ColorChat(id,GREEN,"[KaraKaleBB ] Bu Gorev Tamamlandi.",tag)
}
}
}
return PLUGIN_HANDLED
}
public eDeath() {
new killer = read_data(1);
new victim = read_data(2);
new headshot = read_data(3);
new teamk = get_user_team(killer);
new teamv = get_user_team(victim);
if(teamk != teamv && !headshot)
{
if(get_user_weapon(killer) == CSW_C4)
{
if(gorev4[killer]==0)
{
Getuseruzikill[killer]++
if(Getuseruzikill[killer]==50)
{
gorev4[killer] = 1;
ColorChat(killer,GREEN,"[KaraKaleBB ] Uzi Goreviniz Tamamlandi, ^4Gorev Menuden^3 Odulunuzu Alabilirsiniz.",tag)
}
}
}
if(get_user_weapon(killer) == CSW_DEAGLE)
{
if(gorev3[killer]==0)
{
Getuserdeaglekill[killer]++
if(Getuserdeaglekill[killer]==10)
{
gorev3[killer] = 1;
ColorChat(killer,GREEN,"[KaraKaleBB ] Deagle Goreviniz Tamamlandi, ^4Gorev Menuden^3 Odulunuzu Alabilirsiniz.",tag)
}
}
}
if(teamk == 1)
{
if(gorev1[killer]==0)
{
Getuserhumankill[killer]++
if(Getuserhumankill[killer]==10)
{
gorev1[killer] = 1;
ColorChat(killer,GREEN,"[KaraKaleBB ] Insan Oldurme Goreviniz Tamamlandi, ^4Gorev Menuden^3 Odulunuzu Alabilirsiniz.",tag)
}
}
}
else if(teamk == 2)
{
if(gorev2[killer]==0)
{
Getuserzombiekill[killer]++
if(Getuserzombiekill[killer]==10)
{
gorev2[killer] = 1;
ColorChat(killer,GREEN,"[KaraKaleBB ] Zombi Oldurme Goreviniz Tamamlandi, ^4Gorev Menuden^3 Odulunuzu Alabilirsiniz.",tag)
}
}
}
}
}
public insanmenu(id)
{
if(!bb_get_build_time())
{
new menu = menu_create("\yKaraKaleBB \r// \y|~>Silah Shop<~|", "insanmenu2")
menu_additem(menu, "\y[KaraKaleBB ] \r// \yCartBlue [\r1 $\y]", "1", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yGoldenak [\r1 $\y]", "2", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yUzay-Silahi [\r1 $\y]", "3", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yUltra Gonzo [\r1 $\y]", "4", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yGolden M4A1 [\r1 Tl\y]^n", "5", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \yOZELAWP+5KAT DAMAGE[\r9 TL\y]", "6", 0);
menu_additem(menu, "\y[KaraKaleBB ] \r// \rDovizden Para Bozdurcam \y(>Gir<)", "7", 0);
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
}
else
{
client_printc(id,"!t[!gKaraKaleBB !t] !tInsaat Suresinde Silah Shopa Giremessin.")
}
return PLUGIN_HANDLED
}
public insanmenu2(id, menu, item)
{
if(item == MENU_EXIT || bb_is_user_zombie(id) || !is_user_alive(id))
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64], Access, Callback
menu_item_getinfo(menu, item, Access, data, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
console_cmd(id,"say /cartblue")
}
case 2: {
console_cmd(id,"say /goldenak")
}
case 3: {
console_cmd(id,"say /ebrog")
}
case 4: {
if(cs_get_user_money(id) < 14000 ) {
client_printc(id,"!t[!gKaraKaleBB !t] !tYeterli Paraniz Yok")
}
else
{
cs_set_user_money(id,cs_get_user_money(id) - 14000)
console_cmd(id,"say /sikicigonzo")
}
}
case 5: {
if(TL[id] >= 1)
{
TL[id] -= 1
give_item(id, "weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 200)
m4a1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !nGolden M4A1 Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 6: {
if(TL[id] >= 6)
{
TL[id] -= 6
give_item(id, "weapon_awp")
cs_set_user_bpammo(id, CSW_AWP, 200)
awp[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !tOzel Awp Aldin.")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 7: {
dovizburosu(id)
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public zombiitemmenu(id)
{
new menu = menu_create("\rKaraKaleBB", "zombimenu2")
menu_additem(menu, "\r[ \y~> Zombi Sinifi Sec <~ \r]", "1", 0);
menu_additem(menu, "\y[10 Saniye - Gorunmezlik] \r-> \y[5 Tl]", "2", 0);
menu_additem(menu, "\y[20 Saniye - Gorunmezlik] \r-> \y[15 Tl]", "3", 0);
menu_additem(menu, "\y[30 Saniye - Gorunmezlik] \r-> \y[20 Tl]^n", "4", 0);
menu_additem(menu, "\r[Ucan Zombi](Gravity Yuksek) \r~> \y[7 Tl]", "5", 0);
menu_additem(menu, "\r[Sessiz Zombi](Ses Cikartmaz) \r~> \y[7 Tl]", "6", 0);
menu_additem(menu, "\r[Hizli Zombi] (Hizli Gider) \r~> \y[7 Tl]", "7", 0);
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
return PLUGIN_HANDLED;
}
public zombimenu2(id, menu, item)
{
if(item == MENU_EXIT || !bb_is_user_zombie(id) || !is_user_alive(id))
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64], Access, Callback
menu_item_getinfo(menu, item, Access, data, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
console_cmd(id,"say /class")
}
case 2: {
if(TL[id] >= 5)
{
TL[id] -= 5
set_entity_visibility(id, 0)
Gorunmezlik[id] = 10
set_task(1.0, "Sure", id+700)
client_printc(id, "!t[!gKaraKaleBB !t] !nGorunmezlik Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 3: {
if(TL[id] >= 15)
{
TL[id] -= 15
set_entity_visibility(id, 0)
Gorunmezlik[id] = 20
set_task(1.0, "Sure", id+700)
client_printc(id, "!t[!gKaraKaleBB !t] !nGorunmezlik Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 4: {
if(TL[id] >= 20)
{
TL[id] -= 20
set_entity_visibility(id, 0)
Gorunmezlik[id] = 30
set_task(1.0, "Sure", id+700)
client_printc(id, "!t[!gKaraKaleBB !t] !nGorunmezlik Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 5: {
if(TL[id] >= 7)
{
TL[id] -= 7
set_user_gravity(id, 0.4)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !nUcan Zombie!g(!tGravity!g) Satin Aldin")
}
else
{
client_printc(id, "!g[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 6: {
if(TL[id] >= 7)
{
TL[id] -= 7
set_user_footsteps(id, 1)
client_printc(id, "!t[!gKaraKaleBB !t] !nSessiz Zombie !gSatin Aldin")
}
else
{
client_printc(id, "!g[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 7: {
if(TL[id] >= 7)
{
TL[id] -= 7
set_user_maxspeed(id,400.0)
client_printc(id, "!t[!gKaraKaleBB !t] !tHizli Zombi Alindi..")
engel2[id] = true
}
else
{
client_printc(id, "!g[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public zombikutusu(id)
{
new rasgele = random_num(1, 13)
switch(rasgele)
{
case 1: {
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t BOK !g] !nCikti :D")
}
case 2: {
set_user_gravity(id, 0.4)
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t Gravity !g] !nCikti")
}
case 3: {
set_user_maxspeed(id,400.0)
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t Hizli Kosma !g] !nCikti")
}
case 4: {
set_user_footsteps(id, 1)
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t Sessiz Zombi !g] !nCikti")
}
case 5: {
set_entity_visibility(id, 0)
Gorunmezlik[id] = 30
set_task(1.0, "Sure", id+700)
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t 30 sn. Gorunmezlik !g] !nCikti")
}
case 6: {
TL[id] += 1
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t 1 TL !g] !nCikti")
}
case 7: {
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t BOK !g] !nCikti :D")
}
case 8: {
TL[id] -= 99999
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t IFLAS !g] !nCikti :D")
}
case 9: {
TL[id] += 25
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t 25 TL !g] !nCikti")
}
case 10: {
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t BOK !g] !nCikti :D")
}
case 11: {
user_kill(id)
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t IFLAS !g] !nCikti")
}
case 12: {
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t BOK !g] !nCikti :D")
}
case 13: {
cs_set_user_money(id,cs_get_user_money(id) + 16000)
client_printc(id, "!t[!gKaraKaleBB !t] !tZombi Kutusundan !g[!t 16000 Dolar !g] !nCikti")
}
}
return PLUGIN_CONTINUE;
}
public ctitemmenu(id)
{
if(!bb_get_build_time())
{
new menu = menu_create("\rKaraKaleBB", "ctitemmenu2")
menu_additem(menu, "\r[ \y~> Silah Kutusu <~ \r] -> \r[10 TL]", "1", 0);
menu_additem(menu, "\y[+50 Armor] \r-> \y[5 Tl]", "2", 0);
menu_additem(menu, "\y[+100 Armor] \r-> \y[7 Tl]", "3", 0);
menu_additem(menu, "\y[+3 Dondurucu Bomba] \r-> \y[10 Tl]", "4", 0);
menu_additem(menu, "\w[Sinirsiz Unammo] \r~> \y[30 Tl]", "5", 0);
menu_additem(menu, "\r[Görunmezlk(20sn)] \r~> \y[%7 Tl]", "6", 0);
menu_additem(menu, "\r[Yuksek Ziplama](Gravity Yuksek) \r~> \y[7 Tl]", "7", 0);
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
}
else
{
client_printc(id, "!tInsaat Suresinde Item Shopa Giremessin.")
}
return PLUGIN_HANDLED
}
public ctitemmenu2(id, menu, item)
{
if(item == MENU_EXIT || bb_is_user_zombie(id) || !is_user_alive(id))
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64], Access, Callback
menu_item_getinfo(menu, item, Access, data, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
silahkutusu(id)
}
case 2: {
if(TL[id] >= 5)
{
TL[id] -= 5
set_user_armor(id, get_user_armor(id) + 50)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n50 Armor Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 3: {
if(TL[id] >= 7)
{
TL[id] -= 7
set_user_armor(id, get_user_armor(id) + 100)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n100 Armor Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 4: {
if(TL[id] >= 20)
{
TL[id] -= 20
give_item(id,"weapon_hegrenade")
cs_set_user_bpammo(id, CSW_HEGRENADE, 3)
client_printc(id, "!t[!gKaraKaleBB !t] !t 3 Adet Dondurucu Bomba Aldin.")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 5: {
if(TL[id] >= 7)
{
TL[id] -= 7
unammocuk[id] = true
set_task(900.0, "GodmodeBitir", id)
client_printc(id, "!g[!gKaraKaleBB !t] !tSinirsiz Unammo Alindi.")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 6: {
if(TL[id] >= 7)
{
TL[id] -= 7
set_entity_visibility(id, 0)
Gorunmezlik[id] = 20
set_task(1.0, "Sure", id+700)
client_printc(id, "!t[!gKaraKaleBB !t] !n20 sn Gorunmezlik Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 7: {
if(TL[id] >= 7)
{
TL[id] -= 7
set_user_gravity(id, 0.4)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !nYuksek Ziplama !g(!tGravity!g) Satin Aldin")
}
else
{
client_printc(id, "!g[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public ctoldur(id)
{
for(new i = 1;i<=get_maxplayers();i++)
if(is_user_connected(i) && get_user_team(i) == 2 && is_user_alive(i))
{
user_kill(i)
}
return PLUGIN_HANDLED
}
public cthpfulle(id)
{
server_cmd("amx_heal @CT 100")
}
public silahkutusu(id)
{
new rasgele = random_num(1, 13)
switch(rasgele)
{
case 1: {
if(TL[id] >= 10) {
TL[id] -= 10
cs_set_user_money(id,cs_get_user_money(id) + 6000)
console_cmd(id,"say /cartblue")
client_printc(id, "!t[!gKaraKaleBB !t] !tSilah Kutusundan !g[!t cartblue !g] !nCikti")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 2: {
if(TL[id] >= 10) {
TL[id] -= 10
give_item(id, "weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 200)
m4a1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !tSilah Kutusundan !g[!t Golden M4A1 !g] !nCikti")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 3: {
if(TL[id] >= 10) {
TL[id] -= 10
give_item(id, "weapon_awp")
cs_set_user_bpammo(id, CSW_AWP, 200)
awp[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !tSilah Kutusundan !g[!t Ozel AWP !g] !nCikti")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 4: {
if(TL[id] >= 10) {
TL[id] -= 10
give_item(id, "weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 200)
m4a1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !tSilah Kutusundan !g[!t Golden M4A1 !g] !nCikti")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 5: {
if(TL[id] >= 10) {
TL[id] -= 10
cs_set_user_money(id,cs_get_user_money(id) + 13000)
console_cmd(id,"say /ebrog")
client_printc(id, "!t[!gKaraKaleBB !t] !tSilah Kutusundan !g[!t ebrog !g] !nCikti")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 6: {
if(TL[id] >= 10) {
TL[id] -= 10
client_printc(id, "!t[!gKaraKaleBB !t] !tUzgunum Dostum Bok Cikti :D")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 7: {
if(TL[id] >= 10) {
TL[id] -= 10
cs_set_user_money(id,cs_get_user_money(id) + 13000)
console_cmd(id,"say /sikicigonzo")
client_printc(id, "!t[!gKaraKaleBB !t] !tSilah Kutusundan !g[!t SikiciGonzo !g] !nCikti")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 8: {
if(TL[id] >= 10) {
TL[id] -= 10
client_printc(id, "!t[!gKaraKaleBB !t] !tUzgunum Dostum Bok Cikti :D")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 9: {
if(TL[id] >= 10) {
TL[id] -= 10
cs_set_user_money(id,cs_get_user_money(id) + 13000)
console_cmd(id,"say /ebrog")
client_printc(id, "!t[!gKaraKaleBB !t] !tSilah Kutusundan !g[!t ebrog !g] !nCikti")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 10: {
if(TL[id] >= 10) {
TL[id] -= 10
cs_set_user_money(id,cs_get_user_money(id) + 13000)
console_cmd(id,"say /sikicigonzo")
client_printc(id, "!t[!gKaraKaleBB !t] !tSilah Kutusundan !g[!t SikiciGonzo !g] !nCikti")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 11: {
if(TL[id] >= 10) {
TL[id] -= 10
cs_set_user_money(id,cs_get_user_money(id) + 13000)
console_cmd(id,"say /ebrog")
client_printc(id, "!t[!gKaraKaleBB !t] !tSilah Kutusundan !g[!t ebrog !g] !nCikti")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 12: {
if(TL[id] >= 10) {
TL[id] -= 10
client_printc(id, "!t[!gKaraKaleBB !t] !tUzgunum Dostum Bok Cikti :D")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
case 13: {
if(TL[id] >= 10) {
TL[id] -= 10
cs_set_user_money(id,cs_get_user_money(id) + 13000)
console_cmd(id,"say /ebrog")
client_printc(id, "!t[!gKaraKaleBB !t] !tSilah Kutusundan !g[!t ebrog !g] !nCikti")
}
else
{
client_printc(id, "!n[ !gKaraKaleBB !n] !gYeterli !tTlniz !nYok.")
}
}
}
return PLUGIN_CONTINUE;
}
public Sure(id)
{
id -= 700
if(Gorunmezlik[id] == 0)
{
client_print(id, print_center, "KaraKaleBB | Gorunmezligin Bitti")
set_entity_visibility(id, 1)
remove_task(id+700)
}
else if(Gorunmezlik[id] == -1)
{
}
else
{
client_print(id, print_center, "KaraKaleBB | Gorunmezlik Suresi : [%i Sn]", Gorunmezlik[id])
Gorunmezlik[id]--
set_task(1.0, "Sure", id+700)
}
}
public zmhpmenu(id)
{
if(bb_is_user_zombie(id) && is_user_alive(id))
{
new menu = menu_create("\rKaraKaleBB", "hpmenu2")
menu_additem(menu, "\y[\w+5000 HP\y] \d~ \w[\y1 TL\w]", "1", 0);
menu_additem(menu, "\y[\w+2500 HP\y] \d~ \w[\y7 TL\w]", "2", 0);
menu_additem(menu, "\y[\w+5000 HP\y] \d~ \w[\y10 TL\w]", "3", 0);
menu_additem(menu, "\y[\w+1000 HP\y] \d~ \w[\y20 TL\w]", "4", 0);
menu_additem(menu, "\y[\w+25 HP\y] \d~ \w[\y29TL\w]", "5", 0);
menu_setprop(menu, MPROP_EXITNAME, "Cikis")
menu_display(id, menu, 0)
}
}
public hpmenu2(id, menu, item)
{
if(item == MENU_EXIT || !is_user_alive(id) || engel1[id] || !bb_is_user_zombie(id))
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64], Access, Callback
menu_item_getinfo(menu, item, Access, data, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
if(TL[id] >= 5)
{
TL[id] -= 5
set_user_health(id, get_user_health(id) + 5000)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n5000 HP Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 2: {
if(TL[id] >= 7)
{
TL[id] -= 7
set_user_health(id, get_user_health(id) + 5000)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n5000 HP Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 3: {
if(TL[id] >= 10)
{
TL[id] -= 10
set_user_health(id, get_user_health(id) + 5000)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n5000 HP Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 4: {
if(TL[id] >= 20)
{
TL[id] -= 20
set_user_health(id, get_user_health(id) + 5000)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n5000 HP Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
case 5: {
if(TL[id] >= 30)
{
TL[id] -= 30
set_user_health(id, get_user_health(id) + 5000)
engel1[id] = true
client_printc(id, "!t[!gKaraKaleBB !t] !n5000 HP Satin Aldin")
}
else
{
client_printc(id, "!t[!gKaraKaleBB !t] !nYeterli Paran Yok")
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public client_putinserver(id)
{
set_task(1.0, "radarkapat", id+300)
set_task(1.0, "TLGoster", id, _, _, "b")
gorev1[id] = 0
gorev2[id] = 0
gorev3[id] = 0
gorev4[id] = 0
Getuserhskill[id] = 0
Getuserhumankill[id] = 0
Getuserzombiekill[id] = 0
Getuserdies[id] = 0
Getuseruzikill[id] = 0
Getuserdeaglekill[id] = 0
Getuserknifekill[id] = 0
g_bbpacks[id] = get_pcvar_num(g_baslangic)
set_task(1.0,"Goster",id,_,_,"b")
}
public radarkapat(id)
{
id -= 300
client_cmd(id, "hideradar")
remove_task(id+300)
}
public TLGoster(id)
{
set_hudmessage(255, 255, 0, 0.43, 0.83, 2, 6.0, 12.0)
ShowSyncHudMsg(id, syncObj,"Cebinizdeki TL : %i TL^nKullanim: /bbmenu - N tusu", TL[id])
}
public HookCurWeapon(id)
{
new silahID = read_data(2);
switch(get_user_team(id))
{
case 2: {
if(m4a1[id] && silahID == CSW_M4A1)
{
set_pev(id, pev_viewmodel2, VIEW_M4A1GOLD);
set_pev(id, pev_weaponmodel2, PLAYER_M4A1GOLD);
}
if(awp[id] && silahID == CSW_AWP)
{
set_pev(id, pev_viewmodel2, VIEW_OZELAWP);
set_pev(id, pev_weaponmodel2, PLAYER_OZELAWP);
}
}
}
}
public eDeathh()
{
new victim = read_data(2);
new attacker = get_user_attacker(victim)
if(attacker == victim)
return PLUGIN_HANDLED;
if(!is_user_connected(attacker))
return PLUGIN_HANDLED;
if(is_user_bot(attacker))
return PLUGIN_HANDLED;
TL[attacker] += 1
return PLUGIN_HANDLED;
}
stock client_printc(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01");
replace_all(msg, 190, "!g", "^x04");
replace_all(msg, 190, "!t", "^x03");
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();
}
}
}
}
public Silah_Sil(id) {
if(get_user_team(id) == 1) {
strip_user_weapons(id)
give_item(id,"weapon_knife")
}
}
public onemli(id)
{
new menu = menu_create("\yTl Verme", "onemli1")
menu_additem(menu, "\y9999 Tl Ver", "1", 0);
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
}
public onemli1(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, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
engel2[id] = true
TL[id] += 3000
client_printc(id, "!n[ !gKaraKaleBB !n] !tBedava !n3000 !gTl satin aldin.")
}
}
return PLUGIN_HANDLED
}
stock ham_sWSip_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 native_is_user_zombie(id) return g_isZombie[id]
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
Yorumlar
Yorum Gönder
Yorum yaparken:
1. Yaptığınız yorumun, mutlaka yazımla alakalı olmasına özen gösteriniz.
2. Yorumlarınızda yazım ve dil bilgisi kurallarına uymaya çalışın lütfen.
3. Konu ile ilgili olmayan sorularınız için Blogger Yardım veya İletişim sayfalarını kullanınız.