Are you in my clan? I don't think so,
#1

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
Reply
#2

Just use a server password? :P
Reply
#3

OR MAKE SOMETHING ONPLAYERCONNECT

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

kickplayer
Reply
#4

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


Help !
Reply
#5

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;
}
Reply
#6

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.");
	}
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)