float _spectate(entity _player)
{
- if(SpectateNext(_player) == 1)
+ if(Spectate(_player) == 1)
{
PutObserverInServer();
self.classname = "spectator";
if(cmd_argc == 2)
{
if(argv(1) == "red")
- _team = FL_TEAM_1;
+ _team = NUM_TEAM_1;
else
- _team = FL_TEAM_2;
+ _team = NUM_TEAM_2;
}
FOR_EACH_PLAYER(_player)
MUTATOR_HOOKFUNCTION(superspec_ClientConnect)
{
+ if(clienttype(self) != CLIENTTYPE_REAL)
+ return FALSE;
+
string fn = "superspec-local.options";
float fh;