14.07.2010, 23:13
Код:
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; }