[HELP] RE: Police cmds
#4

something as simple as this?

pawn Код:
if(!strcmp(cmdtext, "/pullover", true, 9))
    {
        if(GetPlayerTeam(playerid) != 9) return SendClientMessage(playerid, 0x00E100FF, "You need to be a cop to do that!");
        new string[128];
        new adminname[MAX_PLAYER_NAME];
        GetPlayerName(playerid,adminname,sizeof(adminname));
        format(string, sizeof(string),"**Officer %s says Pull Over Now!",adminname);
        SendClientMessageToAll(0x00E100FF, string);
        return 1;
    }
That will just send all the players in your server a message saying "Officer [Your name] says Pull Over Now!".

You can make it more advance such as /pullover [id/part of name] or pullover players next to you.
Reply


Messages In This Thread
[HELP] RE: Police cmds - by FreddeN - 29.05.2009, 14:32
Re: [HELP] RE: Police cmds - by Castle - 29.05.2009, 14:43
Re: [HELP] RE: Police cmds - by FreddeN - 29.05.2009, 15:20
Re: [HELP] RE: Police cmds - by member - 29.05.2009, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)