Raised This Month: $32 Target: $400
 8% 

Player Threshold Configs


Post New Thread Reply   
 
Thread Tools Display Modes
Calystos
Member
Join Date: Jan 2011
Location: Terra
Old 01-19-2012 , 03:33   Re: Player Threshold Configs
Reply With Quote #31

Code:
new String:GameName[64];
GetGameFolderName(GameName, sizeof(GameName));

if (StrEqual(GameName, "tf"))
{
    HookEvent("teamplay_round_start", OnRoundStart);
}
else
{
    HookEvent("round_start", OnRoundStart);
}
Yas probably already know about the above, but if not (an for those that don't) there it is,

Last edited by Calystos; 01-19-2012 at 03:36.
Calystos is offline
Send a message via ICQ to Calystos Send a message via AIM to Calystos Send a message via MSN to Calystos Send a message via Yahoo to Calystos Send a message via Skype™ to Calystos
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 01-19-2012 , 17:58   Re: Player Threshold Configs
Reply With Quote #32

Here is a helper plugin for anyone using this plugin. This makes the sv_tags cvar silent and adds a command named sv_scvar which will silently change cvars. Use sv_scvar in your low and normal configs and the console for every player will not be spammed with all the changes.
Attached Files
File Type: sp Get Plugin or Get Source (silent_svtags.sp - 268 views - 1.4 KB)
Thraka is offline
XackPhair
Junior Member
Join Date: Jun 2012
Old 09-14-2012 , 22:08   Re: Player Threshold Configs
Reply With Quote #33

Great plugin Mister_Magotchi. I just love it.

I was wondering if it is at all possible to make the plugin recognize the threshold and make the config change immediately instead of at round start. For example, say if there are 3 players and the normal threshold is 4, is it possible to make it change immediately to the normal configs without having to wait for next round start when it hits 4 and visa versa?
XackPhair is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 09-15-2012 , 06:07   Re: Player Threshold Configs
Reply With Quote #34

You can do that with Execute Configs. I don't have any interest in making that change. This plugin is super simple, mainly because it was exactly what I needed to fulfill a need I had at the time. It's very easy to check the number of players a specified time, such as the round start, which is why I did it that way when I made this.
Mister_Magotchi is offline
XackPhair
Junior Member
Join Date: Jun 2012
Old 09-15-2012 , 11:43   Re: Player Threshold Configs
Reply With Quote #35

Quote:
Originally Posted by Mister_Magotchi View Post
You can do that with Execute Configs. I don't have any interest in making that change. This plugin is super simple, mainly because it was exactly what I needed to fulfill a need I had at the time. It's very easy to check the number of players a specified time, such as the round start, which is why I did it that way when I made this.
Thanks for the quick reply and suggestion.
It all makes sense, and it's still a great plugin. XD
XackPhair is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 05-02-2014 , 11:33   Re: Player Threshold Configs
Reply With Quote #36

ok here is what i did to get multiple threshold ... not the best way but it works ... so whatever ...
what i did was take the source and change the filename of population threahhold low and normal and then recompile it again and named it blahblah.smx and load it and then u can use new threshhold for that blahblah.smx

typed thia up from my tablet so didnt want to write too detailed
if any1 dont understand by what i mean plz reply and ill explain more in detail

and the reason i di this qas because eventconfig doesnt seems to be working!
8guawong 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 11:46.


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