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

SC STUFF PLUGIN


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Sven Coop        Category:   Fun Stuff        Approver:   GHW_Chronic (70)
Silencer123
Veteran Member
Join Date: Jul 2006
Location: Germany (GMT+1)
Old 07-18-2006 , 08:00   SC STUFF PLUGIN
Reply With Quote #1

SC STUFF PLUGIN

Version 2.0 by Silencer


Thanks to:
Goshik, Shurik3n, VEN and xXAvalancheXx.


Known Bugs:
Code:
 - Amount of AR Grenades in Menu is always 0, as this Amount
   can't be read with the current AMXModX Versions Functions.
   Be careful so you do not waste your Money for AR Grenades,
   although you already have 10.
 - If you use countdown_abort there is still a set_task counting.
   Only use this Command if it is very neccessary, otherwise another
   Countdown will count down with double Speed, until the abortet
   Countdowns Timelimit is up. If anyone knows how to abort a
   running set_task function please let me know.

Plugins Functions:
Admins can set Price of Ammo and set/add/reduce Money of every single Player.
Everyone can use the Buy Ammo Menu to Buy Ammo with the Money set by an Admin.
Players can also have an Amount of Money after connecting, set with a Command.
The Admin needs Access Flag P.
Admin can also set Amount of Healthkits a Player starts with.
Everyone can use his Healthkits with a Command.
Amount of Healthkits will be reset on Respawn.
Healthkit Usage has a setable Decay Time.
The usual Functions are included. (Godmode, Noclip, Give Weapons and Items, Set Health/Armor)


Commands for Clients/Normal Players:
buyammo - Open Menu to buy Ammo by paying virtual Money (Or say /buyammo in Chat instead)
usehealthkit - Get a Healthkit from your Backpack (Or say /usehealthkit in Chat instead)
money_read Playername - See how much Money a Player has
sc_plugin_info - Prints this help to console
------------------------------------------------------------------------------------------------
Additional Commands for Admins with Flag P:
buyammo_status 1/0 - Set Buy Ammo Menus Status - 1 is ON - 0 is OFF.
buyammo_toggle - Toggle the Buy Ammo Menu ON/OFF - Everyone will be notified.
countdown_special Amount Command Description - Countdown for doing a Command.
countdown_abort - Abort Countdown.
money_set Playername Amount - Set Players Money.
money_add Playername Amount - Raise Players Money.
money_destroy Playername Amount - Reduce Players Money.
price_357rounds Amount - Set Price for six Rounds for the 357.
price_buckshots Amount - Set Price for twelve Buckshotss for the Shotgun.
price_riflerounds Amount - Set Price for five Bullets for the Sniper Rifle.
price_arrows Amount - Set Price for five Arrows for the Crossbow.
price_cells Amount - Set Price for 20 Energy Cells for the Gauss and Egon.
price_rockets Amount - Set Price for two RPG Rockets for the RPG Launcher.
price_argrenades Amount - Set Price for two AR Grenades for the 9mm AR.
price_9mmammo Amount - Set Price for 17 Bullets for 9mm Weapons.
price_chainammo Amount - Set Price for 100 Rounds for the Minigun.
healthkit_amount Amount - Set Amount of Healthkits in Players Backpacks on Spawn.
healthkit_decaytime Amount - Set Decay Time for Healthkit Usage in Seconds.
give_item - Replace 'item' with a Weapons/Items Name to spawn it.
set_god Playername - Toggle Players God Mode On or Off.
set_noclip Playername - Toggle Players Noclip Mode On or Off.
set_health Playername Value - Set Players Health.
set_armor Playername Value - Set Players Armor.





Coming up next Version ( 2.0 ):
Code:
Players can place Turrets



Version History:
Code:
Version 2.0: Engine module no longer required.
 
Version 1.9: Fixed Bug with Money for Frags
 
Version 1.8: Money for Frags (Sadly this is calculated very simple)
 
Version 1.7: Countdown does not lag anymore. Money is being saved (Finally)
 
Version 1.6: Countdown Commands and some minor Bug Fixes.
 
Version 1.5: All Commands are much shorter now. Added "is_user_alive" checking.
             Some Messages are now shorter.
 
Version 1.4: Added the usual Functions. (Godmode, Noclip, Give Weapons and Items, Set Health/Armor)
             Healthkit Usage Decay Time is now changeable. Note that if it is smaller than 0.1
             it will be set to 0, as set_task has 0.1 Seconds as Minimum.
             Fixed some Stuff.
 
Version 1.3: Added 3 Seconds Decay Time for Healthkit Usage.
             Made faked Columns with Spaces, as Columns do not work in Sven Coop.
             Added Admin Access checking for Toggling Buy Ammo Menu On or Off.
 
Version 1.2: Added Sound Precaches to fix Crash
             on Maps that have no "item_healthkit" inside.
             Fixed a Bug with adding and destroying Money.
 
Version 1.1: Added Precache "models/w_medkit.mdl"
             to fix Game Crash when trying to get Healthkit.
 
Version 1.0: Initial Release.




Suggestions are welcome!
Attached Files
File Type: sma Get Plugin or Get Source (scstuffplugin.sma - 4285 views - 45.8 KB)
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 12-17-2006 at 12:32.
Silencer123 is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 07-18-2006 , 15:40   Re: SC STUFF PLUGIN
Reply With Quote #2

What is SC mean?
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 07-18-2006 , 16:00   Re: SC STUFF PLUGIN
Reply With Quote #3

cool plugin +karma
and one request just on a new round print the client commands in chat
k007 is offline
Send a message via MSN to k007
Silencer123
Veteran Member
Join Date: Jul 2006
Location: Germany (GMT+1)
Old 07-18-2006 , 17:34   Re: SC STUFF PLUGIN
Reply With Quote #4

Oh shit...
I am... omg...
Do not use the 1.2 Version!
I totally forgot Admin Access check for the toggling it on/off!
I found that out today when someone started turning it on off on off on off
Ill fix that!

edit:
fixed.
SC is not a writing error and it does not mean counter strike, it means Sven Cooperative
Thanks for compliment and karma.
phew... i hope that was the only hardcore bug. sorry! Please get new Version!
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 07-18-2006 at 17:50.
Silencer123 is offline
Shurik3n
Member
Join Date: Feb 2006
Old 07-18-2006 , 18:51   Re: SC STUFF PLUGIN
Reply With Quote #5

Oh cool, so thats what you were making . It looks nice, I'll try it out later.
__________________
+Karma if I helped.
Shurik3n is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 07-19-2006 , 11:24   Re: SC STUFF PLUGIN
Reply With Quote #6

This plugin works fine, except the part i don't get any money at all when i kill monsters, how come? At least, i think you gain money by killing monsters. Or is this just admin set only?
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
Silencer123
Veteran Member
Join Date: Jul 2006
Location: Germany (GMT+1)
Old 07-19-2006 , 13:46   Re: SC STUFF PLUGIN
Reply With Quote #7

You just get money from Admins so far
But as you say this...
why not add a cvar amx_sc_buyammo_money_getfromkills <1|0>?
and if it is set to 1 u get money by killing monsters...
i try to build this! that will make me learn some new stuff.
how do i get info if a player has killed a monster? what monster? monster health?
(who else shot it? - For monsters with lots of health(bosses))
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 07-19-2006 at 13:49.
Silencer123 is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 07-19-2006 , 16:56   Re: SC STUFF PLUGIN
Reply With Quote #8

Perhaps there should be 2 ways to gain money.

1), Giving you money upon join of the server. You get xxxx of money, and you have to do with it the rest of the mission / map.

2), Gaining money as you said already by killing monsters. Perhaps it should be done by the damage you do on the monsters. So if you and your friend gives damage to monsters, you should both share the money, but depending who gets most money by depending who did most damage.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
Caesar
BANNED
Join Date: Nov 2004
Old 07-19-2006 , 21:41   Re: SC STUFF PLUGIN
Reply With Quote #9

i know kensai thinking same thing - starcraft? lol
Caesar is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 07-20-2006 , 02:26   Re: SC STUFF PLUGIN
Reply With Quote #10

So, is it possible to do? I hope it could be made a.s.a.p.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
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 19:52.


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