SA-MP Forums Archive
Are you in my clan? I don't think so, - 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: Are you in my clan? I don't think so, (/showthread.php?tid=128831)



Are you in my clan? I don't think so, - xCoder - 19.02.2010

Hey guys,

I want to kick player when they connect server if there are [FS] tag in their names and not from [FS]. Only 2 users can use it

[FS]Shaggy and [FS]Furmale

please help


Re: Are you in my clan? I don't think so, - bartje01 - 19.02.2010

Just use a server password? :P


Re: Are you in my clan? I don't think so, - Onyx09 - 19.02.2010

OR MAKE SOMETHING ONPLAYERCONNECT

[FS] if they use that tag they can go in if not

kickplayer


Re: Are you in my clan? I don't think so, - xCoder - 20.02.2010

That's why i post the topic. I couldn't do.


Help !


Re: Are you in my clan? I don't think so, - ¤Adas¤ - 20.02.2010

Something like this?

pawn Код:
public OnPlayerConnect(playerid)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(strfind(Name, "[FS]", true) != -1)
{
if(strcmp(Name, "[FS]Shaggy", false) && strcmp(Name, "[FS]Furmale", false)) return Kick(playerid);
}
return true;
}



Re: Are you in my clan? I don't think so, - [LSR]State_Trooper - 20.02.2010

Simpler:


Код:
/ AUTO BAN / DETECT SYSTEM

	new playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid,playername,sizeof(playername));
	
	if(strfind(playername, "[ARP]", true) == -1){ // DETECT AN UNWANTED PERSON
	}else{
	new string[256];
	GetPlayerName(playerid,playername,sizeof(playername));
	SendClientMessageToAll(COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
	SendClientMessageToAll(COLOR_BRIGHTRED, "RADICAL RP ADMINISTRATIVE NOTICE - AUTOMATED TRASH DISPOSAL SYSTEM");
	SendClientMessageToAll(COLOR_GREY, "An [ARP] member has been detected.");
	format(string, sizeof(string), "%s has been automatically banned, as [ARP] members are not tolerated on this server.", playername);
	SendClientMessageToAll(COLOR_GREY, string);
	SendClientMessageToAll(COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
	Ban(playerid);
	}

	

This will recognise your Members

if(strfind(playername, "[RRP]", true) == -1){ // DETECT AN RRP MEMBER
	}else{
	//new string[256];
	GetPlayerName(playerid,playername,sizeof(playername));
	SendClientMessage(playerid, COLOR_WHITE, "Welcome [RRP] member.");
	}



Re: Are you in my clan? I don't think so, - xCoder - 20.02.2010

Quote:
Originally Posted by ¤Adas¤
Something like this?

pawn Код:
public OnPlayerConnect(playerid)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(strfind(Name, "[FS]", true) != -1)
{
if(strcmp(Name, "[FS]Shaggy", false) && strcmp(Name, "[FS]Furmale", false)) return Kick(playerid);
}
return true;
}
thax