04.08.2011, 20:07
it means that player can use this command a lot of time and no as i do in the command.
as you can see here
as you can see here
PHP код:
if(HasTakeOff[playerid] == 1)
{
SendClientMessage(playerid, Green, "Please wait before using /takeoff again.");
return 1;
}
if(gTeam[playerid] == Allied)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1121.6018,572.1331,20.6020);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
HasTakeOff[playerid] =1;
SetTimer("TakeOffReset", 1000*60*3, 0);
}
else
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1121.6018,572.1331,20.6020);
}
}
}