Help with command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with command (
/showthread.php?tid=151852)
Help with command -
[asg]davo - 01.06.2010
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
Re: Help with command -
[asg]davo - 01.06.2010
Sorry fir the bump but I really need this command
Re: Help with command -
Jeffry - 01.06.2010
http://forum.sa-mp.com/index.php?topic=61360.0
Maybe you can just use this FS instead of making an own one.
Re: Help with command -
(SF)Noobanatior - 01.06.2010
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);
}
Re: Help with command -
[asg]davo - 01.06.2010
Yeah thx this is good enough
Re: Help with command -
(SF)Noobanatior - 01.06.2010
if the server restarts they wont get unbaned though thinking about it
Re: Help with command -
Jeffry - 01.06.2010
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.