Posts: 1,794
Threads: 104
Joined: Feb 2012
Reputation:
0
Lately I've tried to make a bot in my server, I've followed KC's tutorial, it went all good but then the bot keeps connecting and disconnecting due to the register dialog, how to make the bot skip it?
Thank you.
Posts: 1,794
Threads: 104
Joined: Feb 2012
Reputation:
0
I did it but it didn't work, thats why I am asking here.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
It worked fine when I used to have NPCs few years ago. If the register dialog is in a filterscript (an example) and you used the code above in gamemode, it won't work.
Check if the player is NPC before you check whether a player is registered or not.
Posts: 413
Threads: 59
Joined: Sep 2013
There is a function to check if hes a bot.Sry,I cant give you code i am on my phone.