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

Timelimit Voting 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 10-09-2009 , 12:01   Re: Vote for time limit v1.1 by Jon
Reply With Quote #21

Still think MultiLangual should be good
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-21-2009 , 12:08   Re: Vote for time limit v1.1 by Jon
Reply With Quote #22

This plugin is well done.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Jon
Veteran Member
Join Date: Dec 2007
Old 10-21-2009 , 12:19   Re: Vote for time limit v1.1 by Jon
Reply With Quote #23

Quote:
Originally Posted by Hawk552 View Post
If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.
Yes.
Jon is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-21-2009 , 13:10   Re: Vote for time limit v1.1 by Jon
Reply With Quote #24

PHP Code:
    addg_szMenu63"\yVote for time limit^n^n" );
    
addg_szMenu63"\r1. \wVote^n" );
    
addg_szMenu63"\r2. \wDon't Vote" ); 
It's faster to store the current position and use formatex() since add() has to execute the VM equivalent of strlen() each time it is run, but this is a very trivial optimization and probably not worth the time.

You could avoid this entirely by using new menus, which are much more suited for this task than old menus.

PHP Code:
    new iPlayersMAXPLAYERS ], iNum;
    
get_playersiPlayersiNum"ch" ); 
It's faster to just iterate over all indices starting from 1 and going to 32, but with flags it may be more costly this way. I would leave it as is, but if you feel like benchmarking something, that would be interesting.

PHP Code:
            iClient iPlayers];
            
            
show_menuiClientg_iKeysg_szMenu25"VoteMenu" ); 
This is a trivial assignment and saves no typing/cost as you only use the variable once.

PHP Code:
new iAverage g_iVoteSum g_iVotesCount
This will truncate decimals, even if they are above .5.

PHP Code:
    if( !is_str_numszArg ) )
    {
        
client_printiClientprint_chat"** Invalid input, please try again." );
        
client_cmdiClient"messagemode your_suggested_timelimit" );
        
        return 
PLUGIN_HANDLED;
    } 
Consider allowing some sort of exit.

PHP Code:
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1044\\ f0\\ fs16 \n\\ par }
*/ 
May want to get rid of that. Pretty trivial though and some of my plugins have that at the end, too.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Jon
Veteran Member
Join Date: Dec 2007
Old 11-08-2009 , 14:35   Re: Timelimit Voting 1.2
Reply With Quote #25

Updated, fixed above.
Jon is offline
alliedmodder
Junior Member
Join Date: Jul 2010
Old 07-05-2010 , 15:56   Re: Timelimit Voting 1.2
Reply With Quote #26

how i can let the vote start before 4 min of map change ?

I have multimod server and i want to make vote for timelimit
alliedmodder is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-05-2010 , 18:10   Re: Timelimit Voting 1.2
Reply With Quote #27

Quote:
Originally Posted by alliedmodder View Post
how i can let the vote start before 4 min of map change ?

I have multimod server and i want to make vote for timelimit
If you did that then the actual map changing will be affected. If it becomes shorter then the map will change immediately. If it becomes longer then the current map will be extended and you will have to vote again.
__________________
fysiks is offline
alliedmodder
Junior Member
Join Date: Jul 2010
Old 07-05-2010 , 22:49   Re: Timelimit Voting 1.2
Reply With Quote #28

Quote:
Originally Posted by fysiks View Post
If you did that then the actual map changing will be affected. If it becomes shorter then the map will change immediately. If it becomes longer then the current map will be extended and you will have to vote again.
I want just a plugin to give players a vote for extending the mod time (timelimit) before votemod menu start. EX . Extend timelimt for 15 ? Yes No
alliedmodder is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-05-2010 , 23:05   Re: Timelimit Voting 1.2
Reply With Quote #29

Quote:
Originally Posted by alliedmodder View Post
I want just a plugin to give players a vote for extending the mod time (timelimit) before votemod menu start. EX . Extend timelimt for 15 ? Yes No
This plugin will not work for you then. I'm not sure if there exists a standalone plugin for just this. Search first then if you can't find anything then you can request one in the Requests forum.
__________________
fysiks 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 04:14.


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