Help with command
#1

Can someone post a command if it's possible to make a command /tempban with temporaly bans the player for the amount of tome the admin sent the ban for

soo it wil look like this:

/tempban [id] [how long the ban is for]

so thankyou if u can help

oh wait an example so if say [asg]davo was I'd: 22 I would do /tempban 22 7

which would make Id 22 ban for 7days and it will atomaticly unban him when 7days are over
Reply
#2

Sorry fir the bump but I really need this command
Reply
#3

http://forum.sa-mp.com/index.php?topic=61360.0

Maybe you can just use this FS instead of making an own one.
Reply
#4

some thing like this

pawn Код:
public TempBan(playerid,reason[],hours){
    new name[64],str[64];
    GetPlayerName(playerid,name,64);
    BanEx(playerid,reason);
    format(str,64,"unban %s",name);
    SetTimerEx("SendRconCommand",hours*3600000,false,"s",str);
}
Reply
#5

Yeah thx this is good enough
Reply
#6

if the server restarts they wont get unbaned though thinking about it
Reply
#7

Quote:
Originally Posted by (SF)Noobanatior
some thing like this

pawn Код:
public TempBan(playerid,reason[],hours){
    new name[64],str[64];
    GetPlayerName(playerid,name,64);
    BanEx(playerid,reason);
    format(str,64,"unban %s",name);
    SetTimerEx("SendRconCommand",hours*3600000,false,"s",str);
}
I wouldnt use this.

2 Reasons: - Server crash = Timer away
- High timers = lag.

Use the FS I gave you, its much better.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)