23.01.2015, 07:13
Hello.
When i type /getmfa to get my facing angle, It sends me a message "[ADMIN] Y" instead of "[ADMIN] 180 or 90.."
Can someone tell me what's wrong in this ?
When i type /getmfa to get my facing angle, It sends me a message "[ADMIN] Y" instead of "[ADMIN] 180 or 90.."
Can someone tell me what's wrong in this ?
PHP код:
CMD:getmfa(playerid, params[])
{
if(AdminLevel[playerid] < 4) return SCM(playerid,COLOR_WHITE,"{FF0000}[ERROR]{FFFFFF} You do not have the correct admin level for this command.");
new Float:Angle, string[26];
GetPlayerFacingAngle(playerid, Angle);
format(string, sizeof(string), "{FF0770}[ADMIN]{FFFFFF} Your facing angle is: %0.2f", Angle);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}