10.08.2012, 12:15
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.
So how will I make that timer end, and then when it does end change there position ?
cheers team.
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);
}
cheers team.


,Float:y,Float:z to the position you want them to be placed at.