How to Make a Custom Message Function
#1

Hi there, I am getting kinda tired of typing:
pawn Код:
foreach(Player, i) {
        if(PlayerInfo[i][AdminLevel] >= 3) {
            new
                string[ 128 ], name[ MAX_PLAYER_NAME ];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "[ADMIN]:%s: %s", name, params);
            SendClientMessage(i,COLOR_RED, string);
over and over again on every action a player does, like pm'in, /me action etc,
How could I make a function like messageadmin() or something?

How would my public/stock look like?
Reply


Messages In This Thread
How to Make a Custom Message Function - by milanosie - 07.02.2012, 17:25
Re: How to Make a Custom Message Function - by iTorran - 07.02.2012, 17:30
Re: How to Make a Custom Message Function - by Max_Coldheart - 07.02.2012, 17:47
Re: How to Make a Custom Message Function - by milanosie - 07.02.2012, 17:51
Re: How to Make a Custom Message Function - by milanosie - 07.02.2012, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)