[HELP] Player TAG. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Player TAG. (
/showthread.php?tid=195342)
[HELP] Player TAG. - Larsey123IsMe - 02.12.2010
How can i make an colored TAG?
Like:
[CNR]Larsey123
Only the players who have
[CNR] in front of his name, have lightblue color, but the rest of the name have an random color.
Re: [HELP] Player TAG. -
[JnA]DukeNukem - 02.12.2010
I dont think that's possible
Re: [HELP] Player TAG. -
Ash. - 02.12.2010
Sorry for bumping this but i really like to answer these
You need to do something like this:
pawn Код:
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
if(strfind(pName, "[CNR]", true) != 1)
{
SetPlayerColor(playerid, THE COLOUR YOU WANT HERE);
}
Re: [HELP] Player TAG. -
[JnA]DukeNukem - 02.12.2010
Quote:
Originally Posted by funky1234
Sorry for bumping this but i really like to answer these
You need to do something like this:
pawn Код:
new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); if(strfind(pName, "[CNR]", true) != 1) { SetPlayerColor(playerid, THE COLOUR YOU WANT HERE); }
|
That colours the whole name not just the tag
Re: [HELP] Player TAG. - Larsey123IsMe - 02.12.2010
So this is not possible?
Re: [HELP] Player TAG. - Larsey123IsMe - 03.12.2010
BuMp
The message you have entered is too short. Please lengthen your message to at least 8 characters. -.-
Re: [HELP] Player TAG. -
iJumbo - 03.12.2010
https://sampforum.blast.hk/showthread.php?tid=194154 << search
Re: [HELP] Player TAG. - Larsey123IsMe - 03.12.2010
Thanks
BUT
As i can understand, that script u sent me the link to, that color any TAG between []
But i want it so it just get colored if the TAG is [CNR] and not any TAG like [bkabla]
Re: [HELP] Player TAG. -
iJumbo - 03.12.2010
so make some like if(isplayerinmyclan(playerid) and then the code
Re: [HELP] Player TAG. - Larsey123IsMe - 03.12.2010
:S im not so good at scripting, so could you please make it for me