| Choose_Your_Destiny |
08-09-2013 12:30 |
this code not work
All admin have the ADMIN_LEVEL_H
Admin write "say /weapon".But, this is useless :(
PHP Code:
public item_selected(id) { if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H) { ColorChat(id, NORMAL,"^4[Biohazard]:^1 Buy to a ^3Cart Blue^1 gun should be ^4ADMIN^1!!") return PLUGIN_HANDLED } new admin_name[32] get_user_name(id,admin_name,31)
new cash = cs_get_user_money(id)
if(cash >= get_pcvar_num(cvar_cartblue_cash)) { cs_set_user_money(id, cash - get_pcvar_num(cvar_cartblue_cash)) give_cartred(id) ColorChat(id,NORMAL,"^4[Biohazard]:^1 ADMIN: %s You have purchased a ^4Cart Blue^1 gun.",admin_name) } else { ColorChat(id,NORMAL,"^4[Biohazard]:^1 ADMIN: %s You don't have enough money! You need: %d $",admin_name,get_pcvar_num(cvar_cartblue_cash)) } return PLUGIN_HANDLED }
|