06.08.2010, 12:18
When you use GetPlayerFacingAngle you need to do this:
Now angle is the facing angle you have when executing the command.
Now to show a function of using it:
That's just basically how it works.
Edit: Your post wasn't there when I started writing this r0b, that's why I wrote the same but a little more also.
Code:
new Float:angle; GetPlayerFacingAngle(playerid, angle);
Now to show a function of using it:
Code:
if(strcmp(cmdtext, "/angle", true), ==0) { new Float:angle; GetPlayerFacingAngle(playerid, angle); new string[128]; format(string, sizeof(string), "Your facing angle is %d now.", angle); SendClientMessage(playerid,0xFFFFFFAA,string); return 1; }
Edit: Your post wasn't there when I started writing this r0b, that's why I wrote the same but a little more also.