Quote:
Originally Posted by DarrenReeder
pawn Код:
CMD:loadtruck(playerid, params[]) { if(!pInfo[playerid][pJob] == 1) return SendClientMessage(playerid, COLOR_WHITE, "You already have an existing checkpoint or trucking route."); if(!IsVehicleTruck(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, COLOR_WHITE, "To load the truck, go to the loading garage in Ocean Docks, then /loadtruck."); if(!IsPlayerInRangeOfPoint(playerid, 5, 2197.8425,-2662.9883,13.5469)) eturn SendClientMessage(playerid, COLOR_WHITE, "You are not in an Ocean Dock truck."); // Checks if you are close enough to the loading point. if(!pTruckLoaded[playerid] == 0 && pCheckpoint[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "You are not a trucker."); CountDownCheck10(playerid); // calls the script to start the timer to load the truck return 1; }
thats neater.
now what problem are you having?
|
This:
and
I have no checkpoints or active trucking routes, but still it rejects me from loading the truck.