Ban dialog
#5

In the /ban command, format a string with the information such as name, ip, admin who banned the player, date or whatever you want. Then save the information with your ban system and use ShowPlayerDialog to show the dialog to the banned player. After, set a SetTimerEx in 500 milliseconds as an interval and finally Kick the player. It will show the dialog and they will be kicked. We do not ban players because when they will connect back, it won't show why they've been banned, but the message "You are banned from this server." instead.

If a player connects, check if he's banned with your ban system and if they are, then load the data, and do the above in order to show him the dialog with the banned information and kick him.

I hope I explained it better this time.
Reply


Messages In This Thread
Ban dialog - by Sliceofdeath - 09.08.2013, 09:03
Re: Ban dialog - by Konstantinos - 09.08.2013, 09:07
Re: Ban dialog - by Sliceofdeath - 09.08.2013, 09:08
Re: Ban dialog - by Sliceofdeath - 09.08.2013, 09:16
Re: Ban dialog - by Konstantinos - 09.08.2013, 09:16
Re: Ban dialog - by JaKe Elite - 09.08.2013, 09:18
Re: Ban dialog - by Sliceofdeath - 09.08.2013, 09:24
Re: Ban dialog - by Sliceofdeath - 09.08.2013, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)