Written specifically for Hidden-Source Beta 4b.
Code:
/*
* Hidden:SourceMod - Autobot
*
* Description:
* Based on Phaedrus' original Fight-Bot EventScript.
* Spawns a bot in an empty or 1 person server.
* Bot leaves when there are 2 playable players.
*
* Changelog:
* v1.0.3
* Stopped trying to give the bot a shotgun if they're on hidden team.
* v1.0.2
* Bot attempts to target other player by mirroring his movement.
* v1.0.1
* Fixed the auto-kicking problem.
* Only 1 bot joins.
* Checks for server's cheat setting so it doesn't set sv_cheats 0 if it's already 1.
* v1.0.0
* Initial release.
*
* Contact:
* Paegus: [email protected]
* SourceMod: http://www.sourcemod.net > Community > Forums > SourceMod
* Hidden:Source: http://www.hidden-source.com > Forums > Server Admins
*/