22.07.2012, 10:35
pawn Код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, blablabla)) // checks if in range of the /enter point
{
SetPlayerPos(playerid, NewPosX, NewPosY, NewPosZ); //Sets there new position
RemoveBuildingForPlayer(playerid, .....);
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, blablabla)) // Checks if near the exit door
{
SetPlayerPos(playerid, OldPosX, OldPosY, OldPosZ);
}
return 1;
}