11.07.2012, 12:51
The problem lies in the checking of wether its a dmv or a trucker vehicle. Please can someone help?
What am I doing wrong?
Код:
if(IsTruckerVehicle(vehicleid) && PlayerInfo[playerid][pTPackages] >= 1 && PlayerInfo[playerid][pDeliverTruck] != GetPlayerVehicleID(playerid))
{
GameTextForPlayer(playerid, "~r~You have already loaded~n~a different truck",4000,3);
DisablePlayerCheckpoint(playerid);
}
else if(IsTruckerVehicle(vehicleid) && PlayerInfo[playerid][pTPackages] >= 1)
{
startingtruckjob[playerid] = 2;
SetPlayerCheckpoint(playerid, 2222.5107,-2682.7368,13.5409, 5);
GameTextForPlayer(playerid, "~g~This truck is loaded~n~take it to the marker",4000,3);
}
else if(IsTruckerVehicle(vehicleid))
{
startingtruckjob[playerid] = 1;
GameTextForPlayer(playerid, "~g~Drive to the marker to~n~load some packages",4000,3);
SetPlayerCheckpoint(playerid,867.3699,-1209.2664,16.9766,5);
}
else if(IsDMVCar(vehicleid))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* GPS: Finish the test by driving through all of the checkpoints on your map.");
SetPlayerCheckpoint(playerid,2040.7101,-1930.1340,13.4667,5);
SendClientMessage(playerid, COLOR_RED, "If you exit the car your test will be failed and it will have to be re-done.");
}
}
return 1;
}

