SA-MP Forums Archive
Jail after /q - 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)
+--- Thread: Jail after /q (/showthread.php?tid=467374)



Jail after /q - antonisrodos94 - 02.10.2013

i need this script for LuxAdmin(strcmp)if one player go jail and after /q when recconnect stay with a jail time...

Sorry for my Bad English plz help.


Re: Jail after /q - Stereotype - 02.10.2013

just onplayerdisconnect make save for jail time and if player jailed ... and add onplayerconnect check if player is jailed and to load jailed time and to move him to jail..


Re: Jail after /q - Superhot - 02.10.2013

Код:
enum pinfo
{
    pJailed,
    pJailTime
}
new PlayerInfo[MAX_PLAYERS][pinfo];
do you have this?


Re: Jail after /q - Jochemd - 02.10.2013

Quote:
Originally Posted by Superhot
Посмотреть сообщение
Код:
enum pinfo
{
    pJailed,
    pJailTime
}
new PlayerInfo[MAX_PLAYERS][pinfo];
do you have this?
You don't even need pJailed. Just check if pJailTime > 0 and then send him to jail.


Re: Jail after /q - Marshall32 - 02.10.2013

You need the full script if you want it to work. Save Jail in file or database and load it again and set in jail again.
Wont work with just 1 piece.