mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2025-03-25 12:01:25 +00:00
make sure you won't get kicked for changing team, and make sure it sets
it properly
This commit is contained in:
parent
e9244ac7a0
commit
b03ce10389
1 changed files with 6 additions and 6 deletions
12
tforttm.qc
12
tforttm.qc
|
@ -182,7 +182,7 @@ string(float tno) GetTeamName =
|
|||
return "teal";
|
||||
}
|
||||
else
|
||||
st = "\"\"";
|
||||
st = "";
|
||||
|
||||
return st;
|
||||
};
|
||||
|
@ -208,9 +208,9 @@ void(entity p) SetTeamName =
|
|||
local string st;
|
||||
|
||||
st = GetTeamName(p.team_no);
|
||||
stuffcmd(p, "team ");
|
||||
stuffcmd(p, "team \""); //careful about empty team
|
||||
stuffcmd(p, st);
|
||||
stuffcmd(p, "\n");
|
||||
stuffcmd(p, "\"\n");
|
||||
setinfokey(p, "team", st);
|
||||
};
|
||||
#endif
|
||||
|
@ -637,9 +637,9 @@ void() TeamFortress_CheckTeamCheats =
|
|||
|
||||
// Set the player's team
|
||||
SetTeamName(self);
|
||||
bprint2(#PRINT_MEDIUM, self.netname, " has been kicked for changing team.\n");
|
||||
sprint(self, #PRINT_HIGH, "You have been kicked for changing your team. Don't do it.\n");
|
||||
stuffcmd(self, "disconnect\n");
|
||||
// bprint2(#PRINT_MEDIUM, self.netname, " has been kicked for changing team.\n");
|
||||
// sprint(self, #PRINT_HIGH, "You have been kicked for changing your team. Don't do it.\n");
|
||||
// stuffcmd(self, "disconnect\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue