/enter and /exit problem
#1

Heey, i got a little bug, but i dont know how to fix it, I will show you wants happening
The exit:
The enter:

How can you do it that you are looking to the way, in the /exit

And that you are looking to the garage in the /enter

Like this:

The Codes,

pawn Код:
//the exit:
    if(IsPlayerInRangeOfPoint(playerid,8.0, 2190.5847,1495.4554,999.5764)) //SAST Garage
            {
                if(IsPlayerInAnyVehicle(playerid))
                {
                    SetVehiclePos(vehicleid, 1148.4362,-1836.2728,13.5802);
                    SetVehicleVirtualWorld(vehicleid, 0);
                }
                else
                {
                    SetPlayerPos(playerid, 1148.4362,-1836.2728,13.5802);
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid,0);
                }
            }
pawn Код:
//the enter
    if(IsPlayerInRangeOfPoint(playerid,8.0, 1148.4362,-1836.2728,13.5802)) //SAST Garage
            {
                if(IsPlayerInAnyVehicle(playerid))
                {
                    SetVehiclePos(vehicleid, 2190.5847,1495.4554,999.5764);
                    SetVehicleVirtualWorld(vehicleid, 0);
                    TogglePlayerControllable(playerid, 0);
                    SetTimerEx("EnterExitTimer", 5000, false, "i", playerid);
                }
                else
                {
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerPos(playerid, 2190.5847,1495.4554,999.5764);
                    TogglePlayerControllable(playerid, 0);
                    SetTimerEx("EnterExitTimer", 5000, false, "i", playerid);
                }
            }
Reply
#2

Someone/?
Reply
#3

Explain a little more
Reply
#4

As i said, if you do /exit or /enter with a vehicle you will spawn like the first two picuters
Reply
#5

You have to change the SetVehiclePos and SetPlayerPos to the coordinates where you want the car to look during enter and exit.
Reply
#6

This a other code, but,

-753.9156,-443.0306,1047.4620,351.7635 // this?
-753.9156,-443.0306,1047.4620 // or this
Reply
#7

I forgot it hahaa, thanks for helping i got it now XD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)