/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


Messages In This Thread
/enter and /exit problem - by lulo356 - 16.05.2014, 14:59
Re: /enter and /exit problem - by lulo356 - 16.05.2014, 15:41
Re: /enter and /exit problem - by rockhopper - 16.05.2014, 15:46
Re: /enter and /exit problem - by lulo356 - 16.05.2014, 15:58
Re: /enter and /exit problem - by nilanjay - 16.05.2014, 15:59
Re: /enter and /exit problem - by lulo356 - 16.05.2014, 16:01
Re: /enter and /exit problem - by lulo356 - 16.05.2014, 16:34

Forum Jump:


Users browsing this thread: 2 Guest(s)