Need the Temp Ban CMD. - 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: Need the Temp Ban CMD. (
/showthread.php?tid=207398)
Need the Temp Ban CMD. -
iiLiamii - 06.01.2011
Hi All,
Would it be possible for someone to give me the pawn code, For Temp Ban Please?
Thanks.
Re: Need the Temp Ban CMD. -
Rachael - 06.01.2011
I'm not scripting it for you, but I will tell you a way you can do it...
make a player variable eg 'TempBan' that gets saved with the players other stats, it defaults as zero
when the player logs in, if 'TempBan' < gettime(), they can connect as normal
otherwise it says they are temp banned
To tempban a player who is ingame, set their 'TempBan' stat to 'gettime()+ time in seconds, and kick them
jobs done.
Re: Need the Temp Ban CMD. -
iiLiamii - 06.01.2011
Quote:
Originally Posted by Rachael
I'm not scripting it for you, but I will tell you a way you can do it...
make a player variable eg 'TempBan' that gets saved with the players other stats, it defaults as zero
when the player logs in, if 'TempBan' < gettime(), they can connect as normal
otherwise it says they are temp banned
To tempban a player who is ingame, set their 'TempBan' stat to 'gettime()+ time in seconds, and kick them
jobs done.
|
Well I just got none of that. :L I need the actually Pwn to Inport it into my script.
Re: Need the Temp Ban CMD. -
Rachael - 06.01.2011
This method of editing a script will never work
Re: Need the Temp Ban CMD. -
Infamous - 06.01.2011
Click Here
Re: Need the Temp Ban CMD. -
iiLiamii - 06.01.2011
Quote:
Originally Posted by Infamous
|
Thanks.