1. try function player_switchteam (player_entity, curteam, newteam)
You'll have to find out which value stands for spectator (my guess would be 4) and test newteam for that value. There might be problems if the player tries to change to spectator but can't (like if the server won't allow it), so look out for that.
2. Have you tried using bspzip instead?
|