/enter and /exit problem -
lulo356 - 16.05.2014
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);
}
}
Re: /enter and /exit problem -
lulo356 - 16.05.2014
Someone/?
Re: /enter and /exit problem -
rockhopper - 16.05.2014
Explain a little more
Re: /enter and /exit problem -
lulo356 - 16.05.2014
As i said, if you do /exit or /enter with a vehicle you will spawn like the first two picuters
Re: /enter and /exit problem -
nilanjay - 16.05.2014
You have to change the SetVehiclePos and SetPlayerPos to the coordinates where you want the car to look during enter and exit.
Re: /enter and /exit problem -
lulo356 - 16.05.2014
This a other code, but,
-753.9156,-443.0306,1047.4620,351.7635 // this?
-753.9156,-443.0306,1047.4620 // or this
Re: /enter and /exit problem -
lulo356 - 16.05.2014
I forgot it hahaa, thanks for helping i got it now XD