PHP Code:
public back(id)
{
if(cs_get_user_team(id) == CS_TEAM_SPECTATOR)
{
cs_set_user_team(id, team[id]);
csdm_respawn(id);
client_print(id, print_chat, "now are in game");
}
else
{
client_print(id, print_chat, "not allow");
return PLUGIN_HANDLED;
}
}