18.09.2013, 15:06
Quote:
I meant, U can do it in radius of 5 meters, to open the gate, how can I do that?
|
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z); /* these x y z
will be the position of the gate, and the range will be how far the player should be.*/
{
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed); /* move the
object to the new coordinates*/
}