AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   AMX Cards (https://forums.alliedmods.net/showthread.php?t=48063)

mateo10 12-03-2006 13:39

AMX Cards
 
20 Attachment(s)
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

neogeo 12-03-2006 13:48

Re: AMX Cards
 
good work :D

Alka 12-03-2006 14:21

Re: AMX Cards
 
nice :D

stupok 12-03-2006 14:33

Re: AMX Cards
 
Why should I use this plugin when I can use the one below?
http://forums.alliedmods.net/showthr...ight=roll+dice

imported_Slayer 12-03-2006 14:45

Re: AMX Cards
 
hmm... well this ones different.. you get different stuff then roll the dice..



good job mateo

mateo10 12-03-2006 15:21

Re: AMX Cards
 
Thanks :D
Any feedback from your servers would be appreciated.

Deviance 12-03-2006 15:29

Re: AMX Cards
 
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 }

mateo10 12-03-2006 15:35

Re: AMX Cards
 
Can you tell me why I have to do that?

Deviance 12-03-2006 15:38

Re: AMX Cards
 
  • 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

mateo10 12-03-2006 15:50

Re: AMX Cards [1.0b]
 
V 1.0b

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

(Download at top)


All times are GMT -4. The time now is 02:15.

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