You dont need to reset the speed here:
Code:
set_pev( id, pev_maxspeed, fm_get_user_maxspeed(id))
and here you can use a switch
Code:
if(g_Number[id] == 0)
client_print(id, print_center, "[Chosen Mode: Invisible]")
if(g_Number[id] == 1)
client_print(id, print_center, "[Chosen Mode: Extra Speed]")
if(g_Number[id] == 2)
client_print(id, print_center, "[Chosen Mode: GodMode]")
if(g_Number[id] == 3)
{
client_print(id, print_center, "[Chosen Mode: Invisible]")
g_Number[id] = 0;
}
To detect if the user pressed a button or not, its better to use FM_CmdStart bcoz it is called the right time (i.e when the user presses any button)
And plz remove this
Code:
replace_all(msg, 190, "!t2", "^0") // Team2 Color
From the color chat funciton becoz in reality it isnt supposed to work and is actually used to zero terminate the string !
__________________