04.01.2018, 12:10
Hello, I've this problem with my teleports: when I'm in an interior and I type a command to go in an external place, for example Los Santos, everything appears white, as if I am always in the world of the interior.
This is my teleport to Los Santos, what should I add in order to teleport correctly a player from an interior to the outside?
This is my teleport to Los Santos, what should I add in order to teleport correctly a player from an interior to the outside?
PHP код:
COMMAND:ls(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehid=GetPlayerVehicleID(playerid);
SetPlayerPos(playerid,2489.4968, -1672.5789, 13.3792);
SetVehiclePos(vehid, 2489.4968, -1672.5789, 13.3792);
PutPlayerInVehicle(playerid,vehid,0);
} else
SetPlayerPos(playerid, 2489.4968, -1672.5789, 13.3792);
// Do something
return 1;
}