20.05.2015, 17:33
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;
}
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;
}