Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Ban a clan tag.

  1. #1

    Default Ban a clan tag.

    Hello my friends.
    Is there any way to ban a clan tag?
    I tried manually adding the tag to the banname.cfg, but did not work.
    My entire team was banned from the server of that clan without reason and I need to apply the same sanction to them.
    I hope you understand my English because I'm from Argentina.
    Regards!

  2. #2

    Default

    do you think they would want to come on your server knowing that they obviously dont like your clan ?
    its a bit of a crappy revenge plan haha

  3. #3

    Default

    Yes, they come to our server constantly.. Like everyone in my country.

    http://www.gametracker.com/server_in...192.111:12203/

  4. #4

    Default

    What clan are you about to bann?
    [IMG]http://i253.photobucket.com/albums/hh77/TDogg1100/pee1.gif[/IMG]

  5. #5
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    It's possible with Scapp stuff from JoTo, or by writing a mod with use of new scripting commands in Gamma release.

  6. #6

    Default

    Currently the server is patched with REBORN Gamma PATCH Version Release Candidate 2.

  7. #7

    Default

    You can use this:

    Instructions:
    Save this code as global/banclan.scr.
    seta sv_bantag "TAGHERE" //In server config.
    Exec global/banclan.scr from dmprecache.scr

    Code:
    /*
    	Auto Clan Ban - Checks player's Tag and bans player if their tag is banned.
    		by: ArMaGedDoN - 6/16/2011
    	Requirements: MoH:Reborn 1.12 Patch RC2 or Higher
    	
    	Use this CVAR, add to e.g. server.cfg:
    	seta sv_bantag "XXX"     // Clan tag to ban
    	
    	place this file into main/global and call it from e.g. dmprecache: exec global/banclan.scr
    */
    
    main:
    
    	level waittill spawn
    
    	if (level.run_clanban)
    		end
    	level.run_clanban = 1
    	
    	println("Starting Reborn Auto Clan Ban")
    	
    	level.bantag = (getcvar ("sv_bantag"))
    	
    if((getcvar("sv_bantag"))!="")
    {
    	while(1)
    	{	
    		if ($player)
    		{
    			for(local.i = 1; local.i <= $player.size; local.i++) 
    			{
    				local.player=$player[local.i]
    				local.player.name = netname local.player
    				if(local.player.name.size >= level.bantag.size)
    				{
    					local.player.tag =waitthread Left level.bantag.size local.player.name
    					if(level.bantag==local.player.tag)
    					{
    					thread banplayer local.player
    					}
    				}
    			}
    		}
    	wait 5  //Time between scans
    	}
    }
    else
    {
    	println("sv_bantag cvar is not setup properly... - Shutting Down Reborn Auto Clan Ban")
    }
    
    end
    	
    banplayer local.player:
    	if(local.player != NIL)
    	{
    		waitframe
    		//print messages to console
    		stuffsrv ("say Kicking " + local.player.name + " for Banned IP")
    		//print message to log
    		println ("say Banning " + local.player.name + " for having banned clan Tag - " + level.bantag)
    								
    		wait 2
    		if (local.player != NIL)
    		{
    			stuffsrv ("banid " + getclientnum local.player)
    		}
    		
    	}
    end
    
    // Left *****Credit goes to elgan's string.scr*****
    Left local.pos local.string:
    
    	local.pos--
    	local.left = ""
    	for(local.i = 0; local.i <=  local.pos; local.i++)
    	{
    		local.left += local.string[local.i]
    	}
    
    end local.left

  8. #8

    Default

    Thank you very much, armageddon!

  9. #9
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    Damn armageddon, you're on fire! Keep it up man and thanks for sharing.

  10. #10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •