Time Ban - help!
#1

Hello everyone!,
How can I create a command / ban that works in time?
Example:

Код:
/ban [id] [time] [reason]
Thank you.
Reply
#2

are you using a certain admin script, or just want it for RCON admins only?
Reply
#3

I want it for the administrator.
Reply
#4

what admin script you using?
Reply
#5

The easiest way is to do something like that.
Код:
new unbantime = gettime() + (length of ban in seconds)
You save that and whne player connect you check
Код:
if(unbantime <= gettime()) //unbanned
else //still banned
Reply
#6

willsuckformoney, No script.
Sergei, I am a beginner, you could write a mini tutorial?
Reply
#7

Do you know how to make commands and how to save things to user file?
Reply
#8

I know how to command the ban, but do not know how to time.
Reply
#9

Someone help me?
Reply
#10

It all depends on how you ban people (SAMP ban file or another system).

Also, if you want your timed bans to work after your server restarts then you need to code a system for that too.

That is why no one is helping... it is more complicated than it seems. You need to be more specific in how you ban people.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)