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

Long Rounds by dor123


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Exolent[jNr] (178)
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 08-11-2008 , 19:50   Long Rounds by dor123
Reply With Quote #1

[IMG]http://img143.**************/img143/5946/longroundsyn8.jpg[/IMG]
by dor123 - the noobest scripter at AlliedModders

CURRENT VERSION: 1.2
  • Changed the spawn detection (thanks connor)
  • If you encounter problems with it, let me know.
  • Fixed that HP, armor and money didn't come back to normal when amx_long 0 was used.
  • Fixed that when the plugin is off, it prints a message all the time that plugin is off even if nothing is done because of constant-looping help message that supose to come when it's on.
Description:
This is a very basic plugin that the only thing it does is letting the players configure their stats(HP, armor and money). It gives all players more HP, armor and money than usual, according to the default set by cvars.
A player can type in chat (or console) one of the listed commands below to get extra stat or stats(as I said HP, armor and money), at the cost of another one.

Additions:
There is also a "random system", kind of like FunMod by Rolnaaba, but more relative to the plugin. Instead of silly random things like gravity changes and stuff like that, there are silliy random things that reffers the player's stats. You can either get one of the actions listed in the Client Commands list, a bad thing or a good thing. There's a limitation to the use of it that is set by a cvar.
The only random actions that got absolutely nothing to do with the plugin are 20 slaps to the user (0.2 seconds and 1 damage each) and EnemyLike model (will be removed if asked so).

To disable the random system, find this line
Code:
 
#define RandomSystem
and comment it using '//'

Code:
//#define RandomSystem
Another addition is HUD messages that show how many times left using the random system, HP and armor to prevent the all-knows HUD problems when too much HP/armor.

To disable HUD messages find this line
Code:
#define HUDThings

And comment it using '//'
Code:
//#define HUDThings


CVars:
  • long_on (default: 1) - Shows if Long Rounds is on or not (cannot be changed! Look at console command).
  • long_hp (default: 400) - Sets the player's HP on spawns.
  • long_money (default: 21000) - Sets the player's money on spawn.
  • long_armor (default: 200) - Sets the player's armor on spawn.
  • longer_rand (default: 1) - Enables/Disables the random system (if defined).
  • longerrand_limit (default: 3) - Sets how many times a player allowed to use the random system (if enabled). Resets when new round.
  • longerrand_enemylike_time (default: 140.0) - Sets how much time a player have an enemy-like model if got enemy-like model from the random system.
  • long_round_time (default: 9) - Sets the round time. If changed the mp_roundtime it will go back to the cvar value when new round.
  • Long_Rounds_v - Long Rounds's current version.
Console command and client commands:
ConCmd - amx_long (default: 1) - Enables/Disables Long Rounds [automaticlly changes the cvar long_on (thanks Exolent[jNr]!)]

Client Commands:
chat: put '/' or '.' before the command.
console: simply type the command.
  • longhelp - Shows a list (in chat, not MOTD, because as I said i'm a n00b) of the client commands list (everything below).
  • longerm_hp - Gives extra money for HP.
  • longerm_armor - Gives extra money for armor.
  • longerhp_money - Gives extra HP for money.
  • longerhp_armor - Gives extra HP for armor.
  • longerarm_hp - Gives extra armor for HP.
  • longerarm_money - Gives extra armor for money.
  • longer_hp_money - Gives extra HP and money for armor.
  • longer_hp_armor - Gives extra HP and armor for money.
  • longer_money_armor - Gives extra money and armor for HP.
  • longerrand - Chooses a random action - one of the above list, a bad one or a good one.
~NOTE~
If you don't have enough of the required stat the command won't execute.
For example: I want extra HP for armor but I don't have enough armor, command ends.

Try taking advantage using those commands to get health/armor/money easily

Modules needed:
Cstrike & Fun

Credits/Thanks:
XxAvalanchexX, Exolent[jNr] & Peoples Army for showing me how to use the cs_get_user_team() function (yes, I AM that noobish).

Exolent[jNr] for letting me use some of his code.

ot_207 for showing me how to make colorful text.

Special Thanks (Regardless to the plugin):
arkshine
danielkza
zwfgdlc
connorr (Connorr McLeod)
Vet

IF I FORGOT SOMEONE, TELL ME!

Installation:
1. Download long_rounds.sma to cstrike(or czero)/addons/amxmodx/scripting.

2. Either drag the .sma file to amxxpc.exe, or right-click it, choose 'open with', browse for the amxxpc.exe and right-click again, 'open with', choose AMXXPC (do that if you have alot of plugins in the folder and it's much easier for future plugins as well).

3. Go to moddir/addons/amxmodx/scripting/compiled and copy long_rounds.amxx to moddir/addons/amxmodx/plugins.

4. Go to moddir/addons/amxmodx/configs and open 'plugins.ini'.
Type in at the last line long_rounds.amxx, and you're done!

Pictures:
[IMG]http://img143.**************/img143/248/hl2008081202034728ub4.jpg[/IMG]

[IMG]http://img145.**************/img145/7306/hl2008081202041214og4.jpg[/IMG]


TODO List:
Add cvars to set how much of each stat is given by typing a "longer" command.

Add a warmup round (maybe).

Add overtime.

Figuring out if it's possible to make rounds longer than 9 minutes.

I'll be glad to hear your ideas! though i'll probably won't know how to do them anyways...

EDIT: You can ignore this todo list nobody seems to be interested in this plugin.


~NOTE~
My AMXx Small scripting's knowledge is VERY poor, and I just wanted you to be aware that what you see in the plugin is pretty much all I know and can do, exept for a thing or two thanks to the pros ().
I've spent alot of time working on it so, I hope it gets approved! and no matter how stupid it is...

EDIT: You CANNOT compile the .sma through the web compiler. You must download the .sma and compile it locally.


ENJOY!
Attached Files
File Type: sma Get Plugin or Get Source (long_rounds.sma - 2408 views - 42.7 KB)
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ

Last edited by Dores; 08-21-2008 at 22:01. Reason: Version 1.2
Dores is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-11-2008 , 20:13   Re: Long Rounds by dor123
Reply With Quote #2

Quote:
Originally Posted by dor123 View Post
TODO List if plugin approved:
Does approval matter if people still want the plugin?
My script detector got unapproved, but I still kept making new versions.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 08-11-2008 , 20:18   Re: Long Rounds by dor123
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
Does approval matter if people still want the plugin?
My script detector got unapproved, but I still kept making new versions.
Know what? You are absolutely right! Thanks
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-11-2008 , 20:48   Re: Long Rounds by dor123
Reply With Quote #4

Edit your initial post and change the fonts to the standard font. Do what you want, within reason, for things like headings, but the majority of your text needs to be standard.

I'm a moderator, I just don't look like one.
__________________

Last edited by Brad; 08-11-2008 at 20:51.
Brad is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-12-2008 , 21:03   Re: Long Rounds by dor123
Reply With Quote #5

The spawn detection is bad.

Use this tut :http://forums.alliedmods.net/showthread.php?t=42159
Or if you don't want to use fakemeta or hamsandwich : http://forums.alliedmods.net/showpos...9&postcount=84
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 08-12-2008 , 21:21   Re: Long Rounds by dor123
Reply With Quote #6

it works fine... what's the difference?

by the way, i think you forgot making the player use the fullupdate command because if he won't how could the game get updated? (http://forums.alliedmods.net/showpos...9&postcount=84) It's automatic right?

Code:
if( !is_user_alive(id) )
 return
why wouldn't he be alive on respawn

sorry for my stupidity i really don't know much anyways nobody seems interested in the plugin whatsoever.

EDIT: i'll do what you said about the spawn event but I really want to know what's the difference.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ

Last edited by Dores; 08-13-2008 at 12:15. Reason: i'm a noob
Dores is offline
Self-Serve
Member
Join Date: Jul 2008
Old 08-13-2008 , 01:52   Re: Long Rounds by dor123
Reply With Quote #7

Interesting plugin. I'll put it on my server and see if I can come up with any suggestions.

Thanks for providing screen shots!
__________________
Self-Serve is offline
Send a message via AIM to Self-Serve
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 08-13-2008 , 11:31   Re: Long Rounds by dor123
Reply With Quote #8

Quote:
Originally Posted by Self-Serve View Post
Interesting plugin. I'll put it on my server and see if I can come up with any suggestions.

Thanks for providing screen shots!
ok thanks.
and no problem

EDIT: Updated
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ

Last edited by Dores; 08-13-2008 at 12:11.
Dores is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-13-2008 , 13:19   Re: Long Rounds by dor123
Reply With Quote #9

If you don't implement the tuto, then players can use fullupdate command or make a demo to get free HPs or whatever, this would be a anoying issue.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-13-2008 , 14:55   Re: Long Rounds by dor123
Reply With Quote #10

minimize screens please
__________________
xPaw is offline
Old 08-21-2008, 19:26
Dores
This message has been deleted by Dores. Reason: hmm
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 11:03.


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