Facing Angle
#5

When you use GetPlayerFacingAngle you need to do this:

Code:
new Float:angle;
GetPlayerFacingAngle(playerid, angle);
Now angle is the facing angle you have when executing the command.
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;
}
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.
Reply


Messages In This Thread
Facing Angle - by willsuckformoney - 06.08.2010, 12:08
Re: Facing Angle - by KennethRandall - 06.08.2010, 12:10
Re: Facing Angle - by willsuckformoney - 06.08.2010, 12:11
Re: Facing Angle - by r0b - 06.08.2010, 12:14
Re: Facing Angle - by Mystique - 06.08.2010, 12:18
Re: Facing Angle - by Hiddos - 06.08.2010, 12:20
Re: Facing Angle - by RyDeR` - 06.08.2010, 12:30
Re: Facing Angle - by willsuckformoney - 06.08.2010, 12:48
Re: Facing Angle - by Cameltoe - 06.08.2010, 13:06
Re: Facing Angle - by Cameltoe - 06.08.2010, 13:12
Re: Facing Angle - by _[HuN]_Epsilon_ - 06.08.2010, 13:15
Re: Facing Angle - by willsuckformoney - 06.08.2010, 13:15
Re: Facing Angle - by Cameltoe - 06.08.2010, 13:33
Re: Facing Angle - by KennethRandall - 06.08.2010, 20:28

Forum Jump:


Users browsing this thread: 1 Guest(s)