Raised This Month: $ Target: $400
 0% 

Check for Tournament Team Name & State Change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 12-14-2014 , 16:47   Check for Tournament Team Name & State Change
Reply With Quote #1

Hey,

I'd like to know how to check if a player has changed the team from not ready to ready (vice versa), and also if he changed the name.

Ultimately I want to disable them from changing the state and team name until a certain variable returns true.

Is an event fired when the name is switched or how does that work?
I've heard of
Code:
GameRules_SetProp("m_bTeamReady", 1, .element=i);
However, I'm uncertain how to apply it to this situation.
Cheers!
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
turtsmcgurts
SourceMod Donor
Join Date: Jul 2011
Old 12-15-2014 , 04:09   Re: Check for Tournament Team Name & State Change
Reply With Quote #2

the SOAP DM plugin has a way to monitor when teams ready up, find it and make it return plugin_handled. search for "Event_TournamentStateupdate"

looks like you can use it for name changes as well.

Last edited by turtsmcgurts; 12-15-2014 at 04:11.
turtsmcgurts is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 12-15-2014 , 15:04   Re: Check for Tournament Team Name & State Change
Reply With Quote #3

It does not stop the state from being change, the only thing you can do is block the message that the event send and track if state or name changed (you can change the name easily) but how can you change the state of the team is the question we been crying so hard for a week.

EDIT: This include also SetEventInt on the state and return Plugin_Changed;

Last edited by Mathias.; 12-15-2014 at 15:06.
Mathias. is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-15-2014 , 15:12   Re: Check for Tournament Team Name & State Change
Reply With Quote #4

State changes are internal to the game... It's probably possible to prevent them, but if it is, it's probably not easy.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 12-15-2014 , 15:19   Re: Check for Tournament Team Name & State Change
Reply With Quote #5

is there any further configs to them? like amount of player to ready up or event setting an entity has the team leader and only him can change configuration of the team status.

If not, how can you limit classes and have a item whitelist without tournament to be on. (I know I can use a plugin or write it myself for the classes but is there a way to bypass the tournament stuff and allow other cvars such as class limitation, whitelist or w.e)

Last edited by Mathias.; 12-15-2014 at 15:21.
Mathias. is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-15-2014 , 15:24   Re: Check for Tournament Team Name & State Change
Reply With Quote #6

Quote:
Originally Posted by Black-Rabbit View Post
is there any further configs to them? like amount of player to ready up or event setting an entity has the team leader and only him can change configuration of the team status.

If not, how can you limit classes and have a item whitelist without tournament to be on. (I know I can use a plugin or write it myself for the classes but is there a way to bypass the tournament stuff and allow other cvars such as class limitation, whitelist or w.e)
psychonic used to have an extension named TF2_TournamentHax. Probably doesn't work any more though.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply



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 10:41.


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