Raised This Month: $62 Target: $400
 15% 

AMX Cards


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-03-2006 , 13:39   AMX Cards
Reply With Quote #1

AMX Cards

Description
Every 5 minutes you can type "say /card" and you will get a random card
which is one of the following:

Death Card -- Instant death
Life Card -- 3 hp every second
Armor Card -- 5 ap every second
Mystery Card -- Get either noclip, godmode or invisibility (randomly chosen)
Infinite Ammo Card -- You get infinite ammo
Stripper Card -- You will be stripped of all weapons except the knife and your hp will be decreased to 15
Rainbow Card -- Your screen will flash in red, green and blue colors for the whole round
Speed Card -- Your speed is doubled
Slow Card -- Your speed is halfened
Power Card -- Your damage is doubled
Weakness Card -- Your damage is halfened
Gravity Card -- Your gravity is lowered to either 100, 200, 300 or 400
Nade Card -- You get unlimited nades!
Spy Card -- You get the other team's clothes
Money Card -- You get 100 $$ every second
Bankrupt Card -- You get bankrupt
Sunglasses Card -- You will not get blinded by flashgrenades

Invisible Card -- You get <amount> percent invisible in that round
Glow Card -- You will glow pink for the whole round

Modules required
Cstrike
Fun

User Commands
say /card -- Get a random card
say /cardhelp -- Brings up a MOTD window (assuming you have downloaded the help.txt below)

Cvars
card_amxcards 1
1: on
0: off

card_delay 300
60: 1 minute
120: 2 minutes etc.

card_mode 0
0: All Cards
1: Power Card, Death Card, Life Card, Mystery Card, Infinite Ammo Card and Stripper Card
2: Rainbow Card, Armor Card, Speed Card, Slow Card, Weakness Card and Gravity Card
3: Nade Card, Spy Card, Money Card, Bankrupt Card, Sunglasses Card, Invisible Card, Glow Card

card_deathcard 0
1: on
0: off

card_lifecard 0
1: on
0: off

card_lifecard_maxhealth 200

card_mysterycard 0
1: on
0: off

card_infiniteammocard 0
1: on
0: off

card_strippercard 0
1: on
0: off

card_rainbowcard 0
1: on
0: off

card_armorcard 0
1: on
0: off

card_armorcard_maxarmor 500

card_speedcard 0
1: on
0: off

card_slowcard 0
1: on
0: off

card_powercard 0
1: on
0: off

card_powercard_mult 2.0
1.0: no multiply ie. 50 * 1.0 = 50
2.0: damage * 2.0 and so on...

card_weaknesscard 0
1: on
0: off

card_nadecard 0
1: on
0: off

card_gravitycard 0
1: on
0: off

card_spycard 0
1: on
0: off

card_moneycard 0
1: on
0: off

card_moneycard_maxmoney 16000

card_moneycard_mpc 10 (Money Per Second)

card_bankruptcard 0
1: on
0: off

card_sunglassescard 0
1: on
0: off

card_invisiblecard 0
1: on
0: off

card_invisiblepercent 25

card_glowcard 0
1: on
0: off

Note, the card's shall always be turned to 0 if you use the card_mode cvar.

Changelog

1.5b
-The plugin will now work correctly. I had logevent_round_end(id) (lol)

1.5a
-It's only one card per round instead of a delay now

1.5
-Deleted the hudmessages
-Changed so all the cvars have same prefix

1.4
-Added cvar "cardmode" with 4 options.

1.3b
-Added Advertisement "This server is running AMX Cards version %s (/cardhelp for more info)" in chat every 5 minutes
-Added MOTD /cardhelp which brings up a window with all the cards and help

1.3a
-Added Invisible Card
-Added Glow Card

1.2b
-Added Money Card
-Added Bankrupt Card
-Added Sunglasses Card

1.2a
-Added Spy Card

1.1b
-Added Gravity Card
-Added Nade Card

1.1a
-Added Speed Card
-Added Slow Card
-Added Power Card
-Added Weakness Card

1.0b
-Added Armor Card
-Fixed the lifecard because Doombringer asked me to.

Credits
gr3ed - the original idea and some ideas for cards.
godlike - ideas for cards
dxteam - ideas for cards

I'd like to get some feedback from your servers.
Enjoy!

IMPORTANT! IF YOU WANT THE MOTD TO WORK YOU MUST DOWNLOAD
THE HELP.TXT BELOW AND PUT IT IN YOUR CSTRIKE FOLDER
Attached Files
File Type: txt help.txt (1.7 KB, 5109 views)
File Type: sma Get Plugin or Get Source (cards.sma - 9235 views - 12.6 KB)

Last edited by mateo10; 06-21-2007 at 05:36.
mateo10 is offline
neogeo
Senior Member
Join Date: Jul 2005
Old 12-03-2006 , 13:48   Re: AMX Cards
Reply With Quote #2

good work
neogeo is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 12-03-2006 , 14:21   Re: AMX Cards
Reply With Quote #3

nice
Alka is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 12-03-2006 , 14:33   Re: AMX Cards
Reply With Quote #4

Why should I use this plugin when I can use the one below?
http://forums.alliedmods.net/showthr...ight=roll+dice
stupok is offline
imported_Slayer
Senior Member
Join Date: Nov 2005
Old 12-03-2006 , 14:45   Re: AMX Cards
Reply With Quote #5

hmm... well this ones different.. you get different stuff then roll the dice..



good job mateo
imported_Slayer is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-03-2006 , 15:21   Re: AMX Cards
Reply With Quote #6

Thanks
Any feedback from your servers would be appreciated.
mateo10 is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 12-03-2006 , 15:29   Re: AMX Cards
Reply With Quote #7

Code:
public lifecard(id) {     new name[32]     get_user_name(id, name, 31)     set_hudmessage(0, 0, 255, 0.0, 0.3, 0, 6.0, 12.0)     show_hudmessage(id, "%s is given 3 hp every second!")         new health = get_user_health(id)     set_user_health(id, health+3)     set_task(1.0, "lifecard", id)     return PLUGIN_CONTINUE }
->
Code:
public give_life(id) {     new health = get_user_health(id)     set_user_health(id, health+3)     set_task(3.0, "give_life", id) } public lifecard(id) {     new name[32]     get_user_name(id, name, 31)     set_hudmessage(0, 0, 255, 0.0, 0.3, 0, 6.0, 12.0, 0.1, 0.2, -1)     show_hudmessage(id, "%s is given 3 hp every second!", name)     give_life(id)     return PLUGIN_CONTINUE }
Deviance is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-03-2006 , 15:35   Re: AMX Cards
Reply With Quote #8

Can you tell me why I have to do that?
mateo10 is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 12-03-2006 , 15:38   Re: AMX Cards
Reply With Quote #9

  • Your looping it infinite
  • it get's called every one sec instead of three
  • The set_hudmessage get's called all the time in the process
hope this make's it clear

btw it can be good to set a task on it
Deviance is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-03-2006 , 15:50   Re: AMX Cards [1.0b]
Reply With Quote #10

V 1.0b

-Added Armor Card
-Fixed the Life Card because Doombringer asked me to

(Download at top)
mateo10 is offline
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:42.


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