Jail Timer [Help]
#3

Quote:
Originally Posted by LukeTheMajor
Посмотреть сообщение
Hey there,

Basically I am looking for a bit of help with a timer.

When somebody with a wanted star walks into my checkpoint it sends them to a cell.

I only want them to be in that cell for 60 seconds and then it releases them and sends them to a different position.

I'll show you what I have so far, and if anybody can complete it that'll be awesome.

Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(GetPlayerWantedLevel(playerid) >= 1)
    {
        SetTimer("prisoncell", 10000, true);
        SetPlayerWantedLevel(playerid, 0);
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,263.9106,77.6354,1001.0391);
    }
So how will I make that timer end, and then when it does end change there position ?

cheers team.
Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(GetPlayerWantedLevel(playerid) >= 1)
    {
        SetTimerEx("prisoncell", 60000, false,"i",playerid);//we need SetTimerEx
        SetPlayerWantedLevel(playerid, 0);
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,263.9106,77.6354,1001.0391);
    }
Here timer is now of 60 sec which do not repeat itself.

pawn Код:
forward prisoncell(playerid);
public prisoncell(playerid)
{
    //SetPlayerPos and all that stuff.
    return 1;
}
Reply


Messages In This Thread
Jail Timer [Help] - by LukeTheMajor - 10.08.2012, 12:15
Re: Jail Timer [Help] - by phillip875 - 10.08.2012, 12:32
Re: Jail Timer [Help] - by [MM]RoXoR[FS] - 10.08.2012, 12:32

Forum Jump:


Users browsing this thread: 1 Guest(s)