I wanted to make that player can only execute some command if he is in spectate and I did this:
Code:
new iTeam = get_user_team(id);
if(iTeam == 1 || iTeam == 2) {
client_print(id, print_chat, "You have to be in spec!");
return PLUGIN_HANDLED;
}
That works fine but there is one problem.
When I'm in TT and I transfer to CT, while I'm transfering (while I'm in free look), i CAN execute that command. Please help