Raised This Month: $51 Target: $400
 12% 

[REQ] Change cvar depends on players on CS:GO server


Post New Thread Reply   
 
Thread Tools Display Modes
WatchDogs
Senior Member
Join Date: Oct 2015
Location: Iran
Old 06-04-2017 , 11:48   Re: [REQ] Change cvar depends on players on CS:GO server
Reply With Quote #11

It executes command when players reach between value or become lower or higher.


Another fix here

Use this & tell the result.


EDIT: Download The Last Version From Second Post.

Last edited by WatchDogs; 06-04-2017 at 12:00.
WatchDogs is offline
Nexicon
Senior Member
Join Date: Feb 2017
Old 06-04-2017 , 11:51   Re: [REQ] Change cvar depends on players on CS:GO server
Reply With Quote #12

Works as it should

Last edited by Nexicon; 06-04-2017 at 11:51.
Nexicon is offline
Nexicon
Senior Member
Join Date: Feb 2017
Old 01-19-2018 , 12:05   Re: [REQ] Change cvar depends on players on CS:GO server
Reply With Quote #13

Quote:
Originally Posted by WatchDogs View Post
Hi


Here is a simple plugin with built in Cvars.

When players become less than 20 ---> Command Execute: "sm_cvar mapcyclefile mapcycle_lite.txt"
When players become equal or more than 20 ---> Command Execute: "sm_cvar mapcyclefile mapcycle_full.txt"


If you want more than 1 command to run you can separate it with ';'

Examples:
sm_cdop_cmds_lower "sm_cvar mapcyclefile mapcycle_lite.txt ; say Lower Than 20 ; mp_restartgame 1"
sm_cdop_cmds_higher "sm_cvar mapcyclefile mapcycle_full.txt ; say Higher Than 20 ; mp_restartgame 1"


Install:
Just Drag .smx file to your plugins folder.

Cfg file will create in cfg/sourcemod.

Code:
sm_cdop_between "20" 
- The number of players that plugin checks lower and higher of it to run commands

sm_cdop_cmds_lower "sm_cvar mapcyclefile mapcycle_lite.txt" 
- Commands that plugin should run when players become lower that between (Separate with ';')

sm_cdop_cmds_higher "sm_cvar mapcyclefile mapcycle_full.txt"
- Commands that plugin should run when players become higher that between (Separate with ';')

sm_cdop_msg_lower "{green}[SM] {default}Players's count is low!"
- Message to print in chat when players are lower than between value (Color supported)

sm_cdop_msg_higher "{green}[SM] {default}Players's count is high!"
- Message to print in chat when players are higher than between value (Color supported)

EDIT: Updated to 1.1 | Added sm_cvar at the beginning of default command.
EDIT: Updated to 1.2 | Added message to print when players become higher or lower + Multi Color support
EDIT: Updated to 1.3 | Fixed spam bug
EDIT: Updated to 1.4 | Fixed on map change bug
This seems not to change. Possible you can check if everything is okay?
Nexicon is offline
Nexicon
Senior Member
Join Date: Feb 2017
Old 01-19-2018 , 12:08   Re: [REQ] Change cvar depends on players on CS:GO server
Reply With Quote #14

Edit: Works after i !rcon sm plugins load CDOP
And works normally now.

Last edited by Nexicon; 01-19-2018 at 12:10.
Nexicon 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 15:08.


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