12.10.2013, 08:10
Here you go
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
new
szMessage[ 128 ]
;
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! ");
SendClientMessageEx( playerid, COLOR_YELLOW, szMessage );
DisablePlayerCheckpoint( playerid );
PlayerInfo[ playerid ][ pGunCrates ] ++; //instead of +=1;
// removed the useless loop
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}