Code: Select all
public cmdVmenu(id){ if(cs_get_user_team(id) == CS_TEAM_CT && get_user_flags(id) & ADMIN_JBVIP && !VipUsed[id]) { VipCTMenu(id); } else if(cs_get_user_team(id) == CS_TEAM_T && get_user_flags(id) & ADMIN_JBVIP && !VipUsed[id]) { VipTMenu(id); } else if(!is_user_alive(id) && get_user_flags(id) & ADMIN_JBVIP) { client_printc(id, "%s You have to be alive to use /VMENU", PREFIX); } else if(VipUsed[id]) { client_printc(id, "%s You Already used !gVIP Menu!n this round. Please wait till next round", PREFIX); } else { client_printc(id, "%s Only !gVIP!n may use the VIP Menu", PREFIX); return PLUGIN_HANDLED; } return PLUGIN_HANDLED;}
Code: Select all
else if(!is_user_alive(id) && get_user_flags(id) & ADMIN_JBVIP) { client_printc(id, "%s You have to be alive to use /VMENU", PREFIX); }