Raised This Month: $32 Target: $400
 8% 

Auto Game


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
Baracus94
Junior Member
Join Date: Jun 2010
Old 06-23-2010 , 09:20   Auto Game
Reply With Quote #1

--Auto Game--


Plugin Version: 1.04


Description:

This is a version similar to mixmaker, except best organized.
For those who do not know, the plugin is based on making the game basically automatic, that is, to reach 15 the game reaches half, so that five players will change teams.
If the players come back to win the game will automatically tell you who won.
when the the command "/newgame" is executed, all players are send to spectator automatically, and two players will be selected at random for randoms team captains (T & CT), which players can choose players to his team with a menu.

Cvars:

// New game
HTML Code:
new_restart_in "10"
new_frezetime "19"
new_autokick "0" 
new_autoteambalance "0" 
new_alltalk "0" 
new_buytime ".25"
new_c4timer "35" 
new_fadetoblack "0" 
new_falldamage "0" 
new_flashlight "1" 
new_forcecamera "3" 
new_forcechoosecam "2" 
new_friendlyfire "1" 
new_fraglimit "0" 
new_hostagepenalty" 0" 
new_limitteams "6" 
new_roundtime "3" 
new_startmoney "800" 
new_timelimit "0" 
new_airaccelerate  "10" 
new_airmove "1" 
new_gravity "800" 
new_clipmode "0" 
new_maxrate "25000" 
new_maxspeed "101" 
new_sys_ticrat "10000" 
new_decalfrequency "60" 
new_pausable "1" 
new_edgefriction "2" 
new_host_framerate "0" 
// Default game
HTML Code:
default_restart_in "5" 
default_freezetime "0" 
default_autoteambalance "1" 
default_alltalk "1" 
default_buytime "99" 
default_fadetoblack "0" 
default_forcecamera "0" 
default_forcechoosecam  "0" 
default_friendlyfire  "0" 
default_limitteams "0" 
default_roundtime "6" 
default_startmoney "800" 
default_timelimit "20" 
// Others...
HTML Code:
required_to_win "15" 
time_display_team_win "10.0" 
block_say "0" 
can_go_to_spec "1" 
game_password "newgame" 
// Cvar plugin on/off
HTML Code:
autogame_on "1" // 1 on/ 0 off
// Admin say commands.
HTML Code:
/newgame
/default
/off
/on
/nosay
/cansay
// Client's say commands.
HTML Code:
/ pass
// Client's say_team commands.
HTML Code:
/result ( in a game )
/spec
/pass
/alltalk
// Transfer players to teams, ( only captains )
HTML Code:
/menu
First updated:
HTML Code:
Removed enums, added pcvars.
Attached Files
File Type: txt autogame.txt (770 Bytes, 182 views)
File Type: sma Get Plugin or Get Source (AutoGame.sma - 680 views - 19.9 KB)

Last edited by Baracus94; 06-24-2010 at 04:51.
Baracus94 is offline
Crazybeer
BANNED
Join Date: Jan 2010
Location: The Pacifier
Old 06-23-2010 , 10:09   Re: Auto Game
Reply With Quote #2

Is this a fail plugin?
Crazybeer is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-23-2010 , 10:28   Re: Auto Game
Reply With Quote #3

Use PCVARs for ALL cvars
Do not use server_cmd to set cvars, use set_pcvar_*

Also, screwing with the tickrate on a hosted server could lead to the server being terminated
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Baracus94
Junior Member
Join Date: Jun 2010
Old 06-23-2010 , 23:50   Re: Auto Game
Reply With Quote #4

Quote:
Originally Posted by YamiKaitou View Post
Use PCVARs for ALL cvars
Do not use server_cmd to set cvars, use set_pcvar_*

Also, screwing with the tickrate on a hosted server could lead to the server being terminated
Updated =)
Baracus94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-24-2010 , 00:37   Re: Auto Game
Reply With Quote #5

What is the point of this:

PHP Code:
            set_pcvar_numFreezetimeget_pcvar_num(Freezetime) )
            
set_pcvar_numAutoKickget_pcvar_num(AutoKick) )
            
set_pcvar_numAutoteambalanceget_pcvar_num(Autoteambalance) )
            
set_pcvar_numBuytimeget_pcvar_num(Buytime) )
            
set_pcvar_numC4timerget_pcvar_num(C4timer) )
            
set_pcvar_numFadetoblackget_pcvar_num(Fadetoblack) )
            
set_pcvar_numFalldamageget_pcvar_num(Falldamage) )
            
set_pcvar_numFlashlightget_pcvar_num(Flashlight) )
// . . . 
????

It does nothing.
__________________

Last edited by fysiks; 06-24-2010 at 00:42.
fysiks is offline
Baracus94
Junior Member
Join Date: Jun 2010
Old 06-24-2010 , 04:46   Re: Auto Game
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
What is the point of this:

PHP Code:
            set_pcvar_numFreezetimeget_pcvar_num(Freezetime) )
            
set_pcvar_numAutoKickget_pcvar_num(AutoKick) )
            
set_pcvar_numAutoteambalanceget_pcvar_num(Autoteambalance) )
            
set_pcvar_numBuytimeget_pcvar_num(Buytime) )
            
set_pcvar_numC4timerget_pcvar_num(C4timer) )
            
set_pcvar_numFadetoblackget_pcvar_num(Fadetoblack) )
            
set_pcvar_numFalldamageget_pcvar_num(Falldamage) )
            
set_pcvar_numFlashlightget_pcvar_num(Flashlight) )
// . . . 
????

It does nothing.

i fail e.e

Updated now D:
Baracus94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-24-2010 , 18:34   Re: Auto Game
Reply With Quote #7

Quote:
Originally Posted by Baracus94 View Post
i fail e.e

Updated now D:
I didn't say that you "coded" it wrong. I said that it does absolutely nothing! Remove it. All of them.
__________________
fysiks is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 06-24-2010 , 21:42   Re: Auto Game
Reply With Quote #8

Some codes are stoled from my mixmaker and the code is very worst...
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-24-2010 , 23:56   Re: Auto Game
Reply With Quote #9

Wtf is the point of all these war management plugins?
__________________
I am out of order!
grimvh2 is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 06-24-2010 , 23:59   Re: Auto Game
Reply With Quote #10

I am doing the 10.0 version of mixmaker because some people request it to me,the code of the version 10.0 is better than all war plugins I saw

Edit : I'm lazy to finish mixmaker now xD...

Last edited by #8 SickneSS; 06-25-2010 at 00:18.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
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 22:36.


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