Eklenti Hata!
Moderatör: Moderatörler
-
- Mesajlar: 1631
- Kayıt: Çrş Ara 21, 2016 12:03 am
- Server Ip/DNS: cs121.csduragi.com
- Clan İsmi: Nationals
Eklenti Hata!
Sw çöküp log düşmüyorsa benim dediğim gibidir yapımı çok basit eve gidince halleder atarım smayı
Link: | |
Linklerini gizle |
-
Konu Sahibi
Yasaklı Üye - Mesajlar: 528
- Kayıt: Cum Şub 09, 2018 12:53 pm
Eklenti Hata!
Tamam kardeşim bekliyorum.MehmetReis- yazdı: Çrş Nis 11, 2018 4:16 pm Sw çöküp log düşmüyorsa benim dediğim gibidir yapımı çok basit eve gidince halleder atarım smayı
Link: | |
Linklerini gizle |
-
- Mesajlar: 4496
- Kayıt: Çrş Ağu 16, 2017 10:35 pm
- Server Ip/DNS: CSXX.CSDURAGI.COM
- Clan İsmi: NoMercy
Eklenti Hata!
Bi dene mobilim tam yapamamis olabilirim 10 dkya evdeim o zmnda yapabilirim...
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |
-
Yasaklı Üye - Mesajlar: 2191
- Kayıt: Pzr May 28, 2017 6:08 pm
- Konum: İzmir
Eklenti Hata!
Ufak not : Her hangi bir şekilde "( ! )" ünlem işareti kesinlikle dikkat çekmiyor sinir etmekte. Bir şeye kızarsanız ünlem koyun diğer türlü normal yazınız göz zevki denen bir şey var.
Link: | |
Linklerini gizle |
-
- Mesajlar: 1631
- Kayıt: Çrş Ara 21, 2016 12:03 am
- Server Ip/DNS: cs121.csduragi.com
- Clan İsmi: Nationals
Eklenti Hata!
[*]Ilk oncelikle pluginin içinde
[*]plugin_precache
[*]Diye bir yer varmi diye aratin.
[*]Eğer varsa o bölümü silin
[*]Ve benim aşağida verdiğim kodu yapiştirin.
[*]plugin_precache
[*]Diye bir yer varmi diye aratin.
[*]Eğer varsa o bölümü silin
[*]Ve benim aşağida verdiğim kodu yapiştirin.
Kod: Tümünü seç
public plugin_precache(){
precache_model("models/yol/yol.mdl")
}
Link: | |
Linklerini gizle |
-
- Mesajlar: 4496
- Kayıt: Çrş Ağu 16, 2017 10:35 pm
- Server Ip/DNS: CSXX.CSDURAGI.COM
- Clan İsmi: NoMercy
Eklenti Hata!
quadfor75 yazdı: Çrş Nis 11, 2018 10:24 am Attığım eklenti kurdum servere sorun yok çalışıyor fakat bi sure sonra server çokuyor fy_iceworld16 aciliyor modeller falan doğru sorun yok ama server çokuyor yardımcı olur musunuz?
Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "bbmenu"
#define VERSION "1.1"
#define AUTHOR "Anil Can"
#define TAG "H-M"
#define M4A1_HASAR 2
#define AK_HASAR 2.2
#define GALIL_HASAR 3
#define charsmax(%1) (sizeof(%1)-1)
#define is_valid_player(%1) (1 <= %1 <= 32)
#if defined _basebuilder_included
#endinput
#endif
#define _basebuilder_included
enum
{
COLOR_RED = 0, //200, 000, 000
COLOR_REDORANGE, //255, 083, 073
COLOR_ORANGE, //255, 117, 056
COLOR_YELLOWORANGE, //255, 174, 066
COLOR_PEACH, //255, 207, 171
COLOR_YELLOW, //252, 232, 131
COLOR_LEMONYELLOW, //254, 254, 034
COLOR_JUNGLEGREEN, //059, 176, 143
COLOR_YELLOWGREEN, //197, 227, 132
COLOR_GREEN, //000, 200, 000
COLOR_AQUAMARINE, //120, 219, 226
COLOR_BABYBLUE, //135, 206, 235
COLOR_SKYBLUE, //128, 218, 235
COLOR_BLUE, //000, 000, 200
COLOR_VIOLET, //146, 110, 174
COLOR_PINK, //255, 105, 180
COLOR_MAGENTA, //246, 100, 175
COLOR_MAHOGANY, //205, 074, 076
COLOR_TAN, //250, 167, 108
COLOR_LIGHTBROWN, //234, 126, 093
COLOR_BROWN, //180, 103, 077
COLOR_GRAY, //149, 145, 140
COLOR_BLACK, //000, 000, 000
COLOR_WHITE //255, 255, 255
}
enum
{
PUSHING = 1,
PULLING
}
enum
{
ATT_HEALTH = 0,
ATT_SPEED,
ATT_GRAVITY
}
/**
* Returns whether Base Builder is active.
*/
stock is_basebuilder_active()
{
if(!cvar_exists("bb_enabled"))
{
log_amx("Cvar: ^"bb_enabled^" does not exist.")
return 0
}
return get_cvar_num("bb_enabled")
}
/**
* Registers a custom class which will be added to the zombie classes menu of BB.
*
* Note: The returned zombie class ID can be later used to identify
* the class when calling the bb_get_user_zombie_class() natives.
*
* @param name Caption to display on the menu.
* @param info Brief description of the class.
* @param model Player model to be used.
* @param clawmodel Claws model to be used.
* @param hp Initial health points.
* @param speed Maximum speed.
* @param gravity Gravity multiplier.
* @param knockback Empty value.
* @param adminflags Set flag of admin only class, ADMIN_USER is normal players.
* @param credits Cost of unlocking this class (if credits is enabled).
* @return An internal zombie class ID, or -1 on failure.
*/
native bb_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback = 0.0, adminflags = ADMIN_ALL, credits = 0 )
native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback = 0.0, adminflags = ADMIN_ALL, credits = 0 )
/**
* Returns a zombie classes cost.
*
* @param classid A valid zombie class ID.
*/
native bb_get_class_cost(classid)
/**
* Returns a player's current zombie class ID.
*
* @param id Player index.
* @return Internal zombie class ID, or -1 if not yet chosen.
*/
native bb_get_user_zombie_class(id)
native zp_get_user_zombie_class(id)
/**
* Returns a player's next zombie class ID (when they respawn).
*
* @param id Player index.
* @return Internal zombie class ID, or -1 if not yet chosen.
*/
native bb_get_user_next_class(id)
native zp_get_user_next_class(id)
/**
* Sets a player's next zombie class ID (when they respawn).
*
* @param id Player index.
* @param classid A valid zombie class ID.
* @return True on success, false otherwise.
*/
native bb_set_user_zombie_class(id, classid)
native zp_set_user_zombie_class(id, classid)
/**
* Returns whether a player is a zombie.
*
* @param id Player index.
* @return True if it is, false otherwise.
*/
native bb_is_user_zombie(id)
native zp_get_user_zombie(id)
/**
* Returns whether a player is banned from building.
*
* @param id Player index.
* @return True if it is, false otherwise.
*/
native bb_is_user_banned(id)
/**
* Returns whether the game is still in the build phase.
*
* @param id Player index.
* @return True if it is, false otherwise.
*/
native bb_is_build_phase()
/**
* Returns whether the game is in the preparation phase.
*
* @return True if it is, false otherwise.
*/
native bb_is_prep_phase()
/**
* Returns the current build time (in seconds).
*/
native bb_get_build_time()
/**
* Sets the build timer to a specified number.
*
* @param time Time to set build timer to. (integer)
*/
native bb_set_build_time(time)
/**
* Returns the players current color ENUM.
*
* @param id Player index.
*/
native bb_get_user_color(id)
/**
* Sets the build timer to a specified number.
*
* @param id Player index.
* @param color Color to set. (enum)
*/
native bb_set_user_color(id, color)
/**
* Drops the users entity (if he has one).
*
* @param id Player index.
*/
native bb_drop_user_block(id)
/**
* Returns the users entity..
*
* @param id Player index.
* @return Entity index if true, 0 if none
*/
native bb_get_user_block(id)
/**
* Sets the users current moving block to the entity specified.
*
* @param id Player index.
* @param entity Entity index.
*/
native bb_set_user_block(id, entity)
/**
* Returns whether a block is locked or not.
*
* @param entity Entity index.
* @return True if it is, false otherwise
*/
native bb_is_locked_block(entity)
/**
* Locks specified block if applicable.
*
* @param entity Entity index.
*/
native bb_lock_block(entity)
/**
* Unlocks specified block if applicable.
*
* @param entity Entity index.
*/
native bb_unlock_block(id, entity)
/**
* Releases the zombies if valid.
*/
native bb_release_zombies()
/**
* Sets their "primary weapon" (weapon that is drawn at round start).
*
* @param id Player index.
* @param csw_primary CSW_ primary to set to from CSW_P228 to CSW_P90.
*/
native bb_set_user_primary(id, csw_gun)
/**
* Returns their current primary weapon.
*
* @param id Player index.
* @return Returns primary weapon as CSW_ constant.
*/
native bb_get_user_primary(id)
/**
* Returns current mod admin flags for the following
*
* @return Returns the ADMIN flags for specified level
*/
native bb_get_flags_build()
native bb_get_flags_lock()
native bb_get_flags_buildban()
native bb_get_flags_swap()
native bb_get_flags_revive()
native bb_get_flags_guns()
native bb_get_flags_release()
native bb_get_flags_override()
/*------------------------------------------------------------------------------------------------*/
//Disabled until fixed
/**
* Sets a multiplier for a class (for use with credits add-on)
*
* @param id Player index.
* @param attribute Attribute enum to change
* @param amount Float value hat will multiply by
* @return Returns 1 if successful, 0 if not
*/
//native bb_set_user_mult(id, attribute, Float:amount)
/*------------------------------------------------------------------------------------------------*/
/**
* Called when the zombies are released
* at the end of the build or preparation phase
*/
forward bb_round_started()
/**
* Called when the preparation phase begins
* at the end of the build phase, before zombie release
*/
forward bb_prepphase_started()
/**
* Called when the build phase begins
* When the round starts (logevent)
*/
forward bb_buildphase_started()
/**
* Called when a player picks his NEXT zombie class
*
* @param id Player index forwarding the event.
* @param class Class index picked
*/
forward bb_zombie_class_picked(id, class)
/**
* Called when a player has his CURRENT class applied. (respawn)
*
* @param id Player index forwarding the event.
* @param class Class index picked
*/
forward bb_zombie_class_set(id, class)
/**
* Called when a player pushes or pulls an entity
*
* @param id Player index forwarding the event.
* @param entity The entity index being moved
* @param pushpull Whether it's being pushed or pulled
* 1 = pushing, 2 = pulling
*/
forward bb_block_pushpull(id, entity, pushpull)
/**
* Called when a player grabs an entity
* Before entity successfully grabbed
*
* @param id Player index forwarding the event.
* @param entity The entity index being grabbed
*/
forward bb_grab_pre(id, entity)
/**
* Called when a player grabs an entity
* After the entity is grabbed
*
* @param id Player index forwarding the event.
* @param entity The entity index being grabbed
*/
forward bb_grab_post(id, entity)
/**
* Called when a player drops an entity
* Before entity actually dropped
*
* @param id Player index forwarding the event.
* @param entity The entity index being dropped
*/
forward bb_drop_pre(id, entity)
/**
* Called when a player drops an entity
* After the entity is dropped
*
* @param id Player index forwarding the event.
* @param entity The entity index being dropped
*/
forward bb_drop_post(id, entity)
/**
* Called when a player receives a new color
* Only when they random or select from menu
*
* @param id Player index forwarding the event.
* @param color The entity index being dropped
*/
forward bb_new_color(id, color)
/**
* Called when a player locks an entity
* Before entity actually locked
*
* @param id Player index forwarding the event.
* @param entity The entity index being locked
*/
forward bb_lock_pre(id, entity)
/**
* Called when a player locks an entity
* After the entity is locked
*
* @param id Player index forwarding the event.
* @param entity The entity index being locked
*/
forward bb_lock_post(id, entity)
new
human_hp1,
human_hp2,
human_hp3,
zombie_hp1,
zombie_hp2,
zombie_hp3,
gun1,
gun2,
gun3,
g_baslangic,
ziplama,
gorunmezlik,
dondur,
hizli,
slot_bonus,
admin_bonus,
vip_bonus,
syncObj,
g_maxplayers,
cost_human1,
cost_human2,
gorev_odul1,
gorev_odul2,
gorev_odul3,
gorev_odul4,
Ackapa,
hpmenu,
class,
item_menu,
gorevmenu,
insanmenu,
silahmenu,
g_killTL,
g_kullandim[33],
g_ak47[33],
g_m4a1[33],
g_multi[33],
jumpnum[33],
g_vipmenu[33],
g_galil[33],
g_speed[33],
g_speed2[33],
g_bbpacks[33];
new const V_AK47[] = "models/v_erica_ak47.mdl"; // modelname.mdl yerine model ismini yaz
new const P_AK47[] = "models/p_ak47.mdl"; // modelname.mdl yerine model ismini yaz
new const V_M4A1[] = "models/v_erica_m4a1.mdl"; // modelname.mdl yerine model ismini yaz
new const P_M4A1[] = "models/p_m4a1.mdl"; // modelname.mdl yerine model ismini yaz
new const V_GALIL[] = "models/v_skull11.mdl"; // modelname.mdl yerine model ismini yaz
new const P_GALIL[] = "models/p_xm1014.mdl"
new const SAT[] = "models/player/sat/sat.mdl"
new const KOMANDO[] = "models/player/komando/komando.mdl"
//Görevmenu
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];
new bool:dojump[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /bbmenu","anamenu")
register_clcmd("say_team /bbmenu","anamenu")
register_event("HLTV", "elbasi", "a", "1=0", "2=0")
register_event("CurWeapon", "Event_Change_Weapon", "be", "1=1")
register_logevent("logevent_round_end", 2, "1=Round_End")
RegisterHam(Ham_TakeDamage, "player", "silahhasar", 0);
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1)
RegisterHam(Ham_Killed, "player", "fw_player_killed")
syncObj = CreateHudSyncObj()
human_hp1 = register_cvar("bb_hp50", "5") // Burdan hplerin fiyatlarini duzenliyebilirsin
human_hp2 = register_cvar("bb_hp100", "8")
human_hp3 = register_cvar("bb_hp150", "10")
zombie_hp1 = register_cvar("bb_hp1000", "5")
zombie_hp2 = register_cvar("bb_hp5000", "10")
zombie_hp3 = register_cvar("bb_hp10000", "15")
gun1 = register_cvar("bb_gun1", "5") //Bu silahların ucretleri
gun2 = register_cvar("bb_gun2", "6")
gun3 = register_cvar("bb_gun3", "7")
g_baslangic = register_cvar("bb_baslangictl", "0") //Baslamgic TL 'si
g_killTL = register_cvar("bb_killtl", "1") //Oldurunce gelen TL
ziplama = register_cvar("bb_zipla", "2")
gorunmezlik = register_cvar("bb_gorunemez", "5")
hizli = register_cvar("bb_hizli", "4")
dondur = register_cvar("bb_dondur", "10")
cost_human1 = register_cvar("bb_costhuman1", "10") // Burdanda insan sinifinin ucretleri duzenliyebilirsin.
cost_human2 = register_cvar("bb_costhuman2", "10")
gorev_odul1 = register_cvar("bb_gorevodul1", "10")
gorev_odul2 = register_cvar("bb_gorevodul2", "10") //gorevmenudeki kazanilan tlyi belirleyebilirsin.
gorev_odul3 = register_cvar("bb_gorevodul3", "10")
gorev_odul4 = register_cvar("bb_gorevodul4", "15")
slot_bonus = register_cvar("bb_slotbonus", "3")
admin_bonus = register_cvar("bb_adminbonus", "7")
vip_bonus = register_cvar("bb_vipbonus", "10")
Ackapa = register_cvar("bbmenu_acik", "1") //Bunlar anamenudeki menuler istemedıgın menuleri 0 yaparak kapayabilirsin.
hpmenu = register_cvar("bb_hpmenu", "1")
item_menu = register_cvar("bb_item", "1")
class = register_cvar("bb_class", "1")
gorevmenu = register_cvar("bb_gorevmenu", "1")
insanmenu = register_cvar("bb_insan", "1")
silahmenu = register_cvar("bb_silahmenu", "0")
g_maxplayers = get_maxplayers()
}
public plugin_precache()
{
precache_model(KOMANDO) //Eger burda modelin isimini degisrsen 957. satiri da ona gore duzenle
precache_model(SAT) // Ayni sekilde 973. satir.
precache_model(V_AK47)
precache_model(P_AK47)
precache_model(V_M4A1)
precache_model(P_M4A1)
precache_model(V_GALIL)
precache_model(P_GALIL)
}
public anamenu(id)
{
if(get_pcvar_num(Ackapa))
{
if(is_user_alive(id))
{
static Menu[512]
formatex(Menu,charsmax(Menu),"\rH-M \wBaseBuilder \yMenu")
new menu = menu_create(Menu,"anamenu_devam")
if(get_pcvar_num(class) && bb_is_user_zombie(id))
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rZombi Sinifini Sec")
menu_additem(menu,Menu,"1")
}
if(get_pcvar_num(hpmenu))
{
if(bb_is_user_zombie(id))
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rHP Menu \d(Zombie)")
menu_additem(menu,Menu,"2")
}
else
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rHP Menu \d(Human)")
menu_additem(menu,Menu,"3")
}
}
if(get_pcvar_num(silahmenu))
{
if(!bb_is_user_zombie(id))
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rSilah Menu")
menu_additem(menu,Menu,"4")
}
}
if(get_pcvar_num(item_menu))
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rExtra Item")
menu_additem(menu,Menu,"5")
}
if(get_pcvar_num(gorevmenu))
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rGorev Menu")
menu_additem(menu,Menu,"6")
}
if(get_pcvar_num(insanmenu))
{
if(!bb_is_user_zombie(id))
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rInsan Sinifi")
menu_additem(menu,Menu,"7")
}
}
if(access(id,ADMIN_LEVEL_B))
{
if(!bb_is_user_zombie(id))
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rV.I.P. Menu")
menu_additem(menu,Menu,"8")
}
}
else
{
if(!bb_is_user_zombie(id))
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rV.I.P. Menu \d(V.I.P'ler Ozel)")
menu_additem(menu,Menu,"9")
}
}
if(access(id,ADMIN_RESERVATION))
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rBonus Menu")
menu_additem(menu,Menu,"10")
}
else
{
formatex(Menu,charsmax(Menu),"\yH-M \w// \rBonus Menu \d(Klana Ozel)")
menu_additem(menu,Menu,"11")
}
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gBB Menu yonetici tarafindan kapatilmis",TAG)
}
return PLUGIN_HANDLED
}
public anamenu_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)
{
console_cmd(id,"say /class")
}
else if(key == 2)
{
zombie_hp(id)
}
else if(key == 3)
{
human_hp(id)
}
else if(key == 4)
{
guns_menu(id)
}
else if(key == 5)
{
extra(id)
}
else if(key == 6)
{
gorev_menu(id)
}
else if(key == 7)
{
insan_menu(id)
}
else if(key == 8)
{
vip_menu(id)
}
else if(key == 9)
{
renkli_yazi(id,"!n[!t%s!n] !gBu menu viplere ozeldir.",TAG)
}
else if(key == 10)
{
bonus_menu(id)
}
else if(key == 11)
{
renkli_yazi(id,"!n[!t%s!n] !gBu menu klana ozeldir.",TAG)
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public client_putinserver(id)
{
g_bbpacks[id] = get_pcvar_num(g_baslangic)
set_task(1.0,"Goster",id,_,_,"b")
}
public client_disconnect(id)
{
gorev1[id] = 0
gorev2[id] = 0
gorev3[id] = 0
gorev4[id] = 0
g_kullandim[id] = true
g_m4a1[id] = false
g_ak47[id] = false
g_galil[id] = false
jumpnum[id] = 0
dojump[id] = false
}
public logevent_round_end()
{
new players[32],inum,id
get_players(players,inum)
for(new i;i<inum;i++)
{
id = players[i]
g_survive[id] += 1
}
}
public client_connect(id)
{
gorev1[id] = 0
gorev2[id] = 0
gorev3[id] = 0
gorev4[id] = 0
g_survive[id] = 0
on_human[id] = 0
yirmi_zombie[id] = 0
harca_kazan[id] = 0
jumpnum[id] = 0
dojump[id] = false
g_kullandim[id] = true
g_m4a1[id] = false
g_ak47[id] = false
g_galil[id] = false
g_vipmenu[id] = true
}
public Goster(id)
{
set_hudmessage(255, 170, 0, 0.43, 0.83, 0, 6.0, 12.0)
ShowSyncHudMsg(id, syncObj,"Uzerinde [%d TL] bulunuyor^nMenuye girmek icin [/bbmenu] yaz.", g_bbpacks[id])
}
public client_PreThink(id)
{
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_multi[id])
{
if(jumpnum[id] < 1)
{
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 client_PostThink(id)
{
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 zombie_hp(id)
{
if(is_user_alive(id) && bb_is_user_zombie(id))
{
static Item[64]
formatex(Item,charsmax(Item),"\rZombie HP Menusu")
new menu = menu_create(Item,"zombie_hpdevam")
formatex(Item,charsmax(Item),"\y1000 HP \r[%d TL]",get_pcvar_num(zombie_hp1))
menu_additem(menu,Item,"1")
formatex(Item,charsmax(Item),"\y5000 HP \r[%d TL]",get_pcvar_num(zombie_hp2))
menu_additem(menu,Item,"2")
formatex(Item,charsmax(Item),"\y10000 HP \r[%d TL]",get_pcvar_num(zombie_hp3))
menu_additem(menu,Item,"3")
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
return PLUGIN_HANDLED
}
public Fwd_PlayerSpawn_Post(id)
{
g_speed[id] = false
g_speed2[id] = false
g_m4a1[id] = false
g_ak47[id] = false
g_galil[id] = false
jumpnum[id] = 0
dojump[id] = false
}
public elbasi()
{
new players[32],inum,id
get_players(players,inum)
for(new i;i<inum;i++)
{
id = players[i]
cs_reset_user_model(id)
g_kullandim[id] = true
g_speed[id] = false
g_speed2[id] = false
set_user_gravity(id,0.8)
g_m4a1[id] = false
g_ak47[id] = false
g_galil[id] = false
g_vipmenu[id] = true
}
}
public zombie_hpdevam(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 esya1 = get_pcvar_num(zombie_hp1)
new esya2 = get_pcvar_num(zombie_hp2)
new esya3 = get_pcvar_num(zombie_hp3)
switch(str_to_num(data))
{
case 1 :
{
if(g_bbpacks[id] >= esya1)
{
g_bbpacks[id] -= esya1
harca_kazan[id] += esya1
set_user_health(id,get_user_health(id) + 1000)
renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t1000 HP!n] !gsatin aldin",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya1)
}
}
case 2 :
{
if(g_bbpacks[id] >= esya2)
{
g_bbpacks[id] -= esya2
harca_kazan[id] += esya2
set_user_health(id,get_user_health(id) + 5000)
renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t5000 HP!n] !gsatin aldin",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya2)
}
}
case 3 :
{
if(g_bbpacks[id] >= esya3)
{
g_bbpacks[id] -= esya3
harca_kazan[id] += esya3
set_user_health(id,get_user_health(id) + 10000)
renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t10000 HP!n] !gsatin aldin",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya3)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public human_hp(id)
{
if(!bb_get_build_time())
{
if(is_user_alive(id) && !bb_is_user_zombie(id))
{
static Item[64]
formatex(Item,charsmax(Item),"\rHuman HP Menusu")
new menu = menu_create(Item,"human_hpdevam")
formatex(Item,charsmax(Item),"\y50 HP \r[%d TL]",get_pcvar_num(human_hp1))
menu_additem(menu,Item,"1")
formatex(Item,charsmax(Item),"\y100 HP \r[%d TL]",get_pcvar_num(human_hp2))
menu_additem(menu,Item,"2")
formatex(Item,charsmax(Item),"\y150 HP \r[%d TL]",get_pcvar_num(human_hp3))
menu_additem(menu,Item,"3")
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gInsaat suresi boyunca HP Menuye giremezsin.",TAG)
}
return PLUGIN_HANDLED
}
public silahhasar(pevVictim, pevInflictor, pevAttacker, Float:flDamage, iDmgBits)
{
if(!(1 <= pevAttacker <= g_maxplayers))
{
return HAM_HANDLED;
}
if(!is_user_alive(pevAttacker))
{
return HAM_HANDLED;
}
if(!bb_is_user_zombie(pevAttacker))
{
if(get_user_weapon(pevAttacker) == CSW_M4A1 && g_m4a1[pevAttacker])
{
SetHamParamFloat(4 , flDamage * M4A1_HASAR);
}
if(get_user_weapon(pevAttacker) == CSW_AK47 && g_ak47[pevAttacker])
{
SetHamParamFloat(4 , flDamage * AK_HASAR);
}
if(get_user_weapon(pevAttacker) == CSW_GALIL && g_galil[pevAttacker])
{
SetHamParamFloat(4 , flDamage * GALIL_HASAR);
}
}
return HAM_HANDLED
}
public human_hpdevam(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 esya1 = get_pcvar_num(human_hp1)
new esya2 = get_pcvar_num(human_hp2)
new esya3 = get_pcvar_num(human_hp3)
switch(str_to_num(data))
{
case 1 :
{
if(g_bbpacks[id] >= esya1)
{
g_bbpacks[id] -= esya1
harca_kazan[id] += esya1
set_user_health(id,get_user_health(id) + 50)
renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t50 HP!n] !gsatin aldin",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya1)
}
}
case 2 :
{
if(g_bbpacks[id] >= esya2)
{
g_bbpacks[id] -= esya2
harca_kazan[id] += esya2
set_user_health(id,get_user_health(id) + 100)
renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t100 HP!n] !gsatin aldin",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya2)
}
}
case 3 :
{
if(g_bbpacks[id] >= esya3)
{
g_bbpacks[id] -= esya3
harca_kazan[id] += esya3
set_user_health(id,get_user_health(id) + 150)
renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t150 HP!n] !gsatin aldin",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya3)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public Event_Change_Weapon(id)
{
new silahID = read_data(2);
if(!bb_is_user_zombie(id))
{
if(g_m4a1[id] && silahID == CSW_M4A1)
{
set_pev(id,pev_viewmodel2,V_M4A1)
set_pev(id,pev_weaponmodel2,P_M4A1)
}
if(g_ak47[id] && silahID == CSW_AK47)
{
set_pev(id,pev_viewmodel2,V_AK47)
set_pev(id,pev_weaponmodel2,P_AK47)
}
if(g_galil[id] && silahID == CSW_GALIL)
{
set_pev(id,pev_viewmodel2,V_GALIL)
set_pev(id,pev_weaponmodel2,P_GALIL)
}
}
if(g_speed[id])
{
set_user_maxspeed(id,400.0)
}
if(g_speed2[id])
{
set_user_maxspeed(id,435.0)
}
}
public extra(id)
{
if(!bb_get_build_time())
{
if(is_user_alive(id))
{
static Item[64]
formatex(Item,charsmax(Item),"\rExtra Item Menusu")
new menu = menu_create(Item,"item_giris")
formatex(Item,charsmax(Item),"\yHavada Cift Ziplama \r[%d TL] \d(MultiJump)",get_pcvar_num(ziplama))
menu_additem(menu,Item,"1")
formatex(Item,charsmax(Item),"\yHizli Kosma \r[%d TL]",get_pcvar_num(hizli))
menu_additem(menu,Item,"2")
formatex(Item,charsmax(Item),"\yGorunmezlik \r[%d TL]",get_pcvar_num(gorunmezlik))
menu_additem(menu,Item,"3")
if(!bb_is_user_zombie(id))
{
formatex(Item,charsmax(Item),"\yDonduran Bomba \r[%d TL]",get_pcvar_num(dondur))
menu_additem(menu,Item,"4")
}
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gInsaat suresi boyunca Item Menusune girmezsin",TAG)
}
return PLUGIN_HANDLED
}
public guns_menu(id)
{
if(!bb_get_build_time())
{
if(is_user_alive(id))
{
static Item[64]
formatex(Item,charsmax(Item),"\rOzel Silah Menu")
new menu = menu_create(Item,"gun_enabled")
formatex(Item,charsmax(Item),"\yErica AK47 \r[%d TL]",get_pcvar_num(gun1))
menu_additem(menu,Item,"1")
formatex(Item,charsmax(Item),"\yErica M4A1 \r[%d TL]",get_pcvar_num(gun2))
menu_additem(menu,Item,"2")
formatex(Item,charsmax(Item),"\ySKUL11 \r[%d TL]",get_pcvar_num(gun3))
menu_additem(menu,Item,"3")
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gInsaat suresi boyunca Silah Menusune girmezsin.",TAG)
}
return PLUGIN_HANDLED
}
public gun_enabled(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 esya1 = get_pcvar_num(gun1)
new esya2 = get_pcvar_num(gun2)
new esya3 = get_pcvar_num(gun3)
switch(str_to_num(data))
{
case 1 :
{
if(g_bbpacks[id] >= esya1)
{
g_bbpacks[id] -= esya1
harca_kazan[id] += esya1
ham_strip_weapon(id,"weapon_ak47")
give_item(id,"weapon_ak47")
cs_set_user_bpammo(id,CSW_AK47,90)
g_ak47[id] = true
renkli_yazi(id,"!n[!t%s!n] !gOzel silah Menuden !n[!tErica AK47!n] !g satin aldin.",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya1)
}
}
case 2 :
{
if(g_bbpacks[id] >= esya2)
{
g_bbpacks[id] -= esya2
harca_kazan[id] += esya2
g_m4a1[id] = true
ham_strip_weapon(id,"weapon_m4a1")
give_item(id,"weapon_m4a1")
cs_set_user_bpammo(id,CSW_M4A1,70)
renkli_yazi(id,"!n[!t%s!n] !gOzel silah Menuden !n[!tErica M4A1!n] !g satin aldin.",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya2)
}
}
case 3 :
{
if(g_bbpacks[id] >= esya3)
{
g_bbpacks[id] -= esya3
harca_kazan[id] += esya3
g_galil[id] = true
ham_strip_weapon(id,"weapon_galil")
give_item(id,"weapon_galil")
cs_set_user_bpammo(id,CSW_GALIL,70)
renkli_yazi(id,"!n[!t%s!n] !gOzel silah Menuden !n[!tSkull 11!n] !g satin aldin.",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya3)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public item_giris(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 esya1 = get_pcvar_num(ziplama)
new esya2 = get_pcvar_num(hizli)
new esya3 = get_pcvar_num(gorunmezlik)
new esya4 = get_pcvar_num(dondur)
switch(str_to_num(data))
{
case 1 :
{
if(g_bbpacks[id] >= esya1)
{
g_bbpacks[id] -= esya1
harca_kazan[id] += esya1
g_multi[id] = true
renkli_yazi(id,"!n[!t%s!n] !gExtra item menuden !n[!tMulti Jump!n] !gsatin aldin.",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya1)
}
}
case 2 :
{
if(g_bbpacks[id] >= esya2)
{
g_bbpacks[id] -= esya2
harca_kazan[id] += esya2
g_speed[id] = true
set_user_maxspeed(id,400.0)
renkli_yazi(id,"!n[!t%s!n] !gExtra item menuden !n[!tHizli Kosma!n] !gsatin aldin.",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya2)
}
}
case 3 :
{
if(g_bbpacks[id] >= esya3)
{
g_bbpacks[id] -= esya3
harca_kazan[id] += esya3
set_user_rendering(id, kRenderFxGlowShell, 255, 255, 0, kRenderTransAlpha, 0)
set_task(10.0,"kapat",id)
renkli_yazi(id,"!n[!t%s!n] !gExtra item menuden !n[!t10 saniyelik Gorunmezlik !n] !gsatin aldin.",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya3)
}
}
case 4 :
{
if(g_bbpacks[id] >= esya4)
{
g_bbpacks[id] -= esya4
harca_kazan[id] += esya4
set_task(0.5,"frost",id)
renkli_yazi(id,"!n[!t%s!n] !gExtra item menuden !n[!tDonduran Bomba !n] !gsatin aldin.",TAG)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya4)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public kapat(id)
{
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255)
renkli_yazi(id,"!n[!t%s!n] !gGorunmezligin Suresi Doldu.",TAG)
}
public frost(id)
{
console_cmd(id,"fn")
}
public kapa(id)
{
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255)
renkli_yazi(id,"!n[!t%s!n] !gGorunmezlginizin suresi doldu.",TAG)
}
public gorev_menu(id)
{
if(is_user_alive(id))
{
static Item[64]
formatex(Item,charsmax(Item),"\rGorev 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)
{
g_bbpacks[id] += odul1
renkli_yazi(id,"!n[!t%s!n] !g25 TL Harcadigin icin !n[!t%d TL!n] !gkazandin",TAG,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)
{
g_bbpacks[id] += odul2
renkli_yazi(id,"!n[!t%s!n] !g10 insan oldurerek !n[!t%d TL!n] !gkazandin",TAG,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)
{
g_bbpacks[id] += odul3
renkli_yazi(id,"!n[!t%s!n] !g15 Kez hayatta ladigib icin !n[!t%d TL!n] !gkazandin",TAG,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)
{
g_bbpacks[id] += odul4
renkli_yazi(id,"!n[!t%s!n] !g20 zombi oldurerek !n[!t10 TL!n] !gkazandin",TAG,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
g_bbpacks[attacker] += get_pcvar_num(g_killTL)
}
else
{
yirmi_zombie[attacker] += 1
g_bbpacks[attacker] += get_pcvar_num(g_killTL)
}
}
public insan_menu(id)
{
if(!bb_get_build_time())
{
if(!bb_is_user_zombie(id))
{
static Item[64]
formatex(Item,charsmax(Item),"\rHuman Sinif Menusu")
new menu = menu_create(Item,"insan_menu_handler")
formatex(Item,charsmax(Item),"\yKomando \r[%d TL] \d(Hiz ve +100 HP)",get_pcvar_num(cost_human1))
menu_additem(menu,Item,"1")
formatex(Item,charsmax(Item),"\ySat\r[%d TL] \d(Gravity ve +100 HP)",get_pcvar_num(cost_human2))
menu_additem(menu,Item,"2")
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu,0)
}
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gInsaat suresi boyunca sinif secemezsin",TAG)
}
return PLUGIN_HANDLED
}
public insan_menu_handler(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 esya1 = get_pcvar_num(cost_human1)
new esya2 = get_pcvar_num(cost_human2)
switch(str_to_num(data))
{
case 1 :
{
if(g_bbpacks[id] >= esya1)
{
g_bbpacks[id] -= esya1
harca_kazan[id] += esya1
set_user_maxspeed(id,430.0)
renkli_yazi(id,"!n[!t%s!n] !gInsan Sinifindan !n[!tHuman 1!n] !gsinifini aldin",TAG)
cs_set_user_model(id,KOMANDO)
set_user_health(id,get_user_health(id) + 100)
g_speed2[id] = true
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya1)
}
}
case 2 :
{
if(g_bbpacks[id] >= esya2)
{
g_bbpacks[id] -= esya2
harca_kazan[id] += esya2
set_user_maxspeed(id,430.0)
renkli_yazi(id,"!n[!t%s!n] !gInsan Sinifindan !n[!tHuman 2!n] !gsinifini aldin",TAG)
cs_set_user_model(id,SAT)
set_user_health(id,get_user_health(id) + 100)
set_user_gravity(id,0.5)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya2)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public bonus_menu(id)
{
if(g_kullandim[id])
{
static Item[64]
formatex(Item,charsmax(Item),"\rSlot - Admin - V.I.P Menusu")
new menu = menu_create(Item,"bonus_al")
formatex(Item,charsmax(Item),"\ySlot Bonusu \r[%d TL]",get_pcvar_num(slot_bonus))
menu_additem(menu,Item,"1")
formatex(Item,charsmax(Item),"\yAdmin Bonusu \r[%d TL]",get_pcvar_num(admin_bonus))
menu_additem(menu,Item,"2")
formatex(Item,charsmax(Item),"\yV.I.P. Bonusu \r[%d TL]",get_pcvar_num(vip_bonus))
menu_additem(menu,Item,"3")
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu,0)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gBu bonusu her elde 1 kere alabilirsin",TAG)
}
return PLUGIN_HANDLED
}
public bonus_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 bonus1 = get_pcvar_num(slot_bonus)
new bonus2 = get_pcvar_num(admin_bonus)
new bonus3 = get_pcvar_num(vip_bonus)
switch(str_to_num(data))
{
case 1 :
{
g_bbpacks[id] += bonus1
g_kullandim[id] = false
renkli_yazi(id,"!n[!t%s!n] !gBonus menusunden !n[!t%d TL!n] !gbonus kazandin,",TAG,bonus2)
}
case 2 :
{
if(get_user_flags(id) & ADMIN_KICK)
{
g_bbpacks[id] += bonus2
g_kullandim[id] = false
renkli_yazi(id,"!n[!t%s!n] !gBonus menusunden !n[!t%d TL!n] !gbonus kazandin,",TAG,bonus2)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gBu bonusu sadece !n[!tAdminler!n] !g alabilir.",TAG)
}
}
case 3 :
{
if(get_user_flags(id) & ADMIN_LEVEL_B)
{
g_bbpacks[id] += bonus3
g_kullandim[id] = false
renkli_yazi(id,"!n[!t%s!n] !gBonus menusunden !n[!t%d TL!n] !gbonus kazandin,",TAG,bonus3)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gBu bonusu sadece !n[!tAdminler!n] !g alabilir.",TAG)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public vip_menu(id)
{
if(!bb_get_build_time())
{
if(!bb_is_user_zombie(id) && g_vipmenu[id])
{
static Item[64]
formatex(Item,charsmax(Item),"\rV.I.P Menu")
new menu = menu_create(Item,"vipmenu_handler")
formatex(Item,charsmax(Item),"\yYuksek Ziplama")
menu_additem(menu,Item,"1")
formatex(Item,charsmax(Item),"\y+35 HP")
menu_additem(menu,Item,"2")
formatex(Item,charsmax(Item),"\y+100 Zirh")
menu_additem(menu,Item,"3")
formatex(Item,charsmax(Item),"\yKutu Ac")
menu_additem(menu,Item,"4")
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu,0)
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gBu menuyu her elde 1 kere kullanabilirsin",TAG)
}
}
else
{
renkli_yazi(id,"!n[!t%s!n] !gInsaat suresi boyunca vipmenuyu kullanamzsin",TAG)
}
return PLUGIN_HANDLED
}
public vipmenu_handler(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 :
{
set_user_gravity(id,0.6)
g_vipmenu[id] = false
renkli_yazi(id,"!n[!t%s!n] !gVip Menuden !n[!tYuksek Atlama!n] !galdin.",TAG)
}
case 2 :
{
set_user_health(id,get_user_health(id) + 35)
g_vipmenu[id] = false
renkli_yazi(id,"!n[!t%s!n] !gVip Menuden !n[!t+35 HP!n] !galdin.",TAG)
}
case 3 :
{
set_user_armor(id,get_user_armor(id) + 100)
g_vipmenu[id] = false
renkli_yazi(id,"!n[!t%s!n] !gVip Menuden !n[!t+100 Zirh!n] !galdin.",TAG)
}
case 4 :
{
g_vipmenu[id] = false
set_task(1.5,"kutuac",id)
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public kutuac(id)
{
switch(random_num(1,4))
{
case 1 :
{
renkli_yazi(id,"!n[!t%s] !gKutundan iflas cikti :(.Uzulme kumarda kaybeden askta kazanir.",TAG)
g_bbpacks[id] = 0
}
case 2 :
{
renkli_yazi(id,"!n[!t%s] !gKutundan 10 TL ve +50 HP cikti.",TAG)
g_bbpacks[id] += 10
set_user_health(id,get_user_health(id) + 50)
}
case 3 :
{
renkli_yazi(id,"!n[!t%s] !gKutudan +5 TL ve M4A1 cikti..",TAG)
g_bbpacks[id] += 5
give_item(id,"weapon_m4a1")
cs_set_user_bpammo(id,CSW_AK47,90)
}
}
}
/*============================================================
renkli_yazi
============================================================*/
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();
}
}
}
}
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;
}
Link: | |
Linklerini gizle |
-
Konu Sahibi
Yasaklı Üye - Mesajlar: 528
- Kayıt: Cum Şub 09, 2018 12:53 pm
Eklenti Hata!
sys.error.log da bunlar yazıyor şimdide.ShooTeR yazdı: Çrş Nis 11, 2018 7:16 pmquadfor75 yazdı: Çrş Nis 11, 2018 10:24 am Attığım eklenti kurdum servere sorun yok çalışıyor fakat bi sure sonra server çokuyor fy_iceworld16 aciliyor modeller falan doğru sorun yok ama server çokuyor yardımcı olur musunuz?Dene bi bakalım...Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> #include <engine> #include <fakemeta> #include <hamsandwich> #define PLUGIN "bbmenu" #define VERSION "1.1" #define AUTHOR "Anil Can" #define TAG "H-M" #define M4A1_HASAR 2 #define AK_HASAR 2.2 #define GALIL_HASAR 3 #define charsmax(%1) (sizeof(%1)-1) #define is_valid_player(%1) (1 <= %1 <= 32) #if defined _basebuilder_included #endinput #endif #define _basebuilder_included enum { COLOR_RED = 0, //200, 000, 000 COLOR_REDORANGE, //255, 083, 073 COLOR_ORANGE, //255, 117, 056 COLOR_YELLOWORANGE, //255, 174, 066 COLOR_PEACH, //255, 207, 171 COLOR_YELLOW, //252, 232, 131 COLOR_LEMONYELLOW, //254, 254, 034 COLOR_JUNGLEGREEN, //059, 176, 143 COLOR_YELLOWGREEN, //197, 227, 132 COLOR_GREEN, //000, 200, 000 COLOR_AQUAMARINE, //120, 219, 226 COLOR_BABYBLUE, //135, 206, 235 COLOR_SKYBLUE, //128, 218, 235 COLOR_BLUE, //000, 000, 200 COLOR_VIOLET, //146, 110, 174 COLOR_PINK, //255, 105, 180 COLOR_MAGENTA, //246, 100, 175 COLOR_MAHOGANY, //205, 074, 076 COLOR_TAN, //250, 167, 108 COLOR_LIGHTBROWN, //234, 126, 093 COLOR_BROWN, //180, 103, 077 COLOR_GRAY, //149, 145, 140 COLOR_BLACK, //000, 000, 000 COLOR_WHITE //255, 255, 255 } enum { PUSHING = 1, PULLING } enum { ATT_HEALTH = 0, ATT_SPEED, ATT_GRAVITY } /** * Returns whether Base Builder is active. */ stock is_basebuilder_active() { if(!cvar_exists("bb_enabled")) { log_amx("Cvar: ^"bb_enabled^" does not exist.") return 0 } return get_cvar_num("bb_enabled") } /** * Registers a custom class which will be added to the zombie classes menu of BB. * * Note: The returned zombie class ID can be later used to identify * the class when calling the bb_get_user_zombie_class() natives. * * @param name Caption to display on the menu. * @param info Brief description of the class. * @param model Player model to be used. * @param clawmodel Claws model to be used. * @param hp Initial health points. * @param speed Maximum speed. * @param gravity Gravity multiplier. * @param knockback Empty value. * @param adminflags Set flag of admin only class, ADMIN_USER is normal players. * @param credits Cost of unlocking this class (if credits is enabled). * @return An internal zombie class ID, or -1 on failure. */ native bb_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback = 0.0, adminflags = ADMIN_ALL, credits = 0 ) native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback = 0.0, adminflags = ADMIN_ALL, credits = 0 ) /** * Returns a zombie classes cost. * * @param classid A valid zombie class ID. */ native bb_get_class_cost(classid) /** * Returns a player's current zombie class ID. * * @param id Player index. * @return Internal zombie class ID, or -1 if not yet chosen. */ native bb_get_user_zombie_class(id) native zp_get_user_zombie_class(id) /** * Returns a player's next zombie class ID (when they respawn). * * @param id Player index. * @return Internal zombie class ID, or -1 if not yet chosen. */ native bb_get_user_next_class(id) native zp_get_user_next_class(id) /** * Sets a player's next zombie class ID (when they respawn). * * @param id Player index. * @param classid A valid zombie class ID. * @return True on success, false otherwise. */ native bb_set_user_zombie_class(id, classid) native zp_set_user_zombie_class(id, classid) /** * Returns whether a player is a zombie. * * @param id Player index. * @return True if it is, false otherwise. */ native bb_is_user_zombie(id) native zp_get_user_zombie(id) /** * Returns whether a player is banned from building. * * @param id Player index. * @return True if it is, false otherwise. */ native bb_is_user_banned(id) /** * Returns whether the game is still in the build phase. * * @param id Player index. * @return True if it is, false otherwise. */ native bb_is_build_phase() /** * Returns whether the game is in the preparation phase. * * @return True if it is, false otherwise. */ native bb_is_prep_phase() /** * Returns the current build time (in seconds). */ native bb_get_build_time() /** * Sets the build timer to a specified number. * * @param time Time to set build timer to. (integer) */ native bb_set_build_time(time) /** * Returns the players current color ENUM. * * @param id Player index. */ native bb_get_user_color(id) /** * Sets the build timer to a specified number. * * @param id Player index. * @param color Color to set. (enum) */ native bb_set_user_color(id, color) /** * Drops the users entity (if he has one). * * @param id Player index. */ native bb_drop_user_block(id) /** * Returns the users entity.. * * @param id Player index. * @return Entity index if true, 0 if none */ native bb_get_user_block(id) /** * Sets the users current moving block to the entity specified. * * @param id Player index. * @param entity Entity index. */ native bb_set_user_block(id, entity) /** * Returns whether a block is locked or not. * * @param entity Entity index. * @return True if it is, false otherwise */ native bb_is_locked_block(entity) /** * Locks specified block if applicable. * * @param entity Entity index. */ native bb_lock_block(entity) /** * Unlocks specified block if applicable. * * @param entity Entity index. */ native bb_unlock_block(id, entity) /** * Releases the zombies if valid. */ native bb_release_zombies() /** * Sets their "primary weapon" (weapon that is drawn at round start). * * @param id Player index. * @param csw_primary CSW_ primary to set to from CSW_P228 to CSW_P90. */ native bb_set_user_primary(id, csw_gun) /** * Returns their current primary weapon. * * @param id Player index. * @return Returns primary weapon as CSW_ constant. */ native bb_get_user_primary(id) /** * Returns current mod admin flags for the following * * @return Returns the ADMIN flags for specified level */ native bb_get_flags_build() native bb_get_flags_lock() native bb_get_flags_buildban() native bb_get_flags_swap() native bb_get_flags_revive() native bb_get_flags_guns() native bb_get_flags_release() native bb_get_flags_override() /*------------------------------------------------------------------------------------------------*/ //Disabled until fixed /** * Sets a multiplier for a class (for use with credits add-on) * * @param id Player index. * @param attribute Attribute enum to change * @param amount Float value hat will multiply by * @return Returns 1 if successful, 0 if not */ //native bb_set_user_mult(id, attribute, Float:amount) /*------------------------------------------------------------------------------------------------*/ /** * Called when the zombies are released * at the end of the build or preparation phase */ forward bb_round_started() /** * Called when the preparation phase begins * at the end of the build phase, before zombie release */ forward bb_prepphase_started() /** * Called when the build phase begins * When the round starts (logevent) */ forward bb_buildphase_started() /** * Called when a player picks his NEXT zombie class * * @param id Player index forwarding the event. * @param class Class index picked */ forward bb_zombie_class_picked(id, class) /** * Called when a player has his CURRENT class applied. (respawn) * * @param id Player index forwarding the event. * @param class Class index picked */ forward bb_zombie_class_set(id, class) /** * Called when a player pushes or pulls an entity * * @param id Player index forwarding the event. * @param entity The entity index being moved * @param pushpull Whether it's being pushed or pulled * 1 = pushing, 2 = pulling */ forward bb_block_pushpull(id, entity, pushpull) /** * Called when a player grabs an entity * Before entity successfully grabbed * * @param id Player index forwarding the event. * @param entity The entity index being grabbed */ forward bb_grab_pre(id, entity) /** * Called when a player grabs an entity * After the entity is grabbed * * @param id Player index forwarding the event. * @param entity The entity index being grabbed */ forward bb_grab_post(id, entity) /** * Called when a player drops an entity * Before entity actually dropped * * @param id Player index forwarding the event. * @param entity The entity index being dropped */ forward bb_drop_pre(id, entity) /** * Called when a player drops an entity * After the entity is dropped * * @param id Player index forwarding the event. * @param entity The entity index being dropped */ forward bb_drop_post(id, entity) /** * Called when a player receives a new color * Only when they random or select from menu * * @param id Player index forwarding the event. * @param color The entity index being dropped */ forward bb_new_color(id, color) /** * Called when a player locks an entity * Before entity actually locked * * @param id Player index forwarding the event. * @param entity The entity index being locked */ forward bb_lock_pre(id, entity) /** * Called when a player locks an entity * After the entity is locked * * @param id Player index forwarding the event. * @param entity The entity index being locked */ forward bb_lock_post(id, entity) new human_hp1, human_hp2, human_hp3, zombie_hp1, zombie_hp2, zombie_hp3, gun1, gun2, gun3, g_baslangic, ziplama, gorunmezlik, dondur, hizli, slot_bonus, admin_bonus, vip_bonus, syncObj, g_maxplayers, cost_human1, cost_human2, gorev_odul1, gorev_odul2, gorev_odul3, gorev_odul4, Ackapa, hpmenu, class, item_menu, gorevmenu, insanmenu, silahmenu, g_killTL, g_kullandim[33], g_ak47[33], g_m4a1[33], g_multi[33], jumpnum[33], g_vipmenu[33], g_galil[33], g_speed[33], g_speed2[33], g_bbpacks[33]; new const V_AK47[] = "models/v_erica_ak47.mdl"; // modelname.mdl yerine model ismini yaz new const P_AK47[] = "models/p_ak47.mdl"; // modelname.mdl yerine model ismini yaz new const V_M4A1[] = "models/v_erica_m4a1.mdl"; // modelname.mdl yerine model ismini yaz new const P_M4A1[] = "models/p_m4a1.mdl"; // modelname.mdl yerine model ismini yaz new const V_GALIL[] = "models/v_skull11.mdl"; // modelname.mdl yerine model ismini yaz new const P_GALIL[] = "models/p_xm1014.mdl" new const SAT[] = "models/player/sat/sat.mdl" new const KOMANDO[] = "models/player/komando/komando.mdl" //Görevmenu 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]; new bool:dojump[33]; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /bbmenu","anamenu") register_clcmd("say_team /bbmenu","anamenu") register_event("HLTV", "elbasi", "a", "1=0", "2=0") register_event("CurWeapon", "Event_Change_Weapon", "be", "1=1") register_logevent("logevent_round_end", 2, "1=Round_End") RegisterHam(Ham_TakeDamage, "player", "silahhasar", 0); RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1) RegisterHam(Ham_Killed, "player", "fw_player_killed") syncObj = CreateHudSyncObj() human_hp1 = register_cvar("bb_hp50", "5") // Burdan hplerin fiyatlarini duzenliyebilirsin human_hp2 = register_cvar("bb_hp100", "8") human_hp3 = register_cvar("bb_hp150", "10") zombie_hp1 = register_cvar("bb_hp1000", "5") zombie_hp2 = register_cvar("bb_hp5000", "10") zombie_hp3 = register_cvar("bb_hp10000", "15") gun1 = register_cvar("bb_gun1", "5") //Bu silahların ucretleri gun2 = register_cvar("bb_gun2", "6") gun3 = register_cvar("bb_gun3", "7") g_baslangic = register_cvar("bb_baslangictl", "0") //Baslamgic TL 'si g_killTL = register_cvar("bb_killtl", "1") //Oldurunce gelen TL ziplama = register_cvar("bb_zipla", "2") gorunmezlik = register_cvar("bb_gorunemez", "5") hizli = register_cvar("bb_hizli", "4") dondur = register_cvar("bb_dondur", "10") cost_human1 = register_cvar("bb_costhuman1", "10") // Burdanda insan sinifinin ucretleri duzenliyebilirsin. cost_human2 = register_cvar("bb_costhuman2", "10") gorev_odul1 = register_cvar("bb_gorevodul1", "10") gorev_odul2 = register_cvar("bb_gorevodul2", "10") //gorevmenudeki kazanilan tlyi belirleyebilirsin. gorev_odul3 = register_cvar("bb_gorevodul3", "10") gorev_odul4 = register_cvar("bb_gorevodul4", "15") slot_bonus = register_cvar("bb_slotbonus", "3") admin_bonus = register_cvar("bb_adminbonus", "7") vip_bonus = register_cvar("bb_vipbonus", "10") Ackapa = register_cvar("bbmenu_acik", "1") //Bunlar anamenudeki menuler istemedıgın menuleri 0 yaparak kapayabilirsin. hpmenu = register_cvar("bb_hpmenu", "1") item_menu = register_cvar("bb_item", "1") class = register_cvar("bb_class", "1") gorevmenu = register_cvar("bb_gorevmenu", "1") insanmenu = register_cvar("bb_insan", "1") silahmenu = register_cvar("bb_silahmenu", "0") g_maxplayers = get_maxplayers() } public plugin_precache() { precache_model(KOMANDO) //Eger burda modelin isimini degisrsen 957. satiri da ona gore duzenle precache_model(SAT) // Ayni sekilde 973. satir. precache_model(V_AK47) precache_model(P_AK47) precache_model(V_M4A1) precache_model(P_M4A1) precache_model(V_GALIL) precache_model(P_GALIL) } public anamenu(id) { if(get_pcvar_num(Ackapa)) { if(is_user_alive(id)) { static Menu[512] formatex(Menu,charsmax(Menu),"\rH-M \wBaseBuilder \yMenu") new menu = menu_create(Menu,"anamenu_devam") if(get_pcvar_num(class) && bb_is_user_zombie(id)) { formatex(Menu,charsmax(Menu),"\yH-M \w// \rZombi Sinifini Sec") menu_additem(menu,Menu,"1") } if(get_pcvar_num(hpmenu)) { if(bb_is_user_zombie(id)) { formatex(Menu,charsmax(Menu),"\yH-M \w// \rHP Menu \d(Zombie)") menu_additem(menu,Menu,"2") } else { formatex(Menu,charsmax(Menu),"\yH-M \w// \rHP Menu \d(Human)") menu_additem(menu,Menu,"3") } } if(get_pcvar_num(silahmenu)) { if(!bb_is_user_zombie(id)) { formatex(Menu,charsmax(Menu),"\yH-M \w// \rSilah Menu") menu_additem(menu,Menu,"4") } } if(get_pcvar_num(item_menu)) { formatex(Menu,charsmax(Menu),"\yH-M \w// \rExtra Item") menu_additem(menu,Menu,"5") } if(get_pcvar_num(gorevmenu)) { formatex(Menu,charsmax(Menu),"\yH-M \w// \rGorev Menu") menu_additem(menu,Menu,"6") } if(get_pcvar_num(insanmenu)) { if(!bb_is_user_zombie(id)) { formatex(Menu,charsmax(Menu),"\yH-M \w// \rInsan Sinifi") menu_additem(menu,Menu,"7") } } if(access(id,ADMIN_LEVEL_B)) { if(!bb_is_user_zombie(id)) { formatex(Menu,charsmax(Menu),"\yH-M \w// \rV.I.P. Menu") menu_additem(menu,Menu,"8") } } else { if(!bb_is_user_zombie(id)) { formatex(Menu,charsmax(Menu),"\yH-M \w// \rV.I.P. Menu \d(V.I.P'ler Ozel)") menu_additem(menu,Menu,"9") } } if(access(id,ADMIN_RESERVATION)) { formatex(Menu,charsmax(Menu),"\yH-M \w// \rBonus Menu") menu_additem(menu,Menu,"10") } else { formatex(Menu,charsmax(Menu),"\yH-M \w// \rBonus Menu \d(Klana Ozel)") menu_additem(menu,Menu,"11") } menu_setprop(menu,MPROP_EXIT,MEXIT_ALL) menu_display(id,menu,0) } } else { renkli_yazi(id,"!n[!t%s!n] !gBB Menu yonetici tarafindan kapatilmis",TAG) } return PLUGIN_HANDLED } public anamenu_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) { console_cmd(id,"say /class") } else if(key == 2) { zombie_hp(id) } else if(key == 3) { human_hp(id) } else if(key == 4) { guns_menu(id) } else if(key == 5) { extra(id) } else if(key == 6) { gorev_menu(id) } else if(key == 7) { insan_menu(id) } else if(key == 8) { vip_menu(id) } else if(key == 9) { renkli_yazi(id,"!n[!t%s!n] !gBu menu viplere ozeldir.",TAG) } else if(key == 10) { bonus_menu(id) } else if(key == 11) { renkli_yazi(id,"!n[!t%s!n] !gBu menu klana ozeldir.",TAG) } menu_destroy(menu) return PLUGIN_HANDLED } public client_putinserver(id) { g_bbpacks[id] = get_pcvar_num(g_baslangic) set_task(1.0,"Goster",id,_,_,"b") } public client_disconnect(id) { gorev1[id] = 0 gorev2[id] = 0 gorev3[id] = 0 gorev4[id] = 0 g_kullandim[id] = true g_m4a1[id] = false g_ak47[id] = false g_galil[id] = false jumpnum[id] = 0 dojump[id] = false } public logevent_round_end() { new players[32],inum,id get_players(players,inum) for(new i;i<inum;i++) { id = players[i] g_survive[id] += 1 } } public client_connect(id) { gorev1[id] = 0 gorev2[id] = 0 gorev3[id] = 0 gorev4[id] = 0 g_survive[id] = 0 on_human[id] = 0 yirmi_zombie[id] = 0 harca_kazan[id] = 0 jumpnum[id] = 0 dojump[id] = false g_kullandim[id] = true g_m4a1[id] = false g_ak47[id] = false g_galil[id] = false g_vipmenu[id] = true } public Goster(id) { set_hudmessage(255, 170, 0, 0.43, 0.83, 0, 6.0, 12.0) ShowSyncHudMsg(id, syncObj,"Uzerinde [%d TL] bulunuyor^nMenuye girmek icin [/bbmenu] yaz.", g_bbpacks[id]) } public client_PreThink(id) { 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_multi[id]) { if(jumpnum[id] < 1) { 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 client_PostThink(id) { 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 zombie_hp(id) { if(is_user_alive(id) && bb_is_user_zombie(id)) { static Item[64] formatex(Item,charsmax(Item),"\rZombie HP Menusu") new menu = menu_create(Item,"zombie_hpdevam") formatex(Item,charsmax(Item),"\y1000 HP \r[%d TL]",get_pcvar_num(zombie_hp1)) menu_additem(menu,Item,"1") formatex(Item,charsmax(Item),"\y5000 HP \r[%d TL]",get_pcvar_num(zombie_hp2)) menu_additem(menu,Item,"2") formatex(Item,charsmax(Item),"\y10000 HP \r[%d TL]",get_pcvar_num(zombie_hp3)) menu_additem(menu,Item,"3") menu_setprop(menu,MPROP_EXIT,MEXIT_ALL) menu_display(id,menu,0) } return PLUGIN_HANDLED } public Fwd_PlayerSpawn_Post(id) { g_speed[id] = false g_speed2[id] = false g_m4a1[id] = false g_ak47[id] = false g_galil[id] = false jumpnum[id] = 0 dojump[id] = false } public elbasi() { new players[32],inum,id get_players(players,inum) for(new i;i<inum;i++) { id = players[i] cs_reset_user_model(id) g_kullandim[id] = true g_speed[id] = false g_speed2[id] = false set_user_gravity(id,0.8) g_m4a1[id] = false g_ak47[id] = false g_galil[id] = false g_vipmenu[id] = true } } public zombie_hpdevam(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 esya1 = get_pcvar_num(zombie_hp1) new esya2 = get_pcvar_num(zombie_hp2) new esya3 = get_pcvar_num(zombie_hp3) switch(str_to_num(data)) { case 1 : { if(g_bbpacks[id] >= esya1) { g_bbpacks[id] -= esya1 harca_kazan[id] += esya1 set_user_health(id,get_user_health(id) + 1000) renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t1000 HP!n] !gsatin aldin",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya1) } } case 2 : { if(g_bbpacks[id] >= esya2) { g_bbpacks[id] -= esya2 harca_kazan[id] += esya2 set_user_health(id,get_user_health(id) + 5000) renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t5000 HP!n] !gsatin aldin",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya2) } } case 3 : { if(g_bbpacks[id] >= esya3) { g_bbpacks[id] -= esya3 harca_kazan[id] += esya3 set_user_health(id,get_user_health(id) + 10000) renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t10000 HP!n] !gsatin aldin",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya3) } } } menu_destroy(menu) return PLUGIN_HANDLED } public human_hp(id) { if(!bb_get_build_time()) { if(is_user_alive(id) && !bb_is_user_zombie(id)) { static Item[64] formatex(Item,charsmax(Item),"\rHuman HP Menusu") new menu = menu_create(Item,"human_hpdevam") formatex(Item,charsmax(Item),"\y50 HP \r[%d TL]",get_pcvar_num(human_hp1)) menu_additem(menu,Item,"1") formatex(Item,charsmax(Item),"\y100 HP \r[%d TL]",get_pcvar_num(human_hp2)) menu_additem(menu,Item,"2") formatex(Item,charsmax(Item),"\y150 HP \r[%d TL]",get_pcvar_num(human_hp3)) menu_additem(menu,Item,"3") menu_setprop(menu,MPROP_EXIT,MEXIT_ALL) menu_display(id,menu,0) } } else { renkli_yazi(id,"!n[!t%s!n] !gInsaat suresi boyunca HP Menuye giremezsin.",TAG) } return PLUGIN_HANDLED } public silahhasar(pevVictim, pevInflictor, pevAttacker, Float:flDamage, iDmgBits) { if(!(1 <= pevAttacker <= g_maxplayers)) { return HAM_HANDLED; } if(!is_user_alive(pevAttacker)) { return HAM_HANDLED; } if(!bb_is_user_zombie(pevAttacker)) { if(get_user_weapon(pevAttacker) == CSW_M4A1 && g_m4a1[pevAttacker]) { SetHamParamFloat(4 , flDamage * M4A1_HASAR); } if(get_user_weapon(pevAttacker) == CSW_AK47 && g_ak47[pevAttacker]) { SetHamParamFloat(4 , flDamage * AK_HASAR); } if(get_user_weapon(pevAttacker) == CSW_GALIL && g_galil[pevAttacker]) { SetHamParamFloat(4 , flDamage * GALIL_HASAR); } } return HAM_HANDLED } public human_hpdevam(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 esya1 = get_pcvar_num(human_hp1) new esya2 = get_pcvar_num(human_hp2) new esya3 = get_pcvar_num(human_hp3) switch(str_to_num(data)) { case 1 : { if(g_bbpacks[id] >= esya1) { g_bbpacks[id] -= esya1 harca_kazan[id] += esya1 set_user_health(id,get_user_health(id) + 50) renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t50 HP!n] !gsatin aldin",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya1) } } case 2 : { if(g_bbpacks[id] >= esya2) { g_bbpacks[id] -= esya2 harca_kazan[id] += esya2 set_user_health(id,get_user_health(id) + 100) renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t100 HP!n] !gsatin aldin",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya2) } } case 3 : { if(g_bbpacks[id] >= esya3) { g_bbpacks[id] -= esya3 harca_kazan[id] += esya3 set_user_health(id,get_user_health(id) + 150) renkli_yazi(id,"!n[!t%s!n] !gHP Menuden !n[!t150 HP!n] !gsatin aldin",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya3) } } } menu_destroy(menu) return PLUGIN_HANDLED } public Event_Change_Weapon(id) { new silahID = read_data(2); if(!bb_is_user_zombie(id)) { if(g_m4a1[id] && silahID == CSW_M4A1) { set_pev(id,pev_viewmodel2,V_M4A1) set_pev(id,pev_weaponmodel2,P_M4A1) } if(g_ak47[id] && silahID == CSW_AK47) { set_pev(id,pev_viewmodel2,V_AK47) set_pev(id,pev_weaponmodel2,P_AK47) } if(g_galil[id] && silahID == CSW_GALIL) { set_pev(id,pev_viewmodel2,V_GALIL) set_pev(id,pev_weaponmodel2,P_GALIL) } } if(g_speed[id]) { set_user_maxspeed(id,400.0) } if(g_speed2[id]) { set_user_maxspeed(id,435.0) } } public extra(id) { if(!bb_get_build_time()) { if(is_user_alive(id)) { static Item[64] formatex(Item,charsmax(Item),"\rExtra Item Menusu") new menu = menu_create(Item,"item_giris") formatex(Item,charsmax(Item),"\yHavada Cift Ziplama \r[%d TL] \d(MultiJump)",get_pcvar_num(ziplama)) menu_additem(menu,Item,"1") formatex(Item,charsmax(Item),"\yHizli Kosma \r[%d TL]",get_pcvar_num(hizli)) menu_additem(menu,Item,"2") formatex(Item,charsmax(Item),"\yGorunmezlik \r[%d TL]",get_pcvar_num(gorunmezlik)) menu_additem(menu,Item,"3") if(!bb_is_user_zombie(id)) { formatex(Item,charsmax(Item),"\yDonduran Bomba \r[%d TL]",get_pcvar_num(dondur)) menu_additem(menu,Item,"4") } menu_setprop(menu,MPROP_EXIT,MEXIT_ALL) menu_display(id,menu,0) } } else { renkli_yazi(id,"!n[!t%s!n] !gInsaat suresi boyunca Item Menusune girmezsin",TAG) } return PLUGIN_HANDLED } public guns_menu(id) { if(!bb_get_build_time()) { if(is_user_alive(id)) { static Item[64] formatex(Item,charsmax(Item),"\rOzel Silah Menu") new menu = menu_create(Item,"gun_enabled") formatex(Item,charsmax(Item),"\yErica AK47 \r[%d TL]",get_pcvar_num(gun1)) menu_additem(menu,Item,"1") formatex(Item,charsmax(Item),"\yErica M4A1 \r[%d TL]",get_pcvar_num(gun2)) menu_additem(menu,Item,"2") formatex(Item,charsmax(Item),"\ySKUL11 \r[%d TL]",get_pcvar_num(gun3)) menu_additem(menu,Item,"3") menu_setprop(menu,MPROP_EXIT,MEXIT_ALL) menu_display(id,menu,0) } } else { renkli_yazi(id,"!n[!t%s!n] !gInsaat suresi boyunca Silah Menusune girmezsin.",TAG) } return PLUGIN_HANDLED } public gun_enabled(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 esya1 = get_pcvar_num(gun1) new esya2 = get_pcvar_num(gun2) new esya3 = get_pcvar_num(gun3) switch(str_to_num(data)) { case 1 : { if(g_bbpacks[id] >= esya1) { g_bbpacks[id] -= esya1 harca_kazan[id] += esya1 ham_strip_weapon(id,"weapon_ak47") give_item(id,"weapon_ak47") cs_set_user_bpammo(id,CSW_AK47,90) g_ak47[id] = true renkli_yazi(id,"!n[!t%s!n] !gOzel silah Menuden !n[!tErica AK47!n] !g satin aldin.",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya1) } } case 2 : { if(g_bbpacks[id] >= esya2) { g_bbpacks[id] -= esya2 harca_kazan[id] += esya2 g_m4a1[id] = true ham_strip_weapon(id,"weapon_m4a1") give_item(id,"weapon_m4a1") cs_set_user_bpammo(id,CSW_M4A1,70) renkli_yazi(id,"!n[!t%s!n] !gOzel silah Menuden !n[!tErica M4A1!n] !g satin aldin.",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya2) } } case 3 : { if(g_bbpacks[id] >= esya3) { g_bbpacks[id] -= esya3 harca_kazan[id] += esya3 g_galil[id] = true ham_strip_weapon(id,"weapon_galil") give_item(id,"weapon_galil") cs_set_user_bpammo(id,CSW_GALIL,70) renkli_yazi(id,"!n[!t%s!n] !gOzel silah Menuden !n[!tSkull 11!n] !g satin aldin.",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya3) } } } menu_destroy(menu) return PLUGIN_HANDLED } public item_giris(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 esya1 = get_pcvar_num(ziplama) new esya2 = get_pcvar_num(hizli) new esya3 = get_pcvar_num(gorunmezlik) new esya4 = get_pcvar_num(dondur) switch(str_to_num(data)) { case 1 : { if(g_bbpacks[id] >= esya1) { g_bbpacks[id] -= esya1 harca_kazan[id] += esya1 g_multi[id] = true renkli_yazi(id,"!n[!t%s!n] !gExtra item menuden !n[!tMulti Jump!n] !gsatin aldin.",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya1) } } case 2 : { if(g_bbpacks[id] >= esya2) { g_bbpacks[id] -= esya2 harca_kazan[id] += esya2 g_speed[id] = true set_user_maxspeed(id,400.0) renkli_yazi(id,"!n[!t%s!n] !gExtra item menuden !n[!tHizli Kosma!n] !gsatin aldin.",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya2) } } case 3 : { if(g_bbpacks[id] >= esya3) { g_bbpacks[id] -= esya3 harca_kazan[id] += esya3 set_user_rendering(id, kRenderFxGlowShell, 255, 255, 0, kRenderTransAlpha, 0) set_task(10.0,"kapat",id) renkli_yazi(id,"!n[!t%s!n] !gExtra item menuden !n[!t10 saniyelik Gorunmezlik !n] !gsatin aldin.",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya3) } } case 4 : { if(g_bbpacks[id] >= esya4) { g_bbpacks[id] -= esya4 harca_kazan[id] += esya4 set_task(0.5,"frost",id) renkli_yazi(id,"!n[!t%s!n] !gExtra item menuden !n[!tDonduran Bomba !n] !gsatin aldin.",TAG) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya4) } } } menu_destroy(menu) return PLUGIN_HANDLED } public kapat(id) { set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255) renkli_yazi(id,"!n[!t%s!n] !gGorunmezligin Suresi Doldu.",TAG) } public frost(id) { console_cmd(id,"fn") } public kapa(id) { set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255) renkli_yazi(id,"!n[!t%s!n] !gGorunmezlginizin suresi doldu.",TAG) } public gorev_menu(id) { if(is_user_alive(id)) { static Item[64] formatex(Item,charsmax(Item),"\rGorev 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) { g_bbpacks[id] += odul1 renkli_yazi(id,"!n[!t%s!n] !g25 TL Harcadigin icin !n[!t%d TL!n] !gkazandin",TAG,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) { g_bbpacks[id] += odul2 renkli_yazi(id,"!n[!t%s!n] !g10 insan oldurerek !n[!t%d TL!n] !gkazandin",TAG,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) { g_bbpacks[id] += odul3 renkli_yazi(id,"!n[!t%s!n] !g15 Kez hayatta ladigib icin !n[!t%d TL!n] !gkazandin",TAG,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) { g_bbpacks[id] += odul4 renkli_yazi(id,"!n[!t%s!n] !g20 zombi oldurerek !n[!t10 TL!n] !gkazandin",TAG,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 g_bbpacks[attacker] += get_pcvar_num(g_killTL) } else { yirmi_zombie[attacker] += 1 g_bbpacks[attacker] += get_pcvar_num(g_killTL) } } public insan_menu(id) { if(!bb_get_build_time()) { if(!bb_is_user_zombie(id)) { static Item[64] formatex(Item,charsmax(Item),"\rHuman Sinif Menusu") new menu = menu_create(Item,"insan_menu_handler") formatex(Item,charsmax(Item),"\yKomando \r[%d TL] \d(Hiz ve +100 HP)",get_pcvar_num(cost_human1)) menu_additem(menu,Item,"1") formatex(Item,charsmax(Item),"\ySat\r[%d TL] \d(Gravity ve +100 HP)",get_pcvar_num(cost_human2)) menu_additem(menu,Item,"2") menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, menu,0) } } else { renkli_yazi(id,"!n[!t%s!n] !gInsaat suresi boyunca sinif secemezsin",TAG) } return PLUGIN_HANDLED } public insan_menu_handler(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 esya1 = get_pcvar_num(cost_human1) new esya2 = get_pcvar_num(cost_human2) switch(str_to_num(data)) { case 1 : { if(g_bbpacks[id] >= esya1) { g_bbpacks[id] -= esya1 harca_kazan[id] += esya1 set_user_maxspeed(id,430.0) renkli_yazi(id,"!n[!t%s!n] !gInsan Sinifindan !n[!tHuman 1!n] !gsinifini aldin",TAG) cs_set_user_model(id,KOMANDO) set_user_health(id,get_user_health(id) + 100) g_speed2[id] = true } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya1) } } case 2 : { if(g_bbpacks[id] >= esya2) { g_bbpacks[id] -= esya2 harca_kazan[id] += esya2 set_user_maxspeed(id,430.0) renkli_yazi(id,"!n[!t%s!n] !gInsan Sinifindan !n[!tHuman 2!n] !gsinifini aldin",TAG) cs_set_user_model(id,SAT) set_user_health(id,get_user_health(id) + 100) set_user_gravity(id,0.5) } else { renkli_yazi(id,"!n[!t%s!n] !gTL'niz yeterli degil.Gereken TL !n[!t%d TL!n]",TAG,esya2) } } } menu_destroy(menu) return PLUGIN_HANDLED } public bonus_menu(id) { if(g_kullandim[id]) { static Item[64] formatex(Item,charsmax(Item),"\rSlot - Admin - V.I.P Menusu") new menu = menu_create(Item,"bonus_al") formatex(Item,charsmax(Item),"\ySlot Bonusu \r[%d TL]",get_pcvar_num(slot_bonus)) menu_additem(menu,Item,"1") formatex(Item,charsmax(Item),"\yAdmin Bonusu \r[%d TL]",get_pcvar_num(admin_bonus)) menu_additem(menu,Item,"2") formatex(Item,charsmax(Item),"\yV.I.P. Bonusu \r[%d TL]",get_pcvar_num(vip_bonus)) menu_additem(menu,Item,"3") menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, menu,0) } else { renkli_yazi(id,"!n[!t%s!n] !gBu bonusu her elde 1 kere alabilirsin",TAG) } return PLUGIN_HANDLED } public bonus_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 bonus1 = get_pcvar_num(slot_bonus) new bonus2 = get_pcvar_num(admin_bonus) new bonus3 = get_pcvar_num(vip_bonus) switch(str_to_num(data)) { case 1 : { g_bbpacks[id] += bonus1 g_kullandim[id] = false renkli_yazi(id,"!n[!t%s!n] !gBonus menusunden !n[!t%d TL!n] !gbonus kazandin,",TAG,bonus2) } case 2 : { if(get_user_flags(id) & ADMIN_KICK) { g_bbpacks[id] += bonus2 g_kullandim[id] = false renkli_yazi(id,"!n[!t%s!n] !gBonus menusunden !n[!t%d TL!n] !gbonus kazandin,",TAG,bonus2) } else { renkli_yazi(id,"!n[!t%s!n] !gBu bonusu sadece !n[!tAdminler!n] !g alabilir.",TAG) } } case 3 : { if(get_user_flags(id) & ADMIN_LEVEL_B) { g_bbpacks[id] += bonus3 g_kullandim[id] = false renkli_yazi(id,"!n[!t%s!n] !gBonus menusunden !n[!t%d TL!n] !gbonus kazandin,",TAG,bonus3) } else { renkli_yazi(id,"!n[!t%s!n] !gBu bonusu sadece !n[!tAdminler!n] !g alabilir.",TAG) } } } menu_destroy(menu) return PLUGIN_HANDLED } public vip_menu(id) { if(!bb_get_build_time()) { if(!bb_is_user_zombie(id) && g_vipmenu[id]) { static Item[64] formatex(Item,charsmax(Item),"\rV.I.P Menu") new menu = menu_create(Item,"vipmenu_handler") formatex(Item,charsmax(Item),"\yYuksek Ziplama") menu_additem(menu,Item,"1") formatex(Item,charsmax(Item),"\y+35 HP") menu_additem(menu,Item,"2") formatex(Item,charsmax(Item),"\y+100 Zirh") menu_additem(menu,Item,"3") formatex(Item,charsmax(Item),"\yKutu Ac") menu_additem(menu,Item,"4") menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, menu,0) } else { renkli_yazi(id,"!n[!t%s!n] !gBu menuyu her elde 1 kere kullanabilirsin",TAG) } } else { renkli_yazi(id,"!n[!t%s!n] !gInsaat suresi boyunca vipmenuyu kullanamzsin",TAG) } return PLUGIN_HANDLED } public vipmenu_handler(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 : { set_user_gravity(id,0.6) g_vipmenu[id] = false renkli_yazi(id,"!n[!t%s!n] !gVip Menuden !n[!tYuksek Atlama!n] !galdin.",TAG) } case 2 : { set_user_health(id,get_user_health(id) + 35) g_vipmenu[id] = false renkli_yazi(id,"!n[!t%s!n] !gVip Menuden !n[!t+35 HP!n] !galdin.",TAG) } case 3 : { set_user_armor(id,get_user_armor(id) + 100) g_vipmenu[id] = false renkli_yazi(id,"!n[!t%s!n] !gVip Menuden !n[!t+100 Zirh!n] !galdin.",TAG) } case 4 : { g_vipmenu[id] = false set_task(1.5,"kutuac",id) } } menu_destroy(menu) return PLUGIN_HANDLED } public kutuac(id) { switch(random_num(1,4)) { case 1 : { renkli_yazi(id,"!n[!t%s] !gKutundan iflas cikti :(.Uzulme kumarda kaybeden askta kazanir.",TAG) g_bbpacks[id] = 0 } case 2 : { renkli_yazi(id,"!n[!t%s] !gKutundan 10 TL ve +50 HP cikti.",TAG) g_bbpacks[id] += 10 set_user_health(id,get_user_health(id) + 50) } case 3 : { renkli_yazi(id,"!n[!t%s] !gKutudan +5 TL ve M4A1 cikti..",TAG) g_bbpacks[id] += 5 give_item(id,"weapon_m4a1") cs_set_user_bpammo(id,CSW_AK47,90) } } } /*============================================================ renkli_yazi ============================================================*/ 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(); } } } } 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; }
Kod: Tümünü seç
L 11/04/2018 - 21:30:59: (map "fy_iceworld16") ED_Alloc: no free edicts
L 11/04/2018 - 21:31:22: (map "fy_iceworld16") ED_Alloc: no free edicts
L 11/04/2018 - 21:31:44: (map "fy_iceworld16") ED_Alloc: no free edicts
Link: | |
Linklerini gizle |