25.12.2011, 13:47
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;
}