mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-06-27 06:41:51 +00:00
bots_main_firstIsHost enabled by default for new users
This commit is contained in:
@ -23,7 +23,7 @@ init()
|
||||
if(getDvar("bots_main_GUIDs") == "")
|
||||
setDvar("bots_main_GUIDs", "");//guids of players who will be given host powers, comma seperated
|
||||
if(getDvar("bots_main_firstIsHost") == "")
|
||||
setDvar("bots_main_firstIsHost", false);//first player to connect is a host
|
||||
setDvar("bots_main_firstIsHost", true);//first player to connect is a host
|
||||
|
||||
if(getDvar("bots_manage_add") == "")
|
||||
setDvar("bots_manage_add", 0);//amount of bots to add to the game
|
||||
|
@ -23,6 +23,8 @@ doHostCheck()
|
||||
result = false;
|
||||
if (getDvar("bots_main_firstIsHost") != "0")
|
||||
{
|
||||
printToConsole("WARNING: bots_main_firstIsHost is enabled");
|
||||
|
||||
if (getDvar("bots_main_firstIsHost") == "1")
|
||||
{
|
||||
setDvar("bots_main_firstIsHost", self getguid());
|
||||
|
Reference in New Issue
Block a user