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

CS:GO Voting for change mapgroup/maplist


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wizzardoff
Senior Member
Join Date: Dec 2022
Old 02-07-2023 , 17:18   CS:GO Voting for change mapgroup/maplist
Reply With Quote #1

Hi people.
Im searching for some way to vote for change the whole maplist that will be shown at native mapvoteing at the end of the round.
Or some daily mapgroup change.
For expample i want to change all the voting map group and the end of the map so new maps are shown.
Better explained,i have active mapgroup no.1 right now and want to change to mapgroup no.2 which has all other maps listed in native endmap voting sistem.
Or maybe every day different mapgroup activated. Is there maybe some pugin,core or smth to do that? Thanks
Wizzardoff is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-07-2023 , 17:35   Re: CS:GO Voting for change mapgroup/maplist
Reply With Quote #2

...just for info, don't change mapgroup in the middle of gameplay.
-Server is loading normally list of maps from mapgroup.
-Players currently in game doesn't, they have still old maps (in client side)
So to get players sync maplist with server, they need reconnect to server.

Better change mapgroup before map end.
__________________
Do not Private Message @me
Bacardi is offline
Wizzardoff
Senior Member
Join Date: Dec 2022
Old 02-08-2023 , 03:56   Re: CS:GO Voting for change mapgroup/maplist
Reply With Quote #3

Thanks for the suggestion. The daily mapgroup change at for ex. server restart 8:00 AM when nobody plays would do the thing. I would make 2-3 mapgroups, every 24h different one. Any easy way? ;)

Last edited by Wizzardoff; 02-08-2023 at 05:07.
Wizzardoff is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-08-2023 , 11:47   Re: CS:GO Voting for change mapgroup/maplist
Reply With Quote #4

Maybe
[ANY] Full Cronjob Plugin [Execute commands on time intervals / game events]

PHP Code:
// * * * * * * <typ> <command>
// - - - - - - -     -
// ¦ ¦ ¦ ¦ ¦ ¦ ¦     ¦
// ¦ ¦ ¦ ¦ ¦ ¦ ¦     +-- The command to execute
// ¦ ¦ ¦ ¦ ¦ ¦ +-------- Available types are: console (execute server command), system (execute system command with system2 extension), player (execute on player console)
// ¦ ¦ ¦ ¦ ¦ +---------- Weekday (0-7, Sunday is 0 or 7)
// ¦ ¦ ¦ ¦ +------------ Month (1-12)
// ¦ ¦ ¦ +-------------- Day (1-31)
// ¦ ¦ +---------------- Hour (0-23)
// ¦ +------------------ Minute (0-59)
// +-------------------- Seconds (0-59) - Optional, zero if not given
//
// Allowed syntax:
// *        = All, wildcard
// */x      = Every x min/hour/day/month/weekday
// x-y      = From x to y
// x,y,z    = On x, y and z
//
// Examples:
//
// Loads a plugin on every 15. of the month and unloads it on the 16. again
// 0 0 15 * * console sm plugins load myplugin
// 0 0 16 * * console sm plugins unload myplugin
//
// Makes a backup of the server every three hours
// * */3 * * * system tar zcvf backup.tar.gz "/home/user/server"
//
// Every player say: Why am i writing? At 15.20, 15.40, 16.20, 16.40, 17.20, 17.40, 20.20 and 20.40
// 20,40 15-17,20 * * player say "Why am i writing ?"
//
// More examples here: http://www.thesitewizard.com/general/set-cron-job.shtml
//
// OR:
//
// @<special> <typ> <command>
// -          -     -
// ¦          ¦     ¦
// ¦          ¦     +-- The command to execute.
// ¦          +-------- Available types are: console (execute server command), system (execute system command with system2 extension), player (execute on player console)
// +------------------- The special time to execute the command at. Has to start with a @ following the special
//
// Allowed specials: plugin_start, plugin_end, map_start, map_end and every event available in the current game ( see https://wiki.alliedmods.net/Game_Events_(Source) )!
//
// So for example this is valid:
// @player_death player say "Oh! Someone died!"
//
// Just write your Cronjobs below this Line!

// set default mapgroup when plugin load
@plugin_start console "mapgroup mapgooup_1"


// set mapgroup on each weekday, at every 5th minute past hour 8
*/5 08 * * 0 console "mapgroup mapgooup_1"
*/5 08 * * 1 console "mapgroup mapgooup_2"
*/5 08 * * 2 console "mapgroup mapgooup_3"

*/5 08 * * 3 console "mapgroup mapgooup_1"
*/5 08 * * 4 console "mapgroup mapgooup_2"
*/5 08 * * 5 console "mapgroup mapgooup_3"

*/5 08 * * 6 console "mapgroup mapgooup_1" 
- Make sure you not have "mapgroup", "host_workshop_collection" or "host_workshop_map" in
server.cfg, gamemode_*_server.cfg file


Plugin would use server console every 5 minute on 8:00
It execute different mapgroup list on each week day ( 0 - 6 )

If server reboot after 8:00, between 9:00 - 07:00, it will load only default mapgroup on line @plugin_start
__________________
Do not Private Message @me
Bacardi is offline
Wizzardoff
Senior Member
Join Date: Dec 2022
Old 02-21-2023 , 16:28   Re: CS:GO Voting for change mapgroup/maplist
Reply With Quote #5

Thank you. I will test it on test server. ;)

EDIT: I tried this. I get error everyday

Unknown command "mapgroup mg_active" (and other official mapgroups like mg_reservers,mg_casualdelta etc)

I enter command mapgroup mg_active right after that error and manual writing works normally

Code:
version : 1.38.5.7/13857 1555/8853 secure 
os      :  Linux
type    :  community dedicated
SourceMod Version: 1.11.0.6934

01 "[CSGO] Advanced Admin" (1.7.2 BETA) by PeEzZ
  02 "Team Bets" (2.7.1) by VieuxGnome fork GrimReaper - ferret
  03 "[Lilac] Little Anti-Cheat" (1.7.4) by J_Tanzanite
  04 "Player Commands" (1.11.0.6934) by AlliedModders LLC
  05 "Reserved Slots" (1.11.0.6934) by AlliedModders LLC
  06 "Rock The Mode" (1.1.4) by Sheepdude
  07 "Basic Votes" (1.11.0.6934) by AlliedModders LLC
  08 "Basic Comm Control" (1.11.0.6934) by AlliedModders LLC
  09 "Basic Commands" (1.11.0.6934) by AlliedModders LLC
  10 "Admin File Reader" (1.11.0.6934) by AlliedModders LLC
  11 "Client Preferences" (1.11.0.6934) by AlliedModders LLC
  12 "Admin Help" (1.11.0.6934) by AlliedModders LLC
  13 "Fun Votes" (1.11.0.6934) by AlliedModders LLC
  14 "eItems" (0.20.3) by ESK0
  15 "blindspectators.smx"
  16 "Basic Chat" (1.11.0.6934) by AlliedModders LLC
  17 "Map configs" (1.3) by Berni
  18 "Admin Menu" (1.11.0.6934) by AlliedModders LLC
  19 "test.smx"
  20 "AFK Manager" (4.3.0) by Rothgar
  21 "[CS:GO] Weapon Stickers" (1.3.5) by quasemago and z1ntex
  22 "Basic Ban Commands" (1.11.0.6934) by AlliedModders LLC
  23 "Sound Commands" (1.11.0.6934) by AlliedModders LLC
  24 "Cronjobs" (2.0) by dordnung
  25 "Basic Info Triggers" (1.11.0.6934) by AlliedModders LLC
  26 "Gloves" (1.0.5) by kgns | oyunhost.net
  27 "AbNeR Map Restrictions" (1.2.2) by abnerfs
  28 "Anti-Flood" (1.11.0.6934) by AlliedModders LLC
  29 "Team Swap" (1.0) by Stevo.TVR
  30 "Weapons & Knives" (1.7.5) by kgns | oyunhost.net 

mapgroup mg_active
Setting mapgroup to 'mg_active'
print_mapgroup_sv
Map group: mg_active
     de_overpass
     de_cbble
     de_anubis
     de_basalt
     de_dust2
     de_nuke
     de_mirage
     de_vertigo
     de_austria
     de_inferno
     de_crete
I will try without quotation marks,i suspect there lays the problem .

EDIT: Without quotation marks works but i have to wait for nextmap so changes takes effect. I will need to insert changelevel right after so changes take effect after server reboot and selecting mapgroup. Any info how to do it?

Last edited by Wizzardoff; 04-15-2023 at 14:23.
Wizzardoff 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 06:26.


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