Raised This Month: $ Target: $400
 0% 

Learn to code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Leffeiilp
Junior Member
Join Date: Apr 2016
Old 04-14-2016 , 14:31   Learn to code
Reply With Quote #1

Hello.

I'm new to addons and mods, and I'm trying to figure out how to complete my gameserver i use for Team pracc and matches. I can start by explaining that its a CSGO server and i use pugsetup or whatever its called, its actually great.

I want to add some commands to be displayed on the .setup menu.
I also want to be able to add my own "sv mp" commands in the fiture, but i have no idea on how to code.

so basicly i want to add for ex "allrounds" and have options "yes" "no", if no "mp_match_can_clinch 0" and if "yes" then "mp_match_can_clinch 1"

i have a understanding of code, and i get how it works but i cant figure out how to manage this.

in the pugsetup cfg it says this:
// In this file you can modify how options behave on the setup menu.
// You can change the default for any setting, and can enable/disable it
// from even showing up on the menu (by chaning display_setting to 0)
// If you turn the display_setting to 0, the default will always be used.

Code:
"SetupOptions"
{
	"maptype"
	{
		"default"		"current"			// allowed values are "vote", "veto", and "current"
		"display_setting"		"1"
	}
	"teamtype"
	{
		"default"		"manual"		// allowed values are "captains", "manual", "random", "autobalanced" (if the rwsbalancer is enabled)
		"display_setting"		"1"
	}
	"autolive"
	{
		"default"		"1"
		"display_setting"		"1"
	}
	"kniferound"
	{
		"default"		"1"
		"display_setting"		"1"
	}
	"teamsize"
	{
		"default"		"5"
		"display_setting"		"1"
	}
	"record"
	{
		"default"		"1"
		"display_setting"		"1"			 // this will only be displayed also if tv_enable is set to 1
	}
	"aimwarmup"
	{
		"default"		"0"
		"display_setting"		"1"         // this will only be displayed also if the aim map list (configs/pugsetup/aim_maps.txt) has at least 1 valid map
	}
	"mapchange"
	{
		"display_setting"		"1"			// you can allow clients to change map from the setup menu by changing this to 1
	}
	"playout"
	{
		"default"		"0"
		"display_setting"		"0"
	}
}
i dont see any commands here, only shortcuts like "autolive"

so my question is:

how can i add code to that?

best regards leffe
im deeply sorry for my poor english
Leffeiilp is offline
 



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 18:33.


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