Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server > Flyff PServer Guides & Releases
You last visited: Today at 15:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] IP Ban command by Twisted

Discussion on [Release] IP Ban command by Twisted within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Closed Thread
 
Old   #1
 
420twisted1's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 181
Received Thanks: 23
[Release] IP Ban command by Twisted

I never tested this but it should work in theory
"/ban username"

Code:
BOOL TextCmd_BANNISH( CScanner & scanner )
{
#ifdef __WORLDSERVER
	CUser* pUser = (CUser*)scanner.dwValue;
	
	if( !IsValidObj( pUser ) )
	{
		pUser->AddText( "Invalid user." );		
		return TRUE;
	}

	scanner.GetToken();
	u_long idTarget	= CPlayerDataCenter::GetInstance()->GetPlayerId( scanner.token );

	if( idTarget == 0 )
		idTarget = pUser->m_idPlayer;

	CUser* pTarget	= g_UserMng.GetUserByPlayerID( idTarget );	

	if( !IsValidObj( pTarget ) )
	{
		pUser->AddText( "Invalid target name." );		
		return TRUE;
	}
	
	CString TNickName;
	CString UNickName;
	char szBannish[MAX_PATH];
	CString strTargetIp;
	CString strPath;
	TNickName = pTarget->GetName();
	UNickName = pUser->GetName();
	CString strIp = pTarget->m_playAccount.lpAddr;
	CString strAccnt = pTarget->m_playAccount.lpszAccount;
	
	if( pUser->IsAuthHigher( AUTH_GAMEMASTER ) ) 
	{
	    sprintf( szBannish, "%s , you have been Banned by [Staff member]--> %s", TNickName, UNickName );
	    pTarget->AddText( szBannish );
		strTargetIp.Format( "%s - %s // Accnt %s  UserNname %s was banned by Staff member %s ", strIp,  strIp, strAccnt, TNickName, UNickName );
		strPath.Format( "..\\Program\\IPCut.ini" );
		DSystemLog( strTargetIp, strPath, 0 );
		pUser->AddText("User has been Banned");
	}
#endif // __WORLDSERVER
	return TRUE;
}
Code:
ON_TEXTCMDFUNC( TextCmd_BANNISH,               "ban",                "BU",             "BAN",           "BU",       TCM_SERVER, AUTH_GAMEMASTER2   , "·¹º§ ¼³Á¤ Çϱâ" )
NOTE: I MADE THIS FOR LTD SOURCE aka DITS rev 4 and up
NOTE 2: to add this to an other source you must add DSystemLog which is easy if you have read through multiple sources


EDIT: I will improve code within the next day or so

let me know how it works
420twisted1 is offline  
Thanks
1 User
Old 03/28/2012, 01:35   #2
 
elite*gold: 5
Join Date: Mar 2012
Posts: 330
Received Thanks: 150
Sowas gibt es schon oft auf epvp

#Closerquest
~Shirayuki~ is offline  
Old 03/28/2012, 01:36   #3



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Quote:
Originally Posted by ~Shirayuki~ View Post
Sowas gibt es schon oft auf epvp

#Closerquest
Zeig mir bitte einen Ban Command.
Sedrika is offline  
Thanks
2 Users
Old 03/28/2012, 01:40   #4
 
elite*gold: 5
Join Date: Mar 2012
Posts: 330
Received Thanks: 150
Gib mir 30min ;D


1. Über Homepage :P (Fast jeder hat das ACP von SP)
2. 90% haben ein Antihack und somit können sie
%ban_account [Name]
%ban [Name]


dürfte reichen
~Shirayuki~ is offline  
Old 03/28/2012, 01:50   #5



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Sind aber alles getrennte sachen.
Es ist klar, das ACP's einen Ban befehl haben.
Ebenso Antihacks, jedoch als anderweitigen Befehl hab ich es noch nicht gesehen, daher kann man es offen lassen.
Sedrika is offline  
Old 03/28/2012, 01:52   #6
 
elite*gold: 5
Join Date: Mar 2012
Posts: 330
Received Thanks: 150
Aber großartig bringt es nix es einzubauen :P
Ist nicht schlecht sowas aber würdest du es einbauen? ^^

Ist nur ne persöhnliche frage die keine hintergründe hat.
~Shirayuki~ is offline  
Old 03/28/2012, 01:54   #7



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Da ich auf einen Antihack verzichte, wenn ich nen server mach', dann würd ich sowas einbauen, allerdings auch nur wenn mein ACP nicht Instand Ban hätte (Kick + Ban)

Mir fällt bei dem Snippet grad aber auf, dass die IPCut.ini nicht neugeladen wird, somit der Ban erst nach dem restart des Account Servers gültig ist.
Sedrika is offline  
Thanks
2 Users
Old 03/28/2012, 01:57   #8
 
elite*gold: 5
Join Date: Mar 2012
Posts: 330
Received Thanks: 150
Da ich die sprache nicht beherrsche kannst du villeicht es verbessern? :P
~Shirayuki~ is offline  
Old 03/28/2012, 02:27   #9
 
420twisted1's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 181
Received Thanks: 23
I am the only person to have released a ingame GM ban command, I will edit to use a lua so it can reload after each ban
420twisted1 is offline  
Old 03/28/2012, 02:32   #10



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Quote:
Originally Posted by 420twisted1 View Post
I am the only person to have released a ingame GM ban command, I will edit to use a lua so it can reload after each ban
That would be nice. Actually we're using other methods to ban a user.
Sedrika is offline  
Old 03/28/2012, 03:17   #11
 
420twisted1's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 181
Received Thanks: 23
Quote:
Originally Posted by Sedrika View Post
That would be nice. Actually we're using other methods to ban a user.
how do you mean like trying to remember the users name then going to a cp on a site logging in then trying to send a ban through sql?

cuz this way would be faster, even faster then being on host and using a server manager exe

edit: i guess you could just make a table and check if name is in table send ACCOUNT_IPCUT_ADDR
420twisted1 is offline  
Old 03/28/2012, 03:20   #12



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Quote:
Originally Posted by 420twisted1 View Post
how do you mean like trying to remember the users name then going to a cp on a site logging in then trying to send a ban through sql?

cuz this way would be faster, even faster then being on host and using a server manager exe
I got an Admin CP wich works with the server. If i kick a user via ACP he'll be kicked ingame and banned instandly.
Sedrika is offline  
Old 03/28/2012, 03:35   #13
 
420twisted1's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 181
Received Thanks: 23
Quote:
Originally Posted by Sedrika View Post
I got an Admin CP wich works with the server. If i kick a user via ACP he'll be kicked ingame and banned instandly.
does it use a separate program or can you load it inside of neuz? i once made a cp and set it inside neuz so that you just have to click its icon but then you still have to secure the web page having a function do it seemed safer
420twisted1 is offline  
Old 03/28/2012, 13:10   #14
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,497
Received Thanks: 3,523
Can you add a Unbann Command too ? o.o
Lumi is offline  
Old 03/28/2012, 20:32   #15
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
You can use sockets + packets and send from website.
alfredico is offline  
Closed Thread


Similar Threads Similar Threads
[Release] Summoners Rift: 6v6,12v12. Twisted Treeline: 6v6, and Dominion(kinda!)
09/23/2012 - League of Legends Hacks, Bots, Cheats & Exploits - 86 Replies
Download Readme contents: 3 Files are included: -AirGeneratedContent.swf - Sets the map player limit -6v6.swf - Removes the checks for map max limit. -dominion.swf - Removes the checks for map max limit and forces the gametype to dominion (same ruleset as Classic but allows the new summoners + shows up in match history). Installing: -AirGeneratedContent.swf - Place in: C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases\0.0. 0.75\deploy\assets (yes overwrite). -6v6/dominion...
PAX TWISTED FATE !!!!!!!!!! No jax No sivir Its TWISTED FATE
01/20/2012 - League of Legends Trading - 8 Replies
Hello i want to sell Pax Twisted fate CODE SERIAL !!!!!!!!!!!!!!!!!!!!!!!! It works For US Server (don't Know On EU) The code has been given out in 2009 Pax (only 20.000 Codes Was Given Out) Now I got This Super Extra rare code For SALE !!!!!!!!!!!!!!! I accept paypal payments only ! (full verified)



All times are GMT +1. The time now is 15:28.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.