Chat Help
#3

pawn Код:
command(v, playerid, params[])
{
    if(!Player[playerid][VipRank]) return 0; //or 1, a message, whatever you want
    if(!isnull(params))
    {
        new string[128], color[9];
       
        if(Player[playerid][AdminLevel]) format(color, sizeof(color), "{CC0000}");
        else format(color, sizeof(color), "{}");
        format(string, sizeof(string), "[VIP] %s%s{999999} says (%d): %s", color, GetName(playerid), Player[playerid][VipRank], params);

        for(new i=0; i < MAX_PLAYERS; i++)
            if(IsPlayerConnected(i) && Player[i][VipRank] && !Player[i][ToggedVIP])
                SendClientMessage(i, 0xF2C200FF, string);
    }
    else return SendClientMessage(playerid, WHITE, "SYNTAX: /(v)ip [message]");
    return 1;
}
Here's one way to do it (note, {} should be invisible for non admins but you can change it to any color you want regular players to have). That 99,99,99 is just a gray
Reply


Messages In This Thread
Chat Help - by KiiD - 17.09.2012, 08:39
Re: Chat Help - by clarencecuzz - 17.09.2012, 08:51
Re: Chat Help - by [ABK]Antonio - 17.09.2012, 08:52
Re: Chat Help - by KiiD - 17.09.2012, 09:08
Re: Chat Help - by [ABK]Antonio - 17.09.2012, 09:09
Re: Chat Help - by KiiD - 17.09.2012, 09:13
Re: Chat Help - by clarencecuzz - 17.09.2012, 09:15
Re: Chat Help - by [ABK]Antonio - 17.09.2012, 09:15
Re: Chat Help - by clarencecuzz - 17.09.2012, 09:20

Forum Jump:


Users browsing this thread: 3 Guest(s)