Page 1 of 1

GM/player detect

Posted: Sat Aug 03, 2013 3:24 pm
by BeyondNames
Is it possible to have the bot stop if there are players near? with gm detect

Re: GM/player detect

Posted: Sat Aug 03, 2013 5:12 pm
by Ego95

Code: Select all

			if CountPlayers(nil,true,true) > 0 then
				print("1 or more players found. Don't bot. Wait")
				repeat
					yrest(10000)
				until 1 > CountPlayers(nil,true,true)
			end
For example.

AlterEgo95

Re: GM/player detect

Posted: Sat Aug 03, 2013 11:07 pm
by BeyondNames
K thx

Re: GM/player detect

Posted: Sun Aug 04, 2013 12:53 am
by rock5
He should probably have mentioned that the CountPlayer function is from a userfunction.
http://www.solarstrike.net/phpBB3/viewt ... 781#p36781

Re: GM/player detect

Posted: Sun Aug 04, 2013 2:06 pm
by BeyondNames
works thank you Alter and rock

Re: GM/player detect

Posted: Sat Aug 10, 2013 2:44 pm
by BeyondNames
im back
Ok
how do u have it check for players near the bot but ignore the ones i tell him 2 ignore? Also how do u have it look for people in a certain radius?
Thanks for the quick feedback

Re: GM/player detect

Posted: Sat Aug 10, 2013 3:15 pm
by rock5
  • CountPlayers(inrange, printnames, ignoreFriends)

Set 'inrange' to the range you want to use.
Set 'printnames' to true if you want it to print the names when the function runs.
Set 'ignorefriends' to true if you want it to ignore names in the player friends list. That's the bot friend list, not the in game friends list.

Re: GM/player detect

Posted: Mon Aug 12, 2013 1:12 pm
by BeyondNames
k ty