30.01.2010, 13:32
OnPlayerSpawn gets executed when your state changes from spectating back to "onfoot".
So you gotta define a value that changes if a player is spectating, save his previous coordinates and return him to them in OnPlayerSpawn if he uses /specoff.
So you gotta define a value that changes if a player is spectating, save his previous coordinates and return him to them in OnPlayerSpawn if he uses /specoff.