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

Super Player


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 01-14-2011 , 10:12   Super Player
Reply With Quote #1

Super Player

Description

Each new round a random player will be selected to be a super player. The player which is selected gets more HP, AP, speed and gravity.

cvars
Code:
//super player
super_health 200 //Health to set on super player. Set to 100 to disable
super_armor 200 //Armor to set on super player. Set to 100 to disable
super_speed 300 //Speed to set on super player. Set to 240 to disable
super_gravity 0.8 //1.0 = normal gravity 0.5 = half gravity
super_prefix 1 //Set to 0 to disable name prefix
super_announce 1 //Set to 0 to disable announcement for who is the super player
super_givehe 0 //set to 1 to give a he grenade to the super player
super_givesmoke 0 //Set to 1 to give a smoke grenade to the super player
super_giveflash 0 //Set to 1 to give 1, set to 2 to give 2. Higher than 2 is ignored and wont give any flash at all
super_heal 1 //Set to 0 to disable healing for the super player.
super_healpoints 50 //HP to heal each kill
super_advertise 1 //Enable/disable advertising. 1 enables, 0 disables.
super_glow 1 //Enable/disable glowing for the super players
/*Below only used if super_glow is set to 1*/
super_glowred 255 //How much red in the glow 255 is max
super_glowgreen 0 //How much green in the glow 255 is max
super_glowblue 0 //How much blue to glow 255 is max
Defines
At the top of the plugin code you will see a define:
PHP Code:
//comment out not to use sound
#define USE_SOUND 
Comment it out like this:
PHP Code:
//comment out not to use sound
//#define USE_SOUND 
Then the sound wont be downloaded by any clients, nor will it be played.
The sound is only played for the player who gets to be the super player.
When changing this define you need to recompile the code.

Credit
Credit goes to Exolent for fixing the code. I've also gotten some help from Drekes, Kreation and Matsi.

Changelog
v. 2.0Beta 4: Added a cvar so you can search for servers using this plugin.
v. 2.0Beta 3: Changed the way advertising works, now uses plugin_cfg instead og plugin_init.
v. 2.0Beta 2: Changed the way it checks if the picked guy has just been a super player.
v. 2.0Beta: Added a check so the same person shouldn't be the super player twice now. I did not get to test the grenades but I added a debug. Each time a grenade should be given it should print a global message which says that the grenade is given. I can't really test it so I have to do it like this. So please, do test this for me and give me some feedback.
v. 1.9b: Fixed an issue where the server would crash if it is empty.
v. 1.9a: Fixed the announcement so it doesn't say CT player all the time.
v. 1.9: Added a glow for the super player. Cvar list updated. I am still waiting for feedback on if it works fine for good players or not.
v. 1.8: Added a new cvar: super_advertise. Added since I wanted to advertise this a bit. If you don't like it then just turn it off using the cvar. If you have it on, place the super.txt in the cstrike folder. Still waiting for feedback for version 1.7. To test it simply download super_player1.8.
v. 1.7: Changed a few minor things. It now chooses one CT and one T to become a super player, to even it out a bit. *NOTE* I haven't tested this version completely as I have no way to do so. Therefor the version 1.6 is still here until someone can confirm for me that 1.7 is working as intended without bugs.
v. 1.6: Added healing option for the super player.
v. 1.5: Corrected a few typos. Also optimized a bit.
v. 1.4: Added cvars to give flashbang, he grenade or smoke grenade.
v. 1.3: Added a define at top to choose if you want sound or not.
v. 1.2: Added a cvar check for the speed thanks to xPaw.
v. 1.1: Exolent fixed the code, also added cvars for each attribute to add.
v. 1.0: Beta version. A few stuff didn't work.

Servers running this plugin
Attached Files
File Type: zip strength.zip (52.7 KB, 714 views)
File Type: sma Get Plugin or Get Source (super_player.sma - 1695 views - 4.3 KB)
File Type: txt super.txt (489 Bytes, 665 views)
File Type: sma Get Plugin or Get Source (super_player2.0Beta4.sma - 1495 views - 7.3 KB)
__________________
No idea what to write here...

Last edited by Jelle; 03-31-2011 at 15:08.
Jelle is offline
Send a message via MSN to Jelle
egbertjan
Senior Member
Join Date: Mar 2007
Location: The Netherlands
Old 01-14-2011 , 13:26   Re: Super Player
Reply With Quote #2

Looking good, I might even want to add this to my server! Thanks for sharing.
egbertjan is offline
MostwantedScript
Senior Member
Join Date: Sep 2010
Location: Sweden,Gothenburg
Old 01-14-2011 , 18:51   Re: Super Player
Reply With Quote #3

Nice plugin can be used at many mods
__________________
Owner & Creator of
http://mostwantedhf.info
MostwantedScript is offline
Send a message via Skype™ to MostwantedScript
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-14-2011 , 18:56   Re: Super Player
Reply With Quote #4

You forget to check speed cvar in weapon change forward
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-14-2011 , 19:41   Re: Super Player
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
You forget to check speed cvar in weaponSPEED change forward
Fixed, this forward is also called when you use shield, zoom a sniper, and at end of freezetime when you don't change gun
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 01-14-2011 , 21:49   Re: Super Player
Reply With Quote #6

Fixed, thanks.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
s3rserii
Senior Member
Join Date: Jan 2010
Old 01-15-2011 , 06:38   Re: Super Player
Reply With Quote #7

u can ad a sound who says to the player who earn the super status "Supermodus Enabled" like crysis.. "maximum strenght" and so son nice idea or?

http://rapidshare.com/files/442676382/strength.wav

peace
s3rserii is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 01-15-2011 , 15:56   Re: Super Player
Reply With Quote #8

Added the sound you requested. I used a define at the top of the code so if you are not using the sound it wont make clients precache it.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
TzK
Member
Join Date: Apr 2010
Old 01-15-2011 , 18:44   Re: Super Player
Reply With Quote #9

Maybe you can make that with cvar you can set that super player will gain Grenades and you can set wich grenades and how much he will be given
TzK is offline
Send a message via Skype™ to TzK
s3rserii
Senior Member
Join Date: Jan 2010
Old 01-15-2011 , 18:46   Re: Super Player
Reply With Quote #10

Quote:
Originally Posted by Jelle View Post
Added the sound you requested. I used a define at the top of the code so if you are not using the sound it wont make clients precache it.
nice work
s3rserii 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 00:08.


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