How to restrict access (BAN) and display reason in client
There are various reasons to ban a player, or maybe you don't want to allow access to your server unless a GM has approved the new account.
Check out the video:
[ame="http://www.youtube.com/watch?v=qtpaTYkM-l8"]YouTube- banned2.avi[/ame]
Here is how to do this:
In your loginserver folder there is a file called "AllowStatus.sdb"
it's pretty self explanatory although here is the example:
Code:
Status,Allow,RejectText,
A,TRUE,,
B,FALSE,Account not approved yet,
C,FALSE,Banned for dating GMs GF,
D,FALSE,Your mom called and said no more A3,
E,FALSE,Noobs not allowed,
F,TRUE,,
G,TRUE,,
H,TRUE,,
Just edit this file and make sure that the status field in the "asd"."account" table has the proper value.