Temp. ban
#1

How to make a TEMP BAN. system that ban players for HOURS/DAYS that depends on the rule they broke using Y_ini and Dcmd (No other command processors please ). I really want to learn this..

NOTE; Please do not tell me to check a tutorial, "Hey download my FS" - because I want to learn this and not copy it, and also I've searched for tutorials but I didn't found anything interesting.
Reply
#2

Considering you don't want to copy, and want to learn something, I shan't be posting code.

Save the date where the players will get unbanned with Y_ini. When the player connects, load his data, use getdate() and check if the current date is equal to or later than the unban date. If so, unban the player.

The dcmd command won't be much more than kicking the player and saving the specified date in his savefile.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)