This is great :)
Thanks
Mfg
Thanks
Mfg
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.Quote:
Its not working :(
Ingame I type in: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]
And he starts dancing ^^Code:/ban Nexus 50
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)Quote:
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.
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.Quote:
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 °°
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 thanksQuote:
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
[Only registered and activated users can see links. Click Here To Register...]
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 ;)Quote:
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