how to make clan tags change colour in game
#1

how to make clan tags change colour in game

so if "[FREE]Bob" is green
and if "[FREE]Jeff" is green to if they are in clan
so basicly if they have the clan tag in the frout of there name they name will be green or so
Reply
#2

Код:
stock HasClanTag(playerid,const clantag[])
{
	new clan_tag[10],lname[MAX_PLAYER_NAME];
	GetPlayerName(playerid,lname,sizeof lname);
	format(clan_tag,strlen(clantag)+2,"[%s]",clantag);
	return (strfind(lname,clan_tag)!=-1) ? (true) : (false);
}

if(HasClanTag(playerid,"[FREE]"))SetPlayerColor(...);
Reply
#3

Click me!
Reply
#4

no so they dont have to do cmd it does it when they connect to server but only the people with clan tag

so if there clan tag is [test] there name is in red
so if there clan tag is [DM] there name is in orange

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)