18.09.2013, 14:55
How can I make the range here please?
Код:
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);
Float:x, Float:y, Float:z;
Float:speed
I meant, U can do it in radius of 5 meters, to open the gate, how can I do that?
|
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*/
}