10.08.2012, 12:32
Quote:
|
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);
}
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);
}
pawn Код:
forward prisoncell(playerid);
public prisoncell(playerid)
{
//SetPlayerPos and all that stuff.
return 1;
}


