Raised This Month: $ Target: $400
 0% 

Solved Vote menu countdown


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
666
Senior Member
Join Date: Mar 2015
Old 07-03-2019 , 10:29   Re: Vote menu countdown
Reply With Quote #1

Quote:
Originally Posted by Natsheh View Post
Alright problem solved, code updated, I was decreasing after showing the menu solved by doing the opposite.
Literally when the voting begins the menu is shown and the countdown does not go back, now on one occasion start the vote and press many times yes and the countdown start hahaha

hey I realized that when the player has already voted, he can not select the grenades or weapons by means of the numbers or buttons, this can be fixed
__________________
666 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-03-2019 , 11:20   Re: Vote menu countdown
Reply With Quote #2

Quote:
Originally Posted by 666 View Post
Literally when the voting begins the menu is shown and the countdown does not go back, now on one occasion start the vote and press many times yes and the countdown start hahaha

hey I realized that when the player has already voted, he can not select the grenades or weapons by means of the numbers or buttons, this can be fixed

I think 1st problem is solved,

2th problem is not because there is a bug in new amxx menu with amx_addtext I removed it and moved the countdown timer to item two using new line character to separate them.


Menu should now been shown to dead players also.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
666
Senior Member
Join Date: Mar 2015
Old 07-03-2019 , 11:44   Re: Vote menu countdown
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
I think 1st problem is solved,

2th problem is not because there is a bug in new amxx menu with amx_addtext I removed it and moved the countdown timer to item two using new line character to separate them.


Menu should now been shown to dead players also.
I tried it and the option "NO" does not appear like the countdown and it still does not work.

I remove this function from RD_FinishVote and it works fine, now tell me if it is ok or not, this is the function:

PHP Code:
if(g_iMenu <= 0)
{
     
remove_task(taskid);
     return;    

__________________
666 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-03-2019 , 12:06   Re: Vote menu countdown
Reply With Quote #4

Quote:
Originally Posted by 666 View Post
I tried it and the option "NO" does not appear like the countdown and it still does not work.

I remove this function from RD_FinishVote and it works fine, now tell me if it is ok or not, this is the function:

PHP Code:
if(g_iMenu <= 0)
{
     
remove_task(taskid);
     return;    


This has nothing to do with not showing the option NO

I just deleted the option NO by accident I readded it . Code updated.

The thing you removed is just a safe check to not throw an error invalid menu id.

Everything is hard to modify when you're using a phone
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 07-03-2019 at 12:07.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
666
Senior Member
Join Date: Mar 2015
Old 07-03-2019 , 18:02   Re: Vote menu countdown
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
This has nothing to do with not showing the option NO

I just deleted the option NO by accident I readded it . Code updated.

The thing you removed is just a safe check to not throw an error invalid menu id.

Everything is hard to modify when you're using a phone
ok I try again and the countdown is still at 10 and the voting never ends.

a question as I would do to adapt it so that the menu would only be seen by the player's team that started the voting
__________________

Last edited by 666; 07-03-2019 at 19:07.
666 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 17:22.


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