Name Color - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Name Color (
/showthread.php?tid=382958)
Name Color -
Er@x3r - 05.10.2012
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.
Re: Name Color -
Red_Dragon. - 05.10.2012
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;
}
}
}
}
Re: Name Color -
stabker - 05.10.2012
Use SetPlayerColor
Re: Name Color -
Er@x3r - 05.10.2012
thanks thanks
Re: Name Color -
Er@x3r - 05.10.2012
i give stars
Re: Name Color -
Red_Dragon. - 05.10.2012
Anybody know why sometimes i do not receive my reputation points ? I just don't get it !!!
Re: Name Color -
Mean - 05.10.2012
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.
Re: Name Color -
Er@x3r - 05.10.2012
sorry
Re: Name Color -
Red_Dragon. - 05.10.2012
No problem i appreciate it Er@x3r
Re: Name Color -
Er@x3r - 06.10.2012
i will give you my friend