21.03.2013, 02:22
I have tried this code but nothing seems to work:
If someone could help me out here, I need someone to walk me through correcting this.
It is supposed to create a checkpoint if the player has a linerunner and a trailer attached. Then, it is supposed to say they loaded their trailer, and set another checkpoint. Then, they go to that checkpoint and you 'unload'
please help
Код:
if(IsPlayerInRangeOfPoint(playerid, 5, 198.5652,1341.8789,10.2110)) if(IsTrailerAttachedToVehicle(vehicleid)) { SendClientMessage(playerid, -1, "You load your fuel trailer"); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1856.7515,-21.3635,15.1172, 5.0); } return 1; } CMD:starttrucking(playerid, params[]) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not in a vehicle!"); { SetPlayerCheckpoint(playerid, 198.5652,1341.8789,10.2110, 5.0); } return 1; }
It is supposed to create a checkpoint if the player has a linerunner and a trailer attached. Then, it is supposed to say they loaded their trailer, and set another checkpoint. Then, they go to that checkpoint and you 'unload'
please help