float _spectate(entity _player)
{
- if(SpectateNext(_player) == 1)
+ if(Spectate(_player) == 1)
{
PutObserverInServer();
self.classname = "spectator";
{
float i;
- if(!_for.superspec_itemfilter)
+ if(_for.superspec_itemfilter == "")
return TRUE;
if(_for.superspec_itemfilter == "")
_spectate(other);
self = _oldself;
- return FALSE;
+ return MUT_ITEMTOUCH_CONTINUE;
}
}
self = _oldself;
- return FALSE;
+ return MUT_ITEMTOUCH_CONTINUE;
}
MUTATOR_HOOKFUNCTION(superspec_SV_ParseClientCommand)
if(cmd_argc == 2)
{
if(argv(1) == "red")
- _team = COLOR_TEAM1;
+ _team = NUM_TEAM_1;
else
- _team = COLOR_TEAM2;
+ _team = NUM_TEAM_2;
}
FOR_EACH_PLAYER(_player)
MUTATOR_HOOKFUNCTION(superspec_ClientConnect)
{
+ if(!IS_REAL_CLIENT(self))
+ return FALSE;
+
string fn = "superspec-local.options";
float fh;