Raised This Month: $105 Target: $400
 26% 

Weird Round


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 10-28-2009 , 16:39   Weird Round
Reply With Quote #1

Description:
Every round a special ability is chosen for all the players:
-High Gravity: set by a cvar, every player gets that gravity (higher than 1.0!)
-Gravity: set by a cvar, every player gets that gravity (lower than 1.0 !)
-Speed: set by a cvar, sets every player's maxspeed
-Frags: set by a cvar, sets every player's frags
-Deaths: set by a cvar, sets every player's deaths
-Armor: set by a cvar, sets every player's armor
-Health: set by a cvar, sets every player's HP

Modules:
- Fun
- Cstrike
- HamSandwich

Cvars:
wr_status <0/1> - sets the status of the plugin : 0 - Disabled/1 - Enabled (default : 1 )
wr_gravity - sets the Weird Gravity Value (default : 0.6 )
wr_speed - sets the Weird Speed Value (default: 320 )
wr_frags - sets the Weird Frags Value (default: 0)
wr_deaths - sets the Weird Deaths Value (default: 0)
wr_armor - sets the Weird Armor Value (default: 200)
wr_hp - sets the Weird Armor Value (default: 500)
wr_hgrav - sets the Weird High Gravity Value (default: 9)

Versions:
1.0 - First Release !
1.1 - Fixed some code!
1.2 - Added 2nd status giving everyone something different!
To Do:
-Multilingual
-Per map powers
-Restrict power menu
Thx to:
xPaw
uNny
Attached Files
File Type: sma Get Plugin or Get Source (WeirdRound.sma - 914 views - 3.6 KB)

Last edited by Brreaker; 05-19-2010 at 03:28.
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
izzle
Senior Member
Join Date: Aug 2009
Old 10-28-2009 , 17:05   Re: Weird Round
Reply With Quote #2

it should give everyone different things
izzle is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 10-29-2009 , 02:12   Re: Weird Round
Reply With Quote #3

Hmm I will make a new status cvar (2) to give every player something else
Thx for the ideea xD
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
Old 10-29-2009, 08:54
Hunter-Digital
This message has been deleted by Hunter-Digital. Reason: hmm, nvm :))
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 10-29-2009 , 14:28   Re: Weird Round
Reply With Quote #4

cool idea !
__________________

sunx is offline
floatman
Senior Member
Join Date: Oct 2009
Location: nowhere.
Old 10-30-2009 , 12:06   Re: Weird Round
Reply With Quote #5

In the sentence, not all words are begin with capital letter.

What about ML?
__________________


Last edited by floatman; 11-03-2009 at 16:24.
floatman is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 10-31-2009 , 07:33   Re: Weird Round
Reply With Quote #6

- Indent your code.
- The switch statement is outside of the for-loop, right now you are only giving the bonus/malus to one player.
__________________
In Flames we trust!
Nextra is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-31-2009 , 08:20   Re: Weird Round
Reply With Quote #7

Quote:
Originally Posted by Nextra View Post
- Indent your code.
- The switch statement is outside of the for-loop, right now you are only giving the bonus/malus to one player.
I`ll help him :d
Code:
public eRoundStart() {     if(get_pcvar_num(pCvarStatus) == 1) {         new iRandomNum = random_num(0, 7)        
        if( iRandomNum == 7 ) {
            client_print( 0, print_chat, "Nothing happened" );
                        return PLUGIN_CONTINUE;         }                 new gravity = get_pcvar_num(pCvarGrav)         new speed = get_pcvar_num(pCvarSpeed)         new frags = get_pcvar_num(pCvarFrags)         new health = get_pcvar_num(pCvarHealth)         new armor = get_pcvar_num(pCvarArmor)         new deaths = get_pcvar_num(pCvarDeaths)         new hgrav = get_pcvar_num(pCvarHGrav)                 new szPlayers[32], iCount, index
        get_players(szPlayers, iCount, "a")
                for(new i=0; i < iCount; i++)         {             index = szPlayers[i]                         switch(iRandomNum) {                 case 0: {                     set_user_gravity(index, float(gravity))                     client_print(id, print_chat, "Everybody Can Fly!")                 }                 case 1: {                     set_user_maxspeed(index, float(speed))                     client_print(id, print_chat, "Speed It Up!")                 }                 case 2: {                     set_user_frags(index, frags)                     client_print(id, print_chat, "Your Frags Were Modified!HaHa!")                 }                 case 3: {                     set_user_health(index, health)                     client_print(id, print_chat, "Everybody Is Living High!")                 }                 case 4: {                     set_user_armor(index, armor)                     client_print(id, print_chat, "You Got A Pretty Nice Armor!")                 }                 case 5: {                     cs_set_user_deaths(index, deaths)                     client_print(id, print_chat, "Your Deaths Were Modified!")                 }                 case 6: {                     set_user_gravity(index, float(hgrav))                     client_print(id, print_chat, "Nobody Can Jump Huh?")                 }             }         }     }         return PLUGIN_CONTINUE; }
Well its still bad, but better than original
__________________
xPaw is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 10-31-2009 , 08:23   Re: Weird Round
Reply With Quote #8

Thanks very much xPaw
I was working at that...
Sorry about the second status (2) it's not done yet...Still working at that
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 05-19-2010 , 03:29   Re: Weird Round
Reply With Quote #9

Added scond status giving everyone something new!
Check first post!
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
Reply


Thread Tools
Display Modes

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 15:25.


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