03.02.2013, 18:26
PHP код:
if(CP[playerid] == 2348)
{
if(GetPlayerVehicleID(playerid) >= FedexC[0] && GetPlayerVehicleID(playerid) <= FedexC[12])
{
SendClientMessage(playerid , COLOR_WHITE,"< Radio : You have reached the loading-Bay , Please transfer the Goods to the CP on your radar");
new rand = random(sizeof(FedexPoints));
SetPlayerCheckpoint(playerid, FedexPoints[rand][0], FedexPoints[rand][1], FedexPoints[rand][2], 3.0);
CP[playerid] = 2349;
PlayerInfo[playerid][pvLoaded] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You're not in a Fedex Truck !");
}
DisablePlayerCheckpoint(playerid);
CP[playerid] = 0;
}
PHP код:
new Float:FedexPoints[5][3] = {
{1298.6033,-1856.7441,12.9526},
{1293.3746,-1650.4768,12.9565},
{1195.2435,-1324.1394,12.9615},
{1315.7272,-920.2856,37.5370},
{1009.0753,-932.6588,41.7536}
};