Police help
#2

As far as the sending message to only cops goes... (using Z-CMD)

pawn Код:
CMD:999(playerid, params[])
{
    new skin;
    new call[256];
    new sname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sname, sizeof(sname));
    format(call, sizeof(call), "{FF0000}999 CALL{FFFFFF}: {FF0000}%s{FFFFFF}: {FF0000}%s", sname, params);



    for(new i = 0; i < MAX_PLAYERS; i++)
        {
            skin = GetPlayerSkin(i);
            if(skin == 265 || skin == 266 || skin == 267){
                SendClientMessage(i, COLOR_WHITE, call);
            }
        }
}
haven't gotten a chance to try it yet. And I haven't been on here in a while so it might be a little rusty. Just respond with any errors you get.


EDIT: Already found a few errors, fixed. Re-copy/paste
Reply


Messages In This Thread
Police help - by Nines - 01.07.2013, 15:21
Re: Police help - by Nathan_Taylor - 01.07.2013, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)