Help with a trucking command
#1

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
Reply
#2

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;
}
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)