03.03.2014, 07:16
pawn Код:
CMD:pu(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, red, "/pu [playerid]");
if(strval(params) == INVALID_PLAYER_ID) return SendClientMessage(playerid,red,"Invalid ID!");
if(!GetPlayerWantedLevel(strval(params))) return SendClientMessage(playerid,red,"That's not a criminal suspect!");
new s[81],pn[MAX_PLAYER_NAME];
GetPlayerName(playerid,pn,MAX_PLAYER_NAME);
format(s,sizeof s,"Police Officer %s[%d] has asked you to PULL OVER, NOW!",pn,playerid);
SendClientMessage(strval(params),blue,s);
GetPlayerName(strval(params),pn,MAX_PLAYER_NAME);
format(s,sizeof s,"You've asked %s[%d] to pull over.",pn,strval(params));
SendClientMessage(playerid,white,s);
return 1;
}