View Single Post
Author Message
Jess98
Junior Member
Join Date: Apr 2018
Old 11-15-2018 , 05:34   A problem with "server_cmd" when use Cvar
Reply With Quote #1

Hi. I have been trying to make a plugin that checks player count, if there are low players than 10 it goes to vote maps automatic. I link up the maps to cvar in the below as you see but it doesn't vote maps. What's wrong? Relevant codes about my problem:

Code:
gFirst_Map, gSecond_Map, gThirth_Map, gFourth_Map

---

gFirst_Map = register_cvar("first_voting_map", "fy_snow")
gSecond_Map = register_cvar("second_voting_map", "fy_pool_day")
gThirth_Map = register_cvar("thirth_voting_map", "fy_iceworld")
gFourth_Map = register_cvar("fourth_voting_map", "fy_iceworld16")

---

server_cmd("amx_votemap %s %s %s %s", gFirst_Map, gSecond_Map, gThirth_Map, gFourth_Map)
Jess98 is offline