Raised This Month: $ Target: $400
 0% 

More then 4 options in amx_votemap


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoldNux
Senior Member
Join Date: Mar 2018
Old 03-14-2018 , 23:18   More then 4 options in amx_votemap
Reply With Quote #1

SOLVED
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731

Last edited by GoldNux; 03-16-2018 at 00:36.
GoldNux is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-15-2018 , 09:53   Re: More then 4 options in amx_votemap
Reply With Quote #2

The entire vote plugin is begging for a rewrite.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
GoldNux
Senior Member
Join Date: Mar 2018
Old 03-15-2018 , 11:58   Re: More then 4 options in amx_votemap
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
The entire vote plugin is begging for a rewrite.
I tried to add options to this section but it did not work.

Code:
public cmdVoteMap(id, level, cid)
{
	if (!cmd_access(id, level, cid, 2))
		return PLUGIN_HANDLED
	
	new Float:voting = get_cvar_float("amx_last_voting")
	if (voting > get_gametime())
	{
		console_print(id, "%L", id, "ALREADY_VOTING")
		return PLUGIN_HANDLED
	}
	
	if (voting && voting + get_cvar_float("amx_vote_delay") > get_gametime())
	{
		console_print(id, "%L", id, "VOTING_NOT_ALLOW")
		return PLUGIN_HANDLED
	}

	new argc = read_argc()
	if (argc > 5) argc = 5
	
	g_validMaps = 0
	g_optionName[0][0] = 0
	g_optionName[1][0] = 0
	g_optionName[2][0] = 0
	g_optionName[3][0] = 0
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731
GoldNux 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 09:50.


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