Quote:
Originally Posted by MadeMan
pawn Код:
new JailTime[MAX_PLAYERS];
OnGameModeInit:
pawn Код:
SetTimer("JailTimer", 1000, true);
pawn Код:
forward JailTimer(); public JailTimer() { for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(JailTime[i] > 0) { JailTime[i]--; if(JailTime[i] == 0) { // release player from jail } } } } }
When you set player to jail, do
pawn Код:
JailTime[playerid] = 3600;
this will set player jail time to 3600 seconds (1 hour).
Save JailTime[playerid] with dini.
|
I did, buy i doesnt work.. Shall i pm you my script so you can check what the problem
is and maybe fix and/or say what the problem was/is?