Register for your free account! | Forgot your password?

You last visited: Today at 04:03

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

Advertisement



[RELEASE] In-game ban command for GMs

Discussion on [RELEASE] In-game ban command for GMs within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old 04/29/2013, 17:32   #16
 
αωєѕσмє's Avatar
 
elite*gold: 84
Join Date: Dec 2012
Posts: 2,463
Received Thanks: 644
This is great

Thanks

Mfg
αωєѕσмє is offline  
Old 04/29/2013, 17:32   #17
 
elite*gold: 0
Join Date: Oct 2010
Posts: 115
Received Thanks: 14
Compile & Debug & Release!
btw Thanks alot!
5203307a is offline  
Old 04/29/2013, 17:37   #18
 
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
Quote:
Originally Posted by EpicG4m3r View Post
Its not working

Code:
******************************************************
*        Universal Elements extension library        *
*                  made by ricky92                   *
*                   Version 1.0.0                    *
******************************************************
[*] Module "Ban command" loaded.[*] Module "Command Extensions" loaded.
        Command registered: "ban" (early initialization)

[COLOR="DarkRed"]Can not open [CONFIG][/COLOR]
Ingame I type in:
Code:
/ban Nexus 50
And he starts dancing ^^
You need to make the start script load the game file with the library injected in it. You're probably just executing the command I wrote, but you have to make sure it's the "start" script which executes that, with the correct path and all. Otherwise, it won't work.

As for the crash, I guess it's caused by the disconnect feature. Quite strange, actually, since I'm executing exactly the same code that "/dc" has.
ricky92 is offline  
Old 04/29/2013, 19:36   #19
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Arrow

Quote:
Originally Posted by ricky92 View Post
As for the crash, I guess it's caused by the disconnect feature. Quite strange, actually, since I'm executing exactly the same code that "/dc" has.
You can't directly crash "yourself", you must use a event_timer for that otherwise the game crashes (try using DESC::DelayedDisconnect instead of DESC_MANAGER::DestroyDesc)
If the game crashes when you're trying to disconnect another player (with destroydesc or not) then... the do_ban is slightly bugged °°
lollo_9_1 is offline  
Old 04/29/2013, 20:44   #20
 
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
Quote:
Originally Posted by lollo_9_1 View Post
You can't directly crash "yourself", you must use a event_timer for that otherwise the game crashes (try using DESC:elayedDisconnect instead of DESC_MANAGER:estroyDesc)
If the game crashes when you're trying to disconnect another player (with destroydesc or not) then... the do_ban is slightly bugged °°
It's not, I added that check and, in fact, the first thing that came to my mind was that I hadn't compiled the right version XD But well, I tried it on my server and it works, so I have no idea what his problem is. To everyone who's experiencing that problem: try redownloading the file, maybe you downloaded an old version.

Update: someone asked via PM to have the source of the ban function. While it's not a problem for me to post that, it would be to post the source for my whole library. So, I'm posting this just for reference, to let people see how it works (and also check if there is any bug, why not). You probably won't be able to compile the source as it is, if you don't have the right header files XD

ricky92 is offline  
Thanks
1 User
Old 04/30/2013, 16:32   #21
 
[The]Domco's Avatar
 
elite*gold: 45
Join Date: Mar 2011
Posts: 253
Received Thanks: 238
Smile

Quote:
Originally Posted by ricky92 View Post
It's not, I added that check and, in fact, the first thing that came to my mind was that I hadn't compiled the right version XD But well, I tried it on my server and it works, so I have no idea what his problem is. To everyone who's experiencing that problem: try redownloading the file, maybe you downloaded an old version.

Update: someone asked via PM to have the source of the ban function. While it's not a problem for me to post that, it would be to post the source for my whole library. So, I'm posting this just for reference, to let people see how it works (and also check if there is any bug, why not). You probably won't be able to compile the source as it is, if you don't have the right header files XD

Thanks man i am working with C and C# , c++ so i will try soon to make my own function .. anyway good work more releases like this on epvp will be very nice Bad that i cant give u more than thanks

btw: So yea like someone said when i use the function core will shutdown o.O
[The]Domco is offline  
Old 04/30/2013, 20:19   #22
 
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
Quote:
Originally Posted by [The]Domco View Post
Thanks man i am working with C and C# , c++ so i will try soon to make my own function .. anyway good work more releases like this on epvp will be very nice Bad that i cant give u more than thanks

btw: So yea like someone said when i use the function core will shutdown o.O
Hmm you are right, it crashes. I recompiled it with some other options (no idea why this changed anything, but it works now), you can redownload it and it should work for you too
ricky92 is offline  
Old 05/01/2013, 20:58   #23
 
[The]Domco's Avatar
 
elite*gold: 45
Join Date: Mar 2011
Posts: 253
Received Thanks: 238
Quote:
Originally Posted by ricky92 View Post
Hmm you are right, it crashes. I recompiled it with some other options (no idea why this changed anything, but it works now), you can redownload it and it should work for you too
Nice man now it works btw : source too reuploaded ?
[The]Domco is offline  
Old 05/01/2013, 21:31   #24
 
elite*gold: 0
Join Date: Jan 2013
Posts: 64
Received Thanks: 3
o_O good work, I am going to test
WeXoSK is offline  
Old 05/01/2013, 23:16   #25
 
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
Quote:
Originally Posted by [The]Domco View Post
Nice man now it works btw : source too reuploaded ?
Good to know And well, the source has not changed, as I said it was a problem of compiler optimizations... it was just a matter of recompiling it
ricky92 is offline  
Old 05/01/2013, 23:50   #26
 
[The]Domco's Avatar
 
elite*gold: 45
Join Date: Mar 2011
Posts: 253
Received Thanks: 238
Quote:
Originally Posted by ricky92 View Post
Good to know And well, the source has not changed, as I said it was a problem of compiler optimizations... it was just a matter of recompiling it
And if i want to make some changes how to compile correctly ? ( g++ ) ?
[The]Domco is offline  
Old 05/02/2013, 00:22   #27
 
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 58
@Up
can`t without his headers.
xDeStRuCtx is offline  
Old 05/02/2013, 00:44   #28
 
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
Quote:
Originally Posted by [The]Domco View Post
And if i want to make some changes how to compile correctly ? ( g++ ) ?
As xDeStRuCtx said, you can't without my headers and library structure... And I'm sorry, but I won't release it :\
ricky92 is offline  
Old 05/02/2013, 13:40   #29
 
[The]Domco's Avatar
 
elite*gold: 45
Join Date: Mar 2011
Posts: 253
Received Thanks: 238
Quote:
Originally Posted by ricky92 View Post
As xDeStRuCtx said, you can't without my headers and library structure... And I'm sorry, but I won't release it :\
I can buy PM ?
[The]Domco is offline  
Old 05/02/2013, 18:30   #30
 
elite*gold: 0
Join Date: May 2011
Posts: 213
Received Thanks: 29
when we inject this library, we cannot use mijago's mysql commands. is there any solution?
yarka0000 is offline  
Reply


Similar Threads Similar Threads
Server command from outside the game
10/21/2012 - Aion Private Server - 8 Replies
How i can send a command from outside the game? For example, change the //weather without having to be in the game. Thanks!
A game small command
09/15/2009 - General Coding - 0 Replies
Delete this since no1 can help, Thanks
[Release] a new command
07/16/2009 - CO2 PServer Guides & Releases - 8 Replies
ok this is the /pet command ok its not hard to do and i thank it will only work if u have the summon guard working becaz i us its atk type or u can edit it if u want but ul hafe to fix it up so it wont atk its self if u do that well any way here u go find wear u put commands in and put this if (Splitter == "/pet") { // /pet HP atk name mech lvl ...
[Release]-- New Command --
12/10/2008 - CO2 PServer Guides & Releases - 7 Replies
GOT That Damianpesta _1_



All times are GMT +1. The time now is 04:03.


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.