Help with a trucking command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with a trucking command (
/showthread.php?tid=424203)
Help with a trucking command -
xXRealLegitXx - 21.03.2013
I have tried this code but nothing seems to work:
Код:
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;
}
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
Re: Help with a trucking command -
Glad2BeHere - 21.03.2013
pawn Код:
CMD:starttrucking(playerid, params[])
{
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;
}
}