Getting a bot to log in
#1

Hi
My GM script won't compile under 0.3 - so my only option for bots is to use a filterscript. However, my script has password protection so bots cant join.

Is there a way to get a bot to enter a /login and password?

Matt
Reply
#2

....
Reply
#3

No, bots can only enter the server if there isn't a password setted.
Reply
#4

I mean a /login - not a server password
Reply
#5

Quote:
Originally Posted by Mattjones17
I mean a /login - not a server password
i think don correli means a login pass too. i think you can register the bot manually in scriptfiles with a password or so, or make it SendCommand /register 12345 then change the npc mode to make it SendCommand /login 12345 at OnPlayerRequestSpawn or OnPlayerConnect ??
Reply
#6

that would be alot easier than going in and editing the gamemode just add a few lines lol
Reply
#7

Quote:
Originally Posted by patchkinson
i think don correli means a login pass too.
No, i didn't meant login password.

Check the NPC tutorial topic to solve your problem.
Reply
#8

You should make exceptions for NPCs, for login passwords spawns whatever..

if(IsANpc(playerid) == 1)return 1; is an example to skip checks if they aren't neccesary for bots
Reply
#9

I can't do that because my gamemode wont compile in 0.3

What I am asking is whether I can get it to enter /login and a password when it spawns
Reply
#10

Quote:
Originally Posted by Mattjones17
I can't do that because my gamemode wont compile in 0.3

What I am asking is whether I can get it to enter /login and a password when it spawns
think so with OnPlayerConnect SendCommand /login password
not sure it will workzzz!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)