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

Auto Loot the dead


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   EKS (166)
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 08-25-2005 , 21:11   Auto Loot the dead
Reply With Quote #1

Looting the Dead

Credits:
This plugin was originally made by Rick O`Shae then ported by kingpin
thanx to emp' for the help with the loot sprite

Description:
When a player dies there will be a loot bag sprite placed over their dead body. When you get close to the dead body you will automatically loot them. You will be given a random amount of the dead persons money and a random weapon/ammo/equipment.

Includes:
Code:
#include <amxmodx> #include <amxmisc> #include <engine> #include <fun> #include <cstrike>


Cvar:

amx_loot 1 - on /0 - off

Sprite Directory:
Code:
sprites/loot_bag.spr
Screenshot: (click to enlarge)
Attached Files
File Type: zip sprites.zip (1.8 KB, 6315 views)
File Type: sma Get Plugin or Get Source (looting.sma - 10100 views - 13.3 KB)
__________________
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-25-2005 , 21:14  
Reply With Quote #2

very nice, i already have ammo drop, nades, but not armor, that vest is huge. ima try this tho, that could eliminate all of them except the nades drop (i couldnt live without). So you only get a random # not what they have?
__________________
bmann_420 is offline
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 08-25-2005 , 21:19  
Reply With Quote #3

you'll get a random amount of the dead persons money and any one of the guns/ammo/armor/nades/shield
__________________
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-25-2005 , 21:20  
Reply With Quote #4

will it actually take from the deceased's money? if not, thatd be a cool thing to add
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 08-25-2005 , 21:21  
Reply With Quote #5

yup it will give you the random amount that it takes away:

Code:
cs_set_user_money(ptd,cs_get_user_money(ptd) + random_money) cs_set_user_money(id,cs_get_user_money(id) - random_money)
__________________
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-25-2005 , 21:23  
Reply With Quote #6

ahhh... that is cool
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 08-26-2005 , 13:10  
Reply With Quote #7

Updated first post with a new version

fixes this error:
Quote:
L 08/26/2005 - 10:25:13: [AMXX] [ENGINE] Invalid player 5 (not in-game)
L 08/26/2005 - 10:25:13: [AMXX] Displaying call trace (plugin "cstrike\addons\amxmodx\plugins\looting.amxx" )
L 08/26/2005 - 10:25:13: [AMXX] [0] looting.sma::pfn_touch (line 23)
-thanx for approval EKS
__________________
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 09-03-2005 , 14:47  
Reply With Quote #8

added screenshot to first post
__________________
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
Fett
Member
Join Date: Sep 2004
Old 09-06-2005 , 22:40  
Reply With Quote #9

I enjoy this plugin, however when anybody in my server runs across a moneybag, they pause for a second or two. Is that supposed to happen?

Thanks
Fett is offline
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 09-06-2005 , 22:42  
Reply With Quote #10

it should play the loot sound then stop them for 1 second (yes its intended)

think that should be changed?
__________________
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
Reply



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 09:04.


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