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

Ultimate Warmup 1.7.1 ML by naven


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 04-02-2010 , 17:13   Ultimate Warmup 1.7.1 ML by naven
Reply With Quote #1

Hello,

This plugin was developed by me some time ago at different forums. Now I decided to put it here having hope you'll like it.

Features:
- giving weapons during the round(hegrenade too) + random weapons,
- playing sounds during the warmup round,
- 'bouncing' countdown timer,
- automatic respawn after death during the warmup round,
- multilingual support(translations are welcomed on PM),
- example of using .mp3 and .wav format of sounds(in code),
- example of disabling plugins during the warmup,
- blocking weapons pickup,
- blocking weapons dropping,


Cvars:
amx_warmup_weapon <number>
This cvar defines, which weapon is given to players during warmup round. Here is the list of numbers that you can use:
Code:
1   weapon_p228			//p228
2   weapon_scout    		//scout         
3   weapon_hegrenade		//HE grenade
4   weapon_xm1014		//shotgun2
5   weapon_mac10           	//uzi tt              
6   weapon_aug        		//aug      
7   weapon_elites		//elites        
8   weapon_fiveseven		//fiveseven
9   weapon_ump45		//ump45
10   weapon_sg550		//fg550
11   weapon_galil		//galil
12   weapon_famas		//famas
13   weapon_usp			//usp
14   weapon_glock18		//glock
15   weapon_awp  		//awp
16   weapon_mp5navy   		//MP5
17   weapon_m249       		//m249
18   weapon_m3         		//shotgun(m3)
19   weapon_m4a1        	//M4
20   weapon_tmp         	//tmp
21   weapon_g3sg1		//g3sg1
22   weapon_deagle		//dgl
23   weapon_sg552		//sg552(tt)
24   weapon_ak47		//ak47
25   weapon_p90  		//P90
26   weapon_knife		//knife
27   random weapons from above
If you specify any other(invalid) amx_warmup_weapon value it will set itself to weapon knife.
Those numbers are also listed in the .sma file. Also the change-log is included there.


amx_warmup_time "80" //defines the time of warmup round. Now it's defined in seconds!

amx_warmup_respawn 1/0 //specifies if auto respawning is enabled. 1-YES, 0-NO

Disabling amxmodx plugins during warmup
line 128
PHP Code:
    server_cmd("amx_pausecfg pause lokalizator.amxx"); 
Change to your plugin name. If you want disable more than one just add another line with same content.

Enabling them after warmup:
Line 169
PHP Code:
server_cmd("amx_pausecfg enable lokalizator.amxx"); 
Act same as above.

Translations:
pl, en, done by me
bg-done by papyrus_kn
tr -done by xD_1991
sr- done by HaLLoWeN
nl- done by drekes
ro- done by stelistcristi
lv- done by DeWilX
fr- done by teol
bp- done by ^SmileY
ru- done by loKkdoKk
hr- done by Simbad
Thanks to everyone.

Credits:
-kyku
-kornik- thanks to him I haven't got bored when testing v.1.5

FOR CSCENTER FORUMS: NO, YOU CANNOT COPY THIS ON YOUR FORUM WITHOUT PERMISSION, AND NO, YOU WILL NEVER GET IT.

Files attached:
ultimate_warmup1.7.zip -current newest version

Ultimate warmup 1.5c.zip- previous stable
play_muza.zip- soundpack for previous stable(1.5c)
ultimate_warmup.sma - newest sma code(v 1.7)

I put sound in another archive just because most of you will change it(yes, this one really sucks).
Version 1.7.1 has no sound attached, if you got cool song send it via PM to me then I'll add it here.
Attached Files
File Type: zip play_muza.zip (609.4 KB, 568 views)
File Type: zip Ultimate warmup 1.5c.zip (7.5 KB, 383 views)
File Type: zip ultimate_warmup1.71.zip (4.5 KB, 563 views)
File Type: sma Get Plugin or Get Source (ultimate_warmup.sma - 1392 views - 10.7 KB)
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

Last edited by naven; 09-22-2010 at 09:37. Reason: v 1.7.1
naven is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-02-2010 , 17:50   Re: Ultimate Warmup 1.3 by naven
Reply With Quote #2

RAR -> ZIP
Remove AMXX file from ZIP file
__________________
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
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 04-02-2010 , 17:57   Re: Ultimate Warmup 1.3 by naven
Reply With Quote #3

Both things- done.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 04-02-2010 , 18:05   Re: Ultimate Warmup 1.3 by naven
Reply With Quote #4

Good plugin idea.

Things that should be fixed:
  • Don't constantly give weapon ammo with give_item. Instead of
    PHP Code:
    give_item(id"weapon_p228")
    give_item(id"ammo_357sig")
    give_item(id"ammo_357sig")
    give_item(id"ammo_357sig")
    give_item(id"ammo_357sig"
    you should have
    PHP Code:
    new iWep give_item(id"weapon_p228")
    cs_set_weapon_ammoiWepAMMO_AMOUNT // replace ammo amt with ammo number 
  • In task_give, the code is extremely redundant. You should assign the numbers the weapon and instead of giving a different weapon in each case, just give_item the value.
  • Use pcvars
  • Fix your indentation.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 04-02-2010 , 18:14   Re: Ultimate Warmup 1.3 by naven
Reply With Quote #5

About weapons- I know that I didn't used the best way.
Quote:
Fix your indentation.
What do you exactly mean?
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

Last edited by naven; 04-02-2010 at 18:57. Reason: *
naven is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 04-02-2010 , 18:16   Re: Ultimate Warmup 1.3 by naven
Reply With Quote #6

Quote:
Originally Posted by N A V E N View Post
About weapons- I know that I didn't user the best way.

What do you exactly mean?
Things like the default case are incorrectly indented. Use the Indenter Tool (AMXX Studio and Pawn Studio have one).

Also, you use K&R style brackets
PHP Code:
yourfunc() {
    
// code

along with ANSII style.
PHP Code:
yourfunc()
{
    
// code

You should pick one style and stick with it. Not too important, but some people find it annoying.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 04-02-2010 , 18:58   Re: Ultimate Warmup 1.3 by naven
Reply With Quote #7

I got the point. I had no idea that some people cares about that...
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 04-02-2010 , 19:09   Re: Ultimate Warmup 1.3 by naven
Reply With Quote #8

Quote:
Originally Posted by N A V E N View Post
I got the point. I had no idea that some people cares about that...
http://forums.alliedmods.net/showthread.php?t=6481

Conformity

Also, consider looking at Whitespace.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
ditmesteam
Senior Member
Join Date: Oct 2009
Old 04-03-2010 , 21:21   Re: Ultimate Warmup 1.3 by naven
Reply With Quote #9

GJ!
- Could you make like CSDM: player can choose anyone gun or player given random guns?
- Could you make turn on/off music download?

Last edited by ditmesteam; 04-03-2010 at 21:27.
ditmesteam is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 04-04-2010 , 03:23   Re: Ultimate Warmup 1.3 by naven
Reply With Quote #10

Quote:
- Could you make like CSDM: player can choose anyone gun or player given random guns?
Nope, I don't want it to look like warmup pro

Quote:
- Could you make turn on/off music download?
Hmm I'll do a cvar.
edit: actually it doesn't want to work...

v 1.4
-code cleanup: fixed identation, used pcvars.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

Last edited by naven; 04-04-2010 at 04:26.
naven 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 12:57.


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