Hello guys,
I want to make a menu, but i have got some problems.
I want to make menu that turn on/off a VIP model.
Part of the code is
Code:
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_USER) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "vip_t")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "vip_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
I would like to make menu for that which going to look like this :
and when you are going to press number 1 its going to change to
and this code is going to 'turn off' for a player and he will have default model again. (ofcourse when he will press 1 he will have VIP model again).
I am new to scripting, so please help me! :-)