PHP Code:
register_clcmd("say /menu", "menu_hendler")
PHP Code:
new menu = menu creat("Menu:", "menu_hendler")
PHP Code:
new menu = menu_create("Menu", "menu_hendler")
PHP Code:
return PLUGIN_HANDLED
PHP Code:
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
PHP Code:
give_item(id, "weapon_awp")
PHP Code:
client_print(id, print_chat, "You get AWP !")
PHP Code:
cs_set_user_bpammo(id, CSW_AK47, 30)
PHP Code:
if(cs_get_user_money(id) >= 9000)
{
cs_set_user_money(id, money - 9000)
set_user_health(id, get_user_health(id) + 100)
client_print(id, print_chat, "You get 100HP !")
}
Lol, learn how functions, constants and defines are called, learn how to close a structure( { } ), learn to close "" and ()
@Yami, he also wrote clien_print instead of client_print.
__________________