10.01.2010, 09:24
Hello,
I created an truckdriver job. The truckdrivers have to deliver a trailer at the docks. But i have some problems with the checkpoint:
Does anybody know how to make it work?
I created an truckdriver job. The truckdrivers have to deliver a trailer at the docks. But i have some problems with the checkpoint:
Код:
public OnPlayerEnterCheckpoint(playerid)
{
new vehicleid;
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if (vehicle == 403) // linerunner id
{
if(IsTrailerAttachedToVehicle(vehicleid))
{
GivePlayerMoney(playerid, 800);
SendClientMessage(playerid, 0xAFAFAFAA,"You have deliver your trailer succesfully, you get 800 dollar for it");
return 1;
}
else
{
SendClientMessage(playerid, 0xAFAFAFAA,"You're not in a truck!");
return 1;
}}}

