MakeDynamicObject Range...
#6

Quote:
Originally Posted by yaron0600
Посмотреть сообщение
I meant, U can do it in radius of 5 meters, to open the gate, how can I do that?
Use IsPlayerInRangeOfPoint. For example:

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*/

}
Reply


Messages In This Thread
MakeDynamicObject Range... - by yaron0600 - 18.09.2013, 14:55
Re: MakeDynamicObject Range... - by DanishHaq - 18.09.2013, 14:56
Re: MakeDynamicObject Range... - by alinategh - 18.09.2013, 14:59
Re: MakeDynamicObject Range... - by DanishHaq - 18.09.2013, 14:59
Re: MakeDynamicObject Range... - by yaron0600 - 18.09.2013, 15:03
Re: MakeDynamicObject Range... - by DanishHaq - 18.09.2013, 15:06
Re: MakeDynamicObject Range... - by alinategh - 18.09.2013, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)