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

A problem with "server_cmd" when use Cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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


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