24.08.2011, 19:56
pawn Code:
if(newkeys & KEY_FIRE)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, X, Y, Z))
{
SetPlayerPos(playerid, X, Y, Z);
SetPlayerInterior(playerid, InteriorID);
SetPlayerVirtualWorld(playerid, 0);
}
if(IsPlayerInRangeOfPoint(playerud, 20.0, X, Y, Z))
{
//Set the players position back to where you entered, and... done.
}
}