SA-MP Forums Archive
Jail help - 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 help (/showthread.php?tid=554995)



Jail help - Ananisiki - 06.01.2015

Can any one plz help me with example on like if player is jailed with 5 minutes, he quit and when he join again he still in jail with the same time he quit, i want to do this so no player can abuse jail


Re: Jail help - Shockey HD - 06.01.2015

You really need to look into MYSQL or some sort of Database/file storing system to keep track of the time.


Re: Jail help - Ananisiki - 06.01.2015

It possible with dini?


Re: Jail help - ATGOggy - 06.01.2015

Make a variable jailtime and save it to user data.

OnPlayerDisconnect:
If you are using y_ini, do INI_Int("Jailtime",PlayerInfo[playerid][jailtime]);

OnPlayerConnect:
if(PlayerInfo[playerid][jailtime]>0)
{
jail, warn,etc.... blah blah
}


Re: Jail help - Ananisiki - 07.01.2015

U can explain more plz?


Respuesta: Jail help - JuanStone - 07.01.2015

Hello, look at this .

Hello one.

Hello two.


Re: Jail help - Ananisiki - 08.01.2015

I dont use y_ini, i use dini


Re: Jail help - Ananisiki - 09.01.2015

Bump


Re: Jail help - Ananisiki - 11.01.2015

Bump


Re: Jail help - s4kuL - 11.01.2015

Use:

ZCMD
SSCANF
DOF2

And you can do it, if you need any help with the CODE ask here.