AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   Module: CS Team Changer Ultimate [avoids crashes in aggressive changes] (https://forums.alliedmods.net/showthread.php?t=163555)

bibu 09-30-2012 12:39

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:

register_event("TeamInfo""EventTeamInfo""a"


Arkshine 09-30-2012 14:15

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 ).

bibu 09-30-2012 14:19

Re: Module: CS Team Changer [avoids crashes in aggressive changes]
 
Quote:

Originally Posted by Arkshine (Post 1809857)
You can't hook message which have not been sent from the game.

Quote from the include file:

PHP Code:

This native will automaticaly send a TeamInfo message

And else, how can I still hook it, is there another way?

Arkshine 09-30-2012 14:53

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.

claudiuhks 09-30-2012 15:05

Re: Module: CS Team Changer [avoids crashes in aggressive changes]
 
Quote:

Originally Posted by bibu (Post 1809861)
Quote from the include file:

PHP Code:

This native will automaticaly send a TeamInfo message

And else, how can I still hook it, is there another way?

It means that you don't have to send a TeamInfo message from your AMX Mod X plugin. It will be sent from the module by default.

I suggest using this:

PHP Code:

cs_set_teamiClient);
EventTeamInfo( -1MSG_BROADCAST);

public 
EventTeamInfoiMsgiDestiEnt ) {




claudiuhks 10-16-2012 18:04

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.

yokomo 10-17-2012 01:18

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.

AllMassive 10-25-2012 18:49

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 ?

S0m3Th1nG_AwFul 10-26-2012 04:55

Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
 
Quote:

Originally Posted by AllMassive (Post 1825760)
Do i get it right:
Using this Module will 'fix' those broken Teamchange-Plugins ?

It won't fix them 'automatically' - you should rewrite them firstly.

AllMassive 10-26-2012 12:46

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:


All times are GMT -4. The time now is 05:22.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.