11.07.2014, 13:16
always worked, but now somes happend and not work.
Код:
CMD:gethomepos(playerid, cmdtext[]) { if(IsPlayerAdmin(playerid)) { new Float:x, Float:y, Float:z; new Float:angle; new string[128]; new string2[128]; new string3[128]; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, angle); format(string, sizeof(string), "x: %f, y: %f, z: %f, angle: %f", x, y, z, angle); SendClientMessage(playerid, -1, string); format(string2, sizeof(string2), "IsPlayerInRangeOfPoint(playerid, 1.0, %f, %f, %f);", x, y, z); format(string3, sizeof(string3), "SetPlayerFacingAngle(playerid, %f);", angle); printf(string2); printf(string3); } return 1; }