15.11.2011, 22:32
An example would be:
pawn Код:
CMD:movegate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, Range, X, Y, Z) MoveObject(Gate, X, Y, Z);
else if(IsPlayerInRangeOfPoint(playerid, Range, X, Y, Z) MoveObject(Gate, X, Y, Z);
else if(IsPlayerInRangeOfPoint(playerid, Range, X, Y, Z) MoveObject(Gate, X, Y, Z);
else SendClientMessage(playerid, COLOUR, YOur arnt in range of a movable gate."):
return 1;
}