how to make clan tags change colour in game - 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: how to make clan tags change colour in game (
/showthread.php?tid=127726)
how to make clan tags change colour in game -
cssbart - 14.02.2010
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
Re: how to make clan tags change colour in game -
BlackFoX - 14.02.2010
Код:
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(...);
Re: how to make clan tags change colour in game -
Fedee! - 14.02.2010
Click me!
Re: how to make clan tags change colour in game -
cssbart - 14.02.2010
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