From b03ce103896a7a771bd0e8bf8e3de3dbae607871 Mon Sep 17 00:00:00 2001 From: Adam Olsen Date: Fri, 20 Jul 2001 14:18:59 +0000 Subject: [PATCH] make sure you won't get kicked for changing team, and make sure it sets it properly --- tforttm.qc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tforttm.qc b/tforttm.qc index 70c12ca..b575569 100644 --- a/tforttm.qc +++ b/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; } }