10.09.2013, 13:25
pawn Код:
if(strcmp("/duty", cmdtext, true, 5) == 0)
{
if(PlayerInfo[playerid][pPD] < 1)
return SendClientMessage(playerid, COLOR_ERROR,"ERROR.");
if(!IsPlayerInRangeOfPoint(playerid, 5.0,-2500.2500,250.2500,5.2500))
SendClientMessage(playerid, COLOR_ERROR,"ERROR.");
else
SendClientMessage(playerid, COLOR_WHITE, "Police duty");
SetPlayerHealth(playerid, 100.100);
SetPlayerArmour(playerid, 100.100);
SetPlayerColor(playerid, COLOR_WHITE);
return 1;
}