01.03.2019, 12:23
You can also use GetDynamicObjectPos
e.g:
e.g:
pawn Код:
new objectid;
objectid = CreateDynamicObject(....);
CMD:enter(playerid, params[])
{
new Float:x, Float:y, Float:z;
GetDynamicObjectPos(objectid, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
{
SetPlayerPos(...);
}
return 1;
}