Jail function help
#1

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;
}
Reply
#2

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.
Reply
#3

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)