mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-06-28 15:11:49 +00:00
connect and disconnect msgs
This commit is contained in:
@ -665,9 +665,22 @@ onPlayerConnect()
|
|||||||
level waittill( "connected", player );
|
level waittill( "connected", player );
|
||||||
|
|
||||||
player thread onChangeKit();
|
player thread onChangeKit();
|
||||||
|
|
||||||
|
print( "Player connected: " + player.name + " guid " + player getGuid() + "\n" );
|
||||||
|
player thread onPlayerDisconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onPlayerDisconnect()
|
||||||
|
{
|
||||||
|
name = self.name;
|
||||||
|
guid = self getGuid();
|
||||||
|
|
||||||
|
self waittill( "disconnect" );
|
||||||
|
|
||||||
|
print( "Player disconnected: " + name + " guid " + guid + "\n" );
|
||||||
|
}
|
||||||
|
|
||||||
watchNuke()
|
watchNuke()
|
||||||
{
|
{
|
||||||
setDvar( "scr_spawnpointfavorweight", "" );
|
setDvar( "scr_spawnpointfavorweight", "" );
|
||||||
|
Reference in New Issue
Block a user