Browse Source

Disable name changes on bots

Bots keep cycling through names when in Arena spectate.  Stop that.
nosoop 6 years ago
parent
commit
561d03dec8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      scripting/botmanager.sp

+ 4 - 1
scripting/botmanager.sp

@@ -5,7 +5,7 @@
 #include <tf2>
 #include <tf2_stocks>
 
-#define PLUGIN_VERSION			"1.3.1"
+#define PLUGIN_VERSION			"1.3.2"
 
 public Plugin:myinfo = {
 	name		= "[TF2] Bot Manager",
@@ -302,6 +302,9 @@ public Event_PlayerConnect(Handle:event, const String:name[], bool:dontBroadcast
 	if(GetEventBool(event, "bot")) {
 		PushArrayCell(joiningBots, GetEventInt(event, "userid"));
 		SetEventBroadcast(event, true);
+		
+		// more arena hacks
+		ServerCommand("namelockid %d 1", GetEventInt(event, "userid"));
 	}
 }