What I'm doing wrong?
If the cvar is set to 1, the colorchat is displayed, it must display only if the player is not alive and cvar is set to 0
PHP Code:
public menuAdmin_handler(id, menu,item)
{
switch(item)
{
case 0:
{
// Check if Player is alive & CVARs that alow change team while alive/unalive
if(is_user_alive(id) && get_pcvar_num(sm_changeteam_alive) == 1) changeTeam(id)
if(is_user_alive(id) && get_pcvar_num(sm_changeteam_alive) == 0) changeTeam(id)
else ColorChat(id, NORMAL, "You must be alive!")
sayMenu(id)
}
}
}