10.03.2011, 10:48
pawn Code:
if(IsPlayerInRangeOfPoint(playerid, Float:Range, Float:X, Float:Y, Float:Z)
{
for(new i, Max = GetMaxPlayers(); i < Max; i++)
{
MoveObject(i, YourVariable, X, Y, Z); // Open.
}else{
MoveObject(i, YourVariable, X, Y, Z); // Close.
}
}