Module: CS Team Changer Ultimate [avoids crashes in aggressive changes]
1 Attachment(s)
- Counter-Strike Team Changer - Download View CPP file I see that all plugins that change the teams excessively contain delay to avoid crashes. Native get_user_team is not used because of receiving wrong values and there are tasks with TeamInfo message. Using this extension you may change the teams without any crash, indifferently you are using an aggressive changing type or not! Also, this extension updates the AMX Mod X team indexes at clients then you will be able to use get_user_team native without problems, it will return fair values. The difference between this and CStrike module is here (42). An example is listed below. PHP Code:
It is tested, it works perfectly with thirty two players. It changes sixteen players from Terrorists to Counter-terrorists and sixteen players from Counter-terrorists to Terrorists in the same time without any headaches instead of CStrike extension that crashes the server. The header file is the one listed below. PHP Code:
|
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
Wow dude keep up the good work man.
|
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
Plz also point out the differences between this native and cs_set_user_team.
|
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
It's written in the first post.
|
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
I remember the normal cs_set_user_team() way working on normal server, but crashing on Zombie Plague with a lot of players. Have you tried this on ZP?
|
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
Quote:
Quote:
|
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
I've not rewritten it, even if the code is quite small, I've just cleaned up a bit the code, changing some things (like changing 80% of code taken by few "if..else if..else" replacing by a "switch") and compiling. Don't know why he says "rewritten", it was not the purpose and with such small code, not really possible. So, claudiuhks, you should fix to avoid fysiks be traumatized more ;).
|
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
Mister fysiks, I just said that Arkshine opened the source, wrote something in it and closed. Why did you think he made all the code? Am I supposed to say what exactly he wrote in the source? And am I supposed to hide that he helped me with some code?
How to fix the problem with 'get_user_team' while the big plugins are using set_pdata_int? Do you think the offset changing with the fakemeta module will update the AMXX API team's ID? The people are supposed to do thousands of things for make you happy mister fysiks... :) @Arkshine at Code:
you should fix to avoid fysiks be traumatized more ;). @hleV at Code:
I remember the normal cs_set_user_team() way working on normal server, but crashing on Zombie Plague with a lot of players. Have you tried this on ZP? Also this cs_team_changer module is running on my zombie plague server, it is still alive since two or three days ago... [IMG]http://img607.**************/img607/1240/unledhly.th.png[/IMG] Without proofs we don't speak :D |
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
Quote:
Arkshine's comment about me being "traumatized" was a joke. FYI |
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
can you explain what does "FYI" mean:mrgreen:
I'm poor in english!:oops: |
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
Quote:
Quote:
Quote:
FYI, the answer can be found fastly on google. :mrgreen: |
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
Hello.
I do not know a lot of modules, you should not check if the player is valid?. pd:the delay is to use emessage. pd2:Sorry for my English. |
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
PHP Code:
The emessage_begin and message_begin are doing approximately the same thing... |
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
I know.
The zp use emessage + delay for to work register_message,but not necessary. Sorry for my English use a translator. |
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
Quote:
i mean would this fix fix agressive team changing crash on counter-strike es_* maps? |
Re: Module: CS Team Changer [avoid crashes in aggressive changes]
I can't say that it fix something for avoid the crashing, but, if you are thinking to change the player's team by using the CStrike extension, it will be trying to change the player's model, that is the reason why the server get crashed.
This extension, CS Team Changer, won't change any player physical information or any value, it will just update the tablescore, the API's team index and the team offset. I make sure it won't crash the server by changing the team at 32 players in same time. |
Re: Module: CS Team Changer [avoids crashes in aggressive changes]
Tested with 31 players (30bots 1human) in Zombie Plague Mod server, it give wrong team set in scoreboard when i set into Survivor round (change 31 player's team in a second).
To solve this we must add delay in team update (just like Mercylezz do in his ZP). |
Re: Module: CS Team Changer [avoids crashes in aggressive changes]
PHP Code:
|
Re: Module: CS Team Changer [avoids crashes in aggressive changes]
That was your own code, not from ZP4.3. Please take a look at this.
On function humanme: PHP Code:
PHP Code:
My fm_cs_set_user_team stock: PHP Code:
PHP Code:
|
Re: Module: CS Team Changer [avoids crashes in aggressive changes]
The Zombie Plague modification by me was wrong, so, it not needs any delay for this extension.
To edit Zombie Plague without delay takes so long. Sorry for inconvenience :cry:. |
Re: Module: CS Team Changer [avoids crashes in aggressive changes]
I tried cs_set_user_team and cs_set_team native from here. But both don't call TeamInfo:
Try to hook it with that: PHP Code:
|
Re: Module: CS Team Changer [avoids crashes in aggressive changes]
You can't hook message which have not been sent from the game ( and through metamod ).
|
Re: Module: CS Team Changer [avoids crashes in aggressive changes]
Quote:
PHP Code:
|
Re: Module: CS Team Changer [avoids crashes in aggressive changes]
To hook such message, you will have to update the source, to do like does "emessage" using the hook table pointer from metamod. This way amxx should be able to hook it. For more informations, check AMXX source code.
|
Re: Module: CS Team Changer [avoids crashes in aggressive changes]
Quote:
I suggest using this: PHP Code:
|
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
CS Team Changer has been updated at second version!
Check the changes in foreword. |
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Thanks for update, but strange why no people update the amxmodx into stable version. Also update the team change method in cstrike module. This is 2012 btw.
|
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Do i get it right:
Using this Module will 'fix' those broken Teamchange-Plugins ? |
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Quote:
|
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
oh - ok.
is there a plugin available which uses this module ? btw: it would be nice if a forumuser is able to search plugins by modules :wink: |
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Can someone confirm me is this plugin works perfect? i've tested it on my hlds with 9 bots and 3 humans. When someone connecting to server the "Overflow message" appear. Sorry forgot to take screenshot.
|
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Quote:
Someone needs to write a Plugin which uses this Module. |
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Quote:
|
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
a question : with this i can solve the server crash at the begining of the map in zombie plague mode ? I use zp 4.3 fix 5a
|
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Quote:
Quote:
|
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
I get this error:
FATA ERROR (shutting down): Tried to create a message with a bogus message type ( 0 ) |
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Quote:
|
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Any info on when then module will be recompiled?
|
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Quote:
|
Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Sorry, what is the point to use this module? since it still make server crash/kick client with overflow message. It need delay.
|
All times are GMT -4. The time now is 19:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.