Raised This Month: $ Target: $400
 0% 

5votes in 1 map?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drakeris
Senior Member
Join Date: Jul 2009
Old 07-30-2010 , 05:25   5votes in 1 map?
Reply With Quote #1

I was just wondering how to make so players could do /votect 5 times per map for example now map is de_dust2 and they use 5times /votect after the 5 times when they try writing /votect it gives them an error show that they exceeded map maximum and when it`s gona be de_dust they again could use /votect i know how to make a vote but how to make a vote that can be used 5 times per map and makes a voted player to become ct?
__________________
drakeris is offline
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-30-2010 , 08:07   Re: 5votes in 1 map?
Reply With Quote #2

well this is easy way:

PHP Code:
///global
new check_value 0

/// init
client_cmd(id"say /votetc" "vote_menu")


///public
public vote_menu(id)
{
 if (
check_value 5/// check if map was extended already 5 times
   
{
      
client_print(0print_chat"You can't extend this mapy anymore!!!!! FFFFFUUUU!")
      return 
PLUGIN_HANDLED
   
}
 else 
/// if it wasn't
   
{
     new 
klasa_menu menu_create("Extend Map""extend")
     
show menu bla bla
   
}

}

extend(/// whatever)   /// check if it was already extended
{
check_value check_value /// count which time it is extended

//// extend map code


Gadzislaw007 is offline
drakeris
Senior Member
Join Date: Jul 2009
Old 07-31-2010 , 01:33   Re: 5votes in 1 map?
Reply With Quote #3

this is for extending a map not for voting for a transfer player?
__________________
drakeris is offline
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-31-2010 , 05:57   Re: 5votes in 1 map?
Reply With Quote #4

I just made a function which will block voting, if it sucessed already 5 times. You just have to attach it to correct vote function, you said you can write vote plugin, so just attach my script to it.
Gadzislaw007 is offline
Old 07-31-2010, 06:04
lucas_7_94
This message has been deleted by lucas_7_94. Reason: asd
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 07-31-2010 , 06:06   Re: 5votes in 1 map?
Reply With Quote #6

client_cmd(id, "say /votetc" "vote_menu")

=>

register_clcmd or concmd
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
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 00:09.


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