Need help with a command.
#10

Try this:

pawn Код:
// Add this line to the command
SetTimerEx("UnjailPlayer", jailTime * 1000, false, "d", otherId);

forward UnjailPlayer(playerid);
public UnjailPlayer(playerid) {
    // Change these coordinates to where the player goes after the jail sentence
    SetPlayerPos(otherid, 0, 0, 0);
    // Reset their jailed variables
    Jailed[otherId] = 0;
    PlayerInfo[otherId][pJailTime] = 0;
}
Reply


Messages In This Thread
Need help with a command. - by Scriptissue - 04.10.2010, 12:30
Re: Need help with a command. - by CaptainOwen - 04.10.2010, 12:37
Re: Need help with a command. - by Scriptissue - 04.10.2010, 12:39
Re: Need help with a command. - by CaptainOwen - 04.10.2010, 12:42
Re: Need help with a command. - by Scriptissue - 04.10.2010, 12:59
Re: Need help with a command. - by CaptainOwen - 04.10.2010, 14:26
Re: Need help with a command. - by samgreen - 04.10.2010, 15:30
Re: Need help with a command. - by Scriptissue - 04.10.2010, 15:55
Re: Need help with a command. - by CaptainOwen - 04.10.2010, 16:47
Re: Need help with a command. - by samgreen - 04.10.2010, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)