Kick clan tag - 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: Kick clan tag (
/showthread.php?tid=35970)
Kick clan tag -
MPKaboose - 02.05.2008
Hi i searched but didnt found someting like this.When a [BLABLA]name enters the respective server he gets kicked and the same for all [BLABLA] clan members. is this posible? Thanks
//Rikker
Re: Kick clan tag -
GtakriZ - 02.05.2008
Use the GetPlayerTag function.
Re: Kick clan tag -
MPKaboose - 02.05.2008
Ok i will try thanks but it works only for the clans tag not for the clans tag + player name?
Re: Kick clan tag -
GtakriZ - 02.05.2008
Only for the tags, but you can get the player's name and check it with strcmp.
Re: Kick clan tag -
MPKaboose - 02.05.2008
It works thanks Andre9977 and GtakriZ
Re: Kick clan tag -
GtakriZ - 02.05.2008
Yeah Andre.. No problem!
Re: Kick clan tag -
BIGBOY - 02.05.2008
ok im in lol
how do i add more
?
do i do this?
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(strfind(pName, "
[POOP],[PSW]", true) == 0)
{
Ban(playerid);
}
i dont think thats right lol
Re: Kick clan tag -
BIGBOY - 02.05.2008
thats sexy lol
thanks
i got a list of know hacker clans and IP so this would be useful thx
Re: Kick clan tag -
Cueball - 02.05.2008
Remember that strfind returns the location of the found substring, so using '== 0' may not be the best option.
pawn Код:
if(strfind(pName, "[CUEBALL]", true) != -1)
return Ban(playerid);
That will ban the player if they have the [CUEBALL] tag
anywhere in their name. Andre's method will only work if it is at the start of his name.
~Cueball~
Re: Kick clan tag -
whooper - 02.05.2008
Can U list the clans?
Re: Kick clan tag - Micko9 - 12.01.2010
Quote:
Originally Posted by [AU
GtakriZ ]
Use the GetPlayerTag function.
|
a scripter,.. From AU? WOW ! Im Kabuto in the AU Server But , About The Register System in AU what does it use? dini? or sscanf? How Ever, There Is no GetPlayerTag
o.o
Re: Kick clan tag - Micko9 - 12.01.2010
Quote:
Originally Posted by Andre9977
You could do:
pawn Код:
new BANTags[] = { "[POOP]", "[Rstar]", "[ROOK]" };
// ... for(new a = 0; a < sizeof(BANTags); a++) { if(strfind(pName, a, true) == 0) { // ... } }
Or
pawn Код:
new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); if(strfind(pName, "[POOP]", true) == 0 || strfind(pName, "[PSF]", true) == 0) { Ban(playerid); }
|
well it is possible i think this:
pawn Код:
if(strfind(pName, "[HAXER]", true) == 0
{
Ban(playerid);
}
if(strfind(pName, "[IDIOT]", true) == 0
{
Ban(playerid);
}
Or ?
Re: Kick clan tag -
[KMA]Lord_Deji - 15.01.2010
a cheaper way could be if you use XtremeAdmin2, there is an auto kick function witch act a little like a funnier ban for anyone who has a part of his name in the list
Re: Kick clan tag - Micko9 - 17.01.2010
Quote:
Originally Posted by [KMA
Lord_Deji ]
a cheaper way could be if you use XtremeAdmin2, there is an auto kick function witch act a little like a funnier ban for anyone who has a part of his name in the list
|
Nah, i dont like that admin script
Re: Kick clan tag -
speedON - 26.01.2011
if(strfind(pName, "[HAXER]", true) == 0 )
{
Ban(playerid);
}
if(strfind(pName, "[IDIOT]", true) == 0 )
{
Ban(playerid);
}
xD