Quote:
Originally Posted by rinori
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/mechduty", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438)) { SetPlayerSkin(playerid, 50); SendClientMessage(playerid,0xFFFFFFFF,"You are now on duty as a Mechanic"); } else { SendClientMessage(playerid, 0xFFFFFFF, "You are not a mechanic duty position"); } return 1; } return 1; }
|
I suppose it was quite important to use the bracket located under "if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.843
)"
Thanks man