A /enter command that brings you and your car
#1

I have a /enter command that gets from one side of a gate to another but it only brings me and leaves the car behind the gate, I need it so that it brings the car with me in it.

Heres the command:

pawn Код:
if(strcmp(cmd, "/entersd", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 5, 1803.6398,-1723.6239,13.5391))
        {
          if(gTeam[playerid] == 5)
            {
            SetPlayerPos(playerid, 1803.6290,-1720.1747,13.5346);
            SendClientMessage(playerid, COLOR_GREY, "Welcome to the SASD HQ, /exitsd to leave.");
            return 1;
          }
          else
            {
              SendClientMessage(playerid, COLOR_GREY, "You are not SASD.");
              return 1;
            }
        }
    }
Reply
#2

pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
SetVehiclePos(vehicleid,x,y,z);
change the x,y,z to your co ordinates
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)