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

how could do vote in menu ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
undead52
Senior Member
Join Date: Dec 2016
Old 11-21-2017 , 12:51   how could do vote in menu ?
Reply With Quote #1

How could i do vote in menu, i created a menu with 2 options but how to count vote ?

Last edited by undead52; 11-21-2017 at 12:52.
undead52 is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-21-2017 , 12:53   Re: how could do vote in menu ?
Reply With Quote #2

I suggest you to take a look at these:
adminvote.sma
DeRoiD's Mapchooser

If you need something easy, just add 1 to g_iVote[itemnum] for example

Last edited by TheWhitesmith; 11-21-2017 at 12:54.
TheWhitesmith is offline
undead52
Senior Member
Join Date: Dec 2016
Old 11-21-2017 , 12:55   Re: how could do vote in menu ?
Reply With Quote #3

i wont vote map,i wanna do custom things, and could you give more example ?

Last edited by undead52; 11-21-2017 at 13:01.
undead52 is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-21-2017 , 13:01   Re: how could do vote in menu ?
Reply With Quote #4

I know, I mean these plugins will give you an Idea how to proceed.
TheWhitesmith is offline
undead52
Senior Member
Join Date: Dec 2016
Old 11-21-2017 , 13:05   Re: how could do vote in menu ?
Reply With Quote #5

Quote:
Originally Posted by TheWhitesmith View Post
I know, I mean these plugins will give you an Idea how to proceed.
i cant understand that in 2k lines
undead52 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 11-21-2017 , 13:43   Re: how could do vote in menu ?
Reply With Quote #6

https://forums.alliedmods.net/showthread.php?t=46364
__________________
retired chump
DjSoftero is offline
undead52
Senior Member
Join Date: Dec 2016
Old 11-21-2017 , 14:28   Re: how could do vote in menu ?
Reply With Quote #7

i trying to do menu, deathmatch or normal for every map change but how should i hook this for best?

also how can print what he choosed to everyone ? i tried but it shows nothing

Last edited by undead52; 11-21-2017 at 15:25.
undead52 is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-21-2017 , 15:28   Re: how could do vote in menu ?
Reply With Quote #8

adminvote.sma
TheWhitesmith is offline
undead52
Senior Member
Join Date: Dec 2016
Old 11-21-2017 , 15:38   Re: how could do vote in menu ?
Reply With Quote #9

i printed what he choosed too, only left what is the best way to hook show menu after map change

Last edited by undead52; 11-21-2017 at 15:45.
undead52 is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-21-2017 , 15:48   Re: how could do vote in menu ?
Reply With Quote #10

What do you mean by hooking showmenu after mapchange?
You mean before right?

Last edited by TheWhitesmith; 11-21-2017 at 15:49.
TheWhitesmith 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 07:14.


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