12.10.2013, 13:34
Hope it works for you
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
new szMessage[128];
if(IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicle(playerid);
}
if(PlayerInfo[playerid][pDeliverPlane] = 1 && IsPlayerInRangeOfPoint(playerid, 10,1968.79, -2492.85, 13.54))
format(szMessage, sizeof(szMessage), "You have picked up the Illeagel Deliver for Crate and succed to transfer it to LS! ");
SendClientMessage(playerid, COLOR_YELLOW, szMessage);
DisablePlayerCheckpoint(playerid);
PlayerInfo[playerid][pGunCrates] += 1;
SetVehicleToRespawn(vehicleid);
}