Need help making a timer.
#4

Код:
if(IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z) &&  PLANESTAGE[playerid] == SFA)
{
new string[64], dxx, exx;
format(string, sizeof(string), "Your Passengers Are Boarding The plane(I want to add a 30 second timer ) ",);
SendClientMessage(playerid, COLOR_ORANGE, string);
PLANESTAGE[playerid] = LVB;
dxx =  DisablePlayerCheckpoint(playerid);
exx = SetPlayerCheckpoint(playerid, -1370.4148, -224.8594, 13.8710, 10.0);
GivePlayerMoney(playerid, MONEY_EARNT);
}
Код:
forward enable(); // top
Код:
forward disable(); // top
Код:
public enable()
{
SetPlayerCheckpoint(playerid, -1370.4148, -224.8594, 13.8710, 10.0);
SetTimer("disable",20000,true);
return 1;
}
public disable()
{
DisablePlayerCheckpoint(playerid, exx);
SetTimer("enable",20000,true);
return 1;
}
If not it I dont know, sorry
Reply


Messages In This Thread
Need help making a timer. - by Haydz - 14.07.2010, 22:50
Re: Need help making a timer. - by felipex - 14.07.2010, 23:04
Re: Need help making a timer. - by TheInnocentOne - 14.07.2010, 23:08
Re: Need help making a timer. - by felipex - 14.07.2010, 23:13
Re: Need help making a timer. - by Haydz - 14.07.2010, 23:53
Re: Need help making a timer. - by Nimnix - 14.07.2010, 23:55
Re: Need help making a timer. - by Haydz - 14.07.2010, 23:56

Forum Jump:


Users browsing this thread: 1 Guest(s)