SA-MP Forums Archive
How i rotation ARROW for gps - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How i rotation ARROW for gps (/showthread.php?tid=574800)



How i rotation ARROW for gps - kyriakos587 - 20.05.2015

Hi, i try to make this gps system: https://sampforum.blast.hk/showthread.php?tid=219539

but i dont know how i rotate the arrow to the correct position to help the player to find out where he must go.

Sorry for bad english.

This is my code

public OnPlayerUpdate(playerid)
{
new Float,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
if(GPS[playerid] == Bankg)
{
MoveDynamicObject(GPSObject[playerid],x,y,z,1,0,90,0);
SetDynamicObjectRot(GPSObject[playerid],0,90,HERE I DONT KNOW WHAT I MUST TYPE);
}
return 1;
}