/v locate
#1

Can someone help me with command /v locate
for finding personal cars
/v locate1
/v locate2

Each player has 3 personal cars
Reply
#2

pawn Code:
else if(strcmp(x_job,"locate",true) == 0) {
                new key;
                if(ForwardOwnCar(1,playerid)) { key = 1; }
                else if(ForwardOwnCar(2,playerid)) { key = 2; }
                else if(ForwardOwnCar(3,playerid)) { key = 3; }
                else { return 1; }
                new Float:cwx2,Float:cwy2,Float:cwz2;
                GetVehiclePos(ForwardOwnCarID(key,playerid), cwx2, cwy2, cwz2);
                SetPlayerCheckpoint(playerid,cwx2,cwy2,cwz2, 5.0);
                SendClientMessage(playerid,COLOR_WHITE,"Checkpoint added to your vehicle.");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
                SaveCars();
                RingTone[playerid] = 20;
                return 1;
            }
Edit it to your script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)