mirror of
				https://github.com/ineedbots/iw4_bot_warfare.git
				synced 2025-10-31 01:46:57 +00:00 
			
		
		
		
	host
This commit is contained in:
		| @@ -10,6 +10,27 @@ is_host() | ||||
| doHostCheck() | ||||
| { | ||||
| 	self.pers["bot_host"] = false; | ||||
|  | ||||
| 	if (self is_bot()) | ||||
| 		return; | ||||
|  | ||||
| 	DvarGUID = getDvar("bots_main_GUIDs"); | ||||
| 	result = false; | ||||
| 	if (DvarGUID != "") | ||||
| 	{ | ||||
| 		guids = strtok(DvarGUID, ","); | ||||
|  | ||||
| 		for (i = 0; i < guids.size; i++) | ||||
| 		{ | ||||
| 			if(self.guid == guids[i]) | ||||
| 				result = true; | ||||
| 		} | ||||
| 	} | ||||
| 	 | ||||
| 	if (!self isHost() && !result) | ||||
| 		return; | ||||
|  | ||||
| 	self.pers["bot_host"] = true; | ||||
| } | ||||
|  | ||||
| /* | ||||
|   | ||||
		Reference in New Issue
	
	Block a user