13.09.2010, 16:27
I created a Custom Interior and I want to be able to walk to a door and automatically teleport to that location. I just made an interior up in the sky somewhere and I want to teleport there. Help?
public OnPlayerSpawn(playerid) { if(IsPlayerInRangeOfPoint(playerid, 1.0, 2737.0888671875, -2799.9736328125, 23.703699111938)) { SetPlayerPos(playerid, 2738.8181152344, -2875.5883789063, 308.98538208008); return 1; } if(IsPlayerInRangeOfPoint(playerid, 1.0, 2738.8181152344, -2871.5883789063, 308.98538208008)) { SetPlayerPos(playerid, 2737.0888671875, -2805.9736328125, 23.703699111938); return 1; } return 1; }
public YourCustomFunctionForYourTeleport()
{
if(IsPlayerInRangeOfPoint( ... ))
{
SetPlayerPos( ... );
SetPlayerInterior( ... );
SetPlayerVirtualWorld( ... );
return 1;
}
return 1;
}