/pu command, urgent!
#4

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;
}
It's CutX's code, I just changed it
Reply


Messages In This Thread
/pu command, urgent! - by Mriss - 03.03.2014, 06:28
Re: /pu command, urgent! - by CutX - 03.03.2014, 06:47
Re: /pu command, urgent! - by Mriss - 03.03.2014, 07:02
Re: /pu command, urgent! - by LocMax - 03.03.2014, 07:16

Forum Jump:


Users browsing this thread: 3 Guest(s)