19.02.2010, 15:12
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
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); }