Posts: 1,063
Threads: 278
Joined: Mar 2010
Reputation:
0
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
Posts: 684
Threads: 122
Joined: Jul 2011
Reputation:
0
You really need to look into MYSQL or some sort of Database/file storing system to keep track of the time.
Posts: 850
Threads: 29
Joined: Sep 2014
Reputation:
0
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
}
Posts: 1,063
Threads: 278
Joined: Mar 2010
Reputation:
0
I dont use y_ini, i use dini
Posts: 1,114
Threads: 183
Joined: Apr 2012
Reputation:
0
Use:
ZCMD
SSCANF
DOF2
And you can do it, if you need any help with the CODE ask here.