how do we check if a player join spectator when he was still alive? currently this what i have but the chat message doesnt seem to be printed when i use is_user_alive
Code:
public plugin_init()
{
// bla bla....
register_event( "TeamInfo", "join_team", "a")
}
public join_team()
{
new id = read_data(1)
static user_team[32]
read_data(2, user_team, 31);
if(user_team[0] == 'S' && is_user_alive(id))
client_print(0, print_chat, "Someone entered Spectator"
}