Hello people can help me a little of this plugin
"Deagle Duel" The incongruity people only get the deagle
"Knife duel" The people only get a knife, all weapons are taken away
"Is freeday" The terrorist gets freeday next round in a blue color glow
"HE DUEL" The last people to get DB always uses a DB until one is dead
"Kill All Ct" CT be obtained weapons and TE gets all the weapons to kill the CTs to
"Freeday For All" Everybody gets freeday
So it's all set but if
In freeday the players will not glow
Vidually at Knife and no weapons are taken away
And when He vidually they can not get U
Code:
#include <amxmodx>
#include <engine>
#include <fun>
#include <hamsandwich>
#define VERSION "1.0"
#define PLUGIN "Last Request"
#define AUTHOR " K2 ."
enum
{
MENU_NONE,
MENU_MAIN,
MENU_SUB1,
};
new g_current_menu[33];
public plugin_init()
{
register_clcmd("say /lr", "ShowMainMenu");
register_plugin("Last Request", "1.0", "Proton");
}
public client_putinserver(id)
{
g_current_menu[id] = MENU_NONE;
}
public ShowMainMenu(id)
{
if( !is_user_alive( id ) )
return PLUGIN_HANDLED;
g_current_menu[id] = MENU_MAIN;
new menu = menu_create("Last Request", "MainMenuHandle");
menu_additem(menu, "Deagle Duell", "1");
menu_additem(menu, "FreeDay", "2");
menu_additem(menu, "Knife Fight", "3");
menu_additem(menu, "HE Duell", "4");
menu_additem(menu, "Kill All CT", "5");
menu_additem(menu, "FreeDay for All", "6");
menu_display(id, menu);
return PLUGIN_HANDLED;
}
public MainMenuHandle( id , menu , item )
{
if ( item == MENU_EXIT )
{
g_current_menu[id] = MENU_NONE;
menu_destroy(menu);
return;
}
static _access, info[3], callback;
menu_item_getinfo(menu, item, _access, info, charsmax(info), _, _, callback);
menu_destroy(menu);
switch ( str_to_num( info ) )
{
case 1:
{
give_item( id , "weapon_deagle" )
set_user_health( id , 100 );
client_print(id, print_chat, "You selected Deagle Duell");
}
case 2:
{
client_print(id, print_chat, "You selected FreeDay");
}
case 3:
{
give_item( id , "weapon_knife" )
set_user_health( id , 100 );
client_print(id, print_chat, "You selected Knife Fight");
}
case 4:
{
client_print(id, print_chat, "You selected HE Duell");
}
case 5:
{
client_print(id, print_chat, "You selected Kill All CT");
}
case 6:
{
client_print(id, print_chat, "You selected FreeDay For All");
}
}
}
Thank You for Help
sry for my bad english ^^
__________________