Raised This Month: $7 Target: $400
 1% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
bibu
Veteran Member
Join Date: Sep 2010
Old 09-30-2012 , 12:39   Re: Module: CS Team Changer [avoids crashes in aggressive changes]
Reply With Quote #21

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"
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-30-2012 , 14:15   Re: Module: CS Team Changer [avoids crashes in aggressive changes]
Reply With Quote #22

You can't hook message which have not been sent from the game ( and through metamod ).
__________________

Last edited by Arkshine; 09-30-2012 at 14:49.
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 09-30-2012 , 14:19   Re: Module: CS Team Changer [avoids crashes in aggressive changes]
Reply With Quote #23

Quote:
Originally Posted by Arkshine View Post
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?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-30-2012 , 14:53   Re: Module: CS Team Changer [avoids crashes in aggressive changes]
Reply With Quote #24

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.
__________________
Arkshine is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 09-30-2012 , 15:05   Re: Module: CS Team Changer [avoids crashes in aggressive changes]
Reply With Quote #25

Quote:
Originally Posted by bibu View Post
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 ) {


__________________

Last edited by claudiuhks; 09-30-2012 at 15:07.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-16-2012 , 18:04   Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Reply With Quote #26

CS Team Changer has been updated at second version!
Check the changes in foreword.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-17-2012 , 01:18   Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Reply With Quote #27

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.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Old 10-17-2012, 01:36
Arl5555en
This message has been deleted by YamiKaitou. Reason: spambot
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 10-25-2012 , 18:49   Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Reply With Quote #28

Do i get it right:
Using this Module will 'fix' those broken Teamchange-Plugins ?
AllMassive is offline
S0m3Th1nG_AwFul
Member
Join Date: Sep 2011
Location: is not known.
Old 10-26-2012 , 04:55   Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Reply With Quote #29

Quote:
Originally Posted by AllMassive View Post
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.
S0m3Th1nG_AwFul is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 10-26-2012 , 12:46   Re: Module: CS Team Changer v2.0 [avoids crashes in aggressive changes]
Reply With Quote #30

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
AllMassive is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:39.


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