Kod:
#include <amxmodx>#include <fun>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <engine>
#include <xs>
#include <colorchat>
#define PLUGIN "Bos Menu"
#define VERSION "1.2"
#define AUTHOR "Zafer"
new Kanverdim [33]
public plugin_init() {
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("say /menu","Menu")
register_clcmd("say_team /menu","Menu")
}
public Menu(id) {
new menu = menu_create("\y[TheMeyhane Gaming] VipMenu", "menu_handler")
menu_additem(menu, "\y[TheMeyhane Gaming] Yaklasık 3 Katı HIZ ", "1", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]255HP 255 ARMOR", "2", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]Bomba Seti", "3", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]%50 Tekrar Dogma Sansi", "4", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]Mermi Sekmeme ", "5", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]Görünmezlik Glowu", "6", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]Gravity ", "7", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]5 Mermi Scoult ", "8", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]God Mode", "9", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]150 Can Bagisla 15 JB Kazan", "10", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]", "11", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]", "12", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]", "13", 0);
menu_additem(menu, "\y[TheMeyhane Gaming]", "14", 0);
menu_setprop(menu,MPROP_NEXTNAME,"\yIleri")
menu_setprop(menu,MPROP_BACKNAME,"\yGeri")
menu_setprop(menu,MPROP_EXITNAME,"\yDersim \r[Shop] \dCikis");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public menu_handler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
set_user_maxspeed(id,800.0)
client_print(id,print_chat,"%s Speed Aldiniz.Simdi Guc Senin Elinde:)", PREFIX);
}
case 2: {
set_user_health(id, 225);
set_user_armor(id, 225);
client_print(id,print_chat,"%s 255 HP Ve 255 Armor Aldin.Simdi Guc Senin Elinde:)", PREFIX);
}
case 3: {
give_item( id, "weapon_hegrenade" );
give_item( id, "weapon_flashbang" );
give_item( id, "weapon_smokegrenade" );
client_print(id,print_chat,"%s Bomba Seti Aldin.Simdi Guc Senin Elinde:)", PREFIX);
}
case 4: {
client_print(id,print_chat, "%s !tSansliysan Yeniden Dogacaksın:)",PREFIX);
}
case 5: {
}
case 6: {
{
set_user_rendering(id, kRenderFxNone, 50, 50, 50, kRenderTransAdd, 50);
set_user_footsteps(id, 1);
client_print(id,print_chat,"%s Gorunmezlik Aldin.Simdi Guc Senin Elinde:)", PREFIX);
}
}
case 7: {
set_user_gravity(id, 0.600);
client_print(id,print_chat,"%s Gravity Aldin.Simdi Guc Senin Elinde:)", PREFIX);
}
case 8: {
give_item(id, "weapon_scout")
cs_set_user_bpammo(id, CSW_SCOULT, 5)
}
case 9: {
set_user_godmode(id,1)
set_task(2.0,"godmodekapat",id)
ColorChat(id,GREEN ,"%s God Mode Aldin.Simdi Guc Senin Elinde:)^4")
}
case 10: {
kanbagis(id)
}
case 11: {
//
}
case 12: {
//
}
case 13: {
//
}
case 14: {
//
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public yenidendog(id) {
if(random (2)){
ExecuteHamB(Ham_CS_RoundRespawn, id);
client_print(id,print_chat,"%s Tekrar Dogdunuz.Hadi Yine iyisin",PREFIX);
}
}
public godmodekapat(id)
{
set_user_godmode(id,0)
ColorChat(id,GREEN , "%s Godmode Suresi Bitti",PREFIX)
}
public kanbagis(id)
{
if( !is_user_connected( id ) || !is_user_alive( id ) ) {
return PLUGIN_HANDLED;
}
if(Kanverdim[ id ] )
{
ColorChat(id,GREEN ,"Hey Cakal Sadece Taze Kan Verebilirsin :)" );
return PLUGIN_HANDLED;
}
if( get_user_health( id ) < 150 )
{
ColorChat(id,GREEN ,"%s Yeterli Kanın Yok Bagislayamassın:@",PREFIX );
return PLUGIN_HANDLED;
}
else
{
set_user_health( id, get_user_health( id ) - 150 );
jb_set_user_packs( id, jb_get_user_packs( id ) + 15 );
set_user_maxspeed( id, 160.0 );
Kanverdim[ id ] = true;
ColorChat(id,GREEN ,"%s 150 Can Bagislayip 15 JB Kazandin." ,PREFIX);
}
return PLUGIN_HANDLED;
}
}
Case 5 in görevine