Yo, need some help with some stuff
Models:
When i'm ingame and choose ex. Mr Smith model and then if i want another one or maybe reset the model but i
i can't. Neither the message appears.
Why?
PHP Code:
public ModelMenuCT( id )
{
new menu = menu_create("\yVIP Menu^n\wCounter-Terrorist Models^n\d -www.Scandic-Gamers.com", "HandleModelsMenuCT")
menu_additem( menu, "Mr Smith", "1", 0 );
menu_additem( menu, "Master Chief", "2", 0 );
menu_additem( menu, "\yReset Model", "3", 0 );
menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );
menu_display( id, menu, 0 );
}
public ModelMenuT( id )
{
new menu = menu_create("\yVIP Menu^n\wTerrorist Models^n\d -www.Scandic-Gamers.com", "HandleModelsMenuTerr")
menu_additem( menu, "Rebel", "1", 0 );
menu_additem( menu, "50 Cent", "2", 0 );
menu_additem( menu, "\yReset Model", "3", 0 );
menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );
menu_display( id, menu, 0 );
}
public HandleModelsMenuCT(id, key, menu, item) {
if(is_user_alive(id))
{
switch(key)
{
case 0: {
cs_set_user_model(id,"VIP_CT")
ColorChat(id, BLUE, "%s Selected Model loaded successfully!", prefix)
}
case 1: {
cs_set_user_model(id,"VIP_CT2")
ColorChat(id, BLUE, "%s Selected Model loaded successfully!", prefix)
}
case 2: {
cs_reset_user_model(id)
ColorChat(id, BLUE, "%s Model resetted sucessfully!", prefix)
}
}
}
return PLUGIN_HANDLED
}
public HandleModelsMenuTerr(id, key, menu, item) {
if(is_user_alive(id))
{
switch(key)
{
case 0: {
cs_set_user_model(id,"VIP_T")
ColorChat(id, RED, "%s Selected Model loaded successfully!", prefix)
}
case 1: {
cs_set_user_model(id,"VIP_T2")
ColorChat(id, RED, "%s Selected Model loaded successfully!", prefix)
}
case 2: {
cs_reset_user_model(id)
ColorChat(id, RED, "%s Model resetted sucessfully!", prefix)
}
}
}
return PLUGIN_HANDLED
}
Toggles:
I need a VIP tag in scoreboard that and so a player writes with green color (colorchat) that you can choose from a menu if you want it OFF or ON.
Ex.
1. Scoreboard Tag [ON] = Enabled & OFF = Disabled
2. Green Chat [ON] = Enabled & OFF = Disabled
How do i do this?
Thanks in advance!
__________________