Posts: 1,409
Threads: 376
Joined: Apr 2012
Reputation:
0
Thanks and i have a question is timeban possible with YINI?
Posts: 985
Threads: 13
Joined: Sep 2011
Reputation:
0
Yep. I've done it before, you'll have to create your own ban file and ban functions though. Quite easy really.
In other words, you're creating your own custom ban system away from sa-mp's original one.
Posts: 985
Threads: 13
Joined: Sep 2011
Reputation:
0
Show me your BanPlayer function. It should only kick the player. Then under OnPlayerConnect you load his files and check if banned = 1. If so, we kick him.
What the unban command will do is just open the user's (banned) file and set Banned to 0. Thus 'unbanning' him.
Posts: 857
Threads: 60
Joined: Mar 2011
Reputation:
0
Try my newest include, will save you some time. Link in my signature.
Posts: 985
Threads: 13
Joined: Sep 2011
Reputation:
0
UserPath's first argument must be an integer. For example: UserPath(playerid).
Posts: 1,409
Threads: 376
Joined: Apr 2012
Reputation:
0
So all working, but how to make an timeban command?