PDA

View Full Version : Name Color


Er@x3r
05/10/2012, 08:53 PM
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.

Red_Dragon.
05/10/2012, 09:00 PM
An example of what you need, it maybe helpful:#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;
}
}
}
}

stabker
05/10/2012, 09:00 PM
Use SetPlayerColor

Er@x3r
05/10/2012, 09:07 PM
thanks thanks :)

Er@x3r
05/10/2012, 09:09 PM
i give stars :)

Red_Dragon.
05/10/2012, 09:13 PM
Anybody know why sometimes i do not receive my reputation points ? I just don't get it !!!

Mean
05/10/2012, 09:18 PM
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.

Er@x3r
05/10/2012, 09:23 PM
sorry :(

Red_Dragon.
05/10/2012, 09:33 PM
No problem i appreciate it Er@x3r :D

Er@x3r
06/10/2012, 04:25 AM
i will give you my friend