24.07.2014, 09:56
Am doing that. I create dynamic object and then in OnPlayerUpdate i MoveDynamicObject to your position with 20.0 speed. And after that i want to GetDynamicObjectPos, but position is that from where object start to move and it have no change even dynamic object is targeting me.
How i said icon in the same place where object start moved. With CreateObject, MoveObject and so on.. Then icon is changing place where is object.. I tried to Streamer_Update(playerid); when i MoveDynamicObject but this not help.
Код:
OnPlayerUpdate (..) { MoveDynamicObject(...); new Float:X,Float:Y,Float:Z; GetDynamicObjectPos( ...X,Y,Z ); SetPlayerMapIcon( playerid, 69, X,Y,Z, 0, 0xFFFFFFAA, MAPICON_GLOBAL ); } And i make an icon in minimap: SetPlayerMapIcon( playerid, 69, X,Y,Z, 0, 0xFFFFFFAA, MAPICON_GLOBAL );