Clan Tags scripting help
#1

I got some of the script but it does not work

what i want it to do is when you connect with the right clan tag say it is [WDM] and your name is [WDM]Jonny and your name would be in blue and if you connected with out a tag say Bob your name would be any colour but blue and what the other clan name colours are.

Here Want I need
people with the clan tag [WDM] are in Blue there names might be [WDM]Jonny and [WDM]bob
people with the clan tag [Vagos] are in Green there names might be [Vagos]fred and [Vagos]Josh

Here's the script it i got
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#include <a_samp>

	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);
	}


public OnGameModeInit()
{
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerConnect(playerid)
{
	if(HasClanTag(playerid,"[WDM]"))SetPlayerColor(playerid,0x00F2C8FF);
}
Reply


Messages In This Thread
Clan Tags scripting help - by cssbart - 19.02.2010, 15:12
Re: Clan Tags scripting help - by [LSR]State_Trooper - 20.02.2010, 09:23
Re: Clan Tags scripting help - by SpiderPork - 20.02.2010, 09:35
Re: Clan Tags scripting help - by [LSR]State_Trooper - 20.02.2010, 09:44
Re: Clan Tags scripting help - by SpiderPork - 20.02.2010, 10:06
Re: Clan Tags scripting help - by cssbart - 21.02.2010, 13:37
Re: Clan Tags scripting help - by Mrkrabz - 21.02.2010, 14:30
Re: Clan Tags scripting help - by cssbart - 21.02.2010, 14:33
Re: Clan Tags scripting help - by [LSR]State_Trooper - 24.02.2010, 03:50

Forum Jump:


Users browsing this thread: 1 Guest(s)