Name Color
#1

how can i make the gang color?
exemple:i put ballas skins in my gamemode and i want when i join to see my name purple.
Reply
#2

An example of what you need, it maybe helpful:
pawn Код:
#include <a_samp>

#define MaxTags 5
new PlayerTags[MaxTags][] = {
    "[TAG1]",
    "[TAG2]",
    "[TAG3]",
    "[TAG4]",
    "[TAG5]"
};

new PlayerColors[MaxTags] = {
    0xE60000FF, //colors
    0x1229FAFF,
    0x21DD00FF,
    0xFFFF00FF,
    0xF97804FF
};

main()
{
}

public OnPlayerConnect(playerid)
{
    new pName[30];
    GetPlayerName(playerid, pName, sizeof pName);
   
    for(new i = 0; i < MaxTags; i++)
    {
        if(strfind(pName, PlayerTags[i], false) != -1)
        {
            switch(i)
            {
            default:
            {
                    SetPlayerColor(playerid, PlayerColors[i]);
                    break;
            }
            }
        }
    }
Reply
#3

Use SetPlayerColor
Reply
#4

thanks thanks
Reply
#5

i give stars
Reply
#6

Anybody know why sometimes i do not receive my reputation points ? I just don't get it !!!
Reply
#7

Quote:
Originally Posted by Red_Dragon.
Посмотреть сообщение
Anybody know why sometimes i do not receive my reputation points ? I just don't get it !!!
People under 50 posts (I think) can't give rep.
Reply
#8

sorry
Reply
#9

No problem i appreciate it Er@x3r
Reply
#10

i will give you my friend
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)