Jail function 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 function help (
/showthread.php?tid=550356)
Jail function help -
dan40o - 12.12.2014
How can i make it, when Jail time expire for player to re-spawn him
i have this:
Код:
public FirstTimer()
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(Jail[i] >= 1)
{
Jail[i] --;
}
}
}
return 1;
}
AW: Jail function help -
Flori - 12.12.2014
Use a public function with a "playerid" parameter.
Like: public FirstTimer(playerid)
Then you don't need to loop through all players to find the jailed players.
Re: Jail function help -
dan40o - 12.12.2014
Thanks.