Police help
#1

Alright, players have been crying for this on my rp server for a while. How would I go about adding a /999 function where players can do /999 Help me, I'm at Pizzastack getting robbed. And a player in a police/cadet skin recieves it ONLY.

Also need some sort of jail CMD where people in cop skin can do /closegate in the Singleplayer jail and it will close and they can drive cruisers, only cop skin though. Also some sort of weapon safe where they can /grabgun.

I have know idea how to script this in an interior. Someone help?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)