Chat Color,idcolor, name Color for VIP (RGB)
#1

i want it for my server
i use New Vegas Cops And Robbers by Weponz

how do i make it?

(ONLY FOR VIP)
(RGB COLOR)

REP+ IF CAN HELP ME
Reply
#2

right now i just want chat color and name color. :3
Reply
#3

what you mean?
when someone types in chat to type with colors or what?
Reply
#4

To change a player's name's color you can just use SetPlayerColor.
Here's an example of its usage -

pawn Код:
SetPlayerColor(playerid, 0x00FF00C8);
And for the id and text Color -
pawn Код:
public OnPlayerText(playerid, text[])
{
    new msg[128];
    if(pInfo[playerid][VIPLevel] == 1)  // make sure that you change it according to your GM..
    {
        format(msg, sizeof(msg), "{00FF00} (%d) %s", playerid, text); // Replace '{00FF00}' with your preferred RGB code.
        SendPlayerMessageToAll(playerid, msg);
    }
    return 0;
}
Thus, It'll change your name color, ID color and text color to green.
Reply
#5

Quote:
Originally Posted by iThePunisher
Посмотреть сообщение
what you mean?
when someone types in chat to type with colors or what?
example

Owner:Test
Reply
#6

Quote:
Originally Posted by Adityz
Посмотреть сообщение
for the name color you can just use SetPlayerColor.
Here's an example of its usage -

pawn Код:
SetPlayerColor(playerid, 0x00FF00C8);
And for the id and text Color -
pawn Код:
public OnPlayerText(playerid, text[])
{
    new msg[128];
    format(msg, sizeof(msg), "{00FF00} (%d) %s", playerid, text); // Replace '{00FF00}' with your preffered RGB code.
    SendPlayerMessageToAll(playerid, msg);

    return 0;
}
Thus It'll change your name color, ID color and text color to green. You can replace your color with the ones i provided.
players not vip can use it?

example cmds:
/chatcolor <RGB> <RGB> <RGB>
Reply
#7

please someone help me
Reply
#8

please help me
Reply
#9

please someone help me :3
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)