PHP Code:
new g_times_used[33]
public player_spawn(id)
{
g_times_used[id] = 0
}
public cmdMenu(id)
{
if( g_times_used[id] >= 2 )
{
client_print(id, print_chat, "%L", LANG_PLAYER, "HAVEALREADY")
return PLUGIN_CONTINUE
}
showMenu(id)
return PLUGIN_CONTINUE
}
PHP Code:
g_times_used[id]++
switch(key)
{
case 1:
{
give_item(id, "weapon_ak47")
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id,CSW_AK47,90)
cs_set_user_bpammo(id,CSW_DEAGLE,35)
}
__________________