19.02.2014, 10:24
When i was fixing my scripts, i remark that BOT when it join, the server don't make his file. After I check my scripts i found that BOTS skip all dialogs, like register and login dialog.
Then I make a variable on the player info enum with name "ACCEPTED", and i put when a player type the password on the registering menu or login dialog, this accepted variable take the value 1.
Finally on OnPlayerRequestSpawn() I add a condition if that accepted variable don't take 1 the server kick the player that is supposed to BOT.
Tested with : RakSAMPClient Bot Sytem.
Please test with other Bots generator if it works +1 rep please !
Then I make a variable on the player info enum with name "ACCEPTED", and i put when a player type the password on the registering menu or login dialog, this accepted variable take the value 1.
Finally on OnPlayerRequestSpawn() I add a condition if that accepted variable don't take 1 the server kick the player that is supposed to BOT.
Tested with : RakSAMPClient Bot Sytem.
Please test with other Bots generator if it works +1 rep please !