• Banning by clantag
    10 replies, posted
I Sorta have a code, but its not finished because i cant figure out how to make it detect the clan tag how would i detect the clan tags in there name, and activate this code? [code]function GM:PlayerSpawn( ply ) ULib.kickban( ply, 0, "A Member of the Censored Clan" ) end[/code] Don't ask me why I'm banning by the clan name, if you Must know, its because the clan has been raiding my server, causing chaos, killing everybody they see, etc and no matter how many i ban...theres always more
They might just change their clan tag slightly, so be on the lookout for changes, or get their SteamID and ban that.
[QUOTE=HeavyMtl123;21795449]They might just change their clan tag slightly, so be on the lookout for changes, or get their SteamID and ban that.[/QUOTE] [QUOTE=killar456;21794910]Don't ask me why I'm banning by the clan name, if you Must know, its because the clan has been raiding my server, causing chaos, killing everybody they see, etc and no matter how many i ban...theres always more[/QUOTE]
[QUOTE=killar456;21794910]I Sorta have a code, but its not finished because i cant figure out how to make it detect the clan tag how would i detect the clan tags in there name, and activate this code? [code]function GM:PlayerSpawn( ply ) ULib.kickban( ply, 0, "A Member of the Censored Clan" ) end[/code] Don't ask me why I'm banning by the clan name, if you Must know, its because the clan has been raiding my server, causing chaos, killing everybody they see, etc and no matter how many i ban...theres always more[/QUOTE] [lua] function GM:PlayerSpawn( ply ) if (ply:Nick()):lower():find("TAG") then ULib.kickban( ply, 0, "A Member of the Censored Clan" ) end end[/lua]
[QUOTE=Cubar;21796099][lua] function GM:PlayerSpawn( ply ) if (ply:Nick()):lower():find("TAG") then ULib.kickban( ply, 0, "A Member of the Censored Clan" ) end end[/lua][/QUOTE] Not very smart, if i would have had TAG somewhere in my name i would get banned...
-snip- <-- /facepalm :doh: Didnt read it properly.
What Tobba is saying is that if the clan tag is AkE, then I would be banned for joining the server with my name as MakeR.
[QUOTE=MakeR;21797159]What Tobba is saying is that if the clan tag is AkE, then I would be banned for joining the server with my name as MakeR.[/QUOTE] Some tags have -[ ]- or that around them so i guess it's for what he wanted.
Banning by clan tags are dumb. Once one clan member gets banned, the rest will remove the tag and decide to cause havoc. [editline]10:09PM[/editline] You're better just forcefully removing the tags, or whatever.
-snip-
Sorry, you need to Log In to post a reply to this thread.