16.05.2014, 14:59
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,
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);
}
}