[HELP] Player TAG.
#1

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.
Reply
#2

I dont think that's possible
Reply
#3

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);
}
Reply
#4

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
Reply
#5

So this is not possible?
Reply
#6

BuMp

The message you have entered is too short. Please lengthen your message to at least 8 characters. -.-
Reply
#7

https://sampforum.blast.hk/showthread.php?tid=194154 << search
Reply
#8

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]
Reply
#9

so make some like if(isplayerinmyclan(playerid) and then the code
Reply
#10

:S im not so good at scripting, so could you please make it for me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)