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

Help updating plugin to work with SH


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
3volution
Junior Member
Join Date: Jun 2006
Old 04-16-2012 , 15:15   Help updating plugin to work with SH
Reply With Quote #1

As the title says, I could use a bit of help trying to convert a plugin to work with SuperHero.
The plugin is called kill_assist (by Digi), which gives players kills/assist credit when they do a specified amount of damage to an enemy.

The problem with the plugin is that it uses read_data(4) to grab the weapon name when a kill is made. If a player is killed with something that returns a custom weapon description, it just looks as if the user suicided and the console only says "<player> has died."

I have uploaded a clean version with just basic SH stuff added (giving xp for assists, VIP bonus xp stuff, etc.). Any help modifying this to be more efficient and work correctly with custom weapon descriptions would be greatly appreciated!
Attached Files
File Type: sma Get Plugin or Get Source (kill_assist_xp.sma - 602 views - 15.3 KB)
3volution is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 04-16-2012 , 17:27   Re: Help updating plugin to work with SH
Reply With Quote #2

Use the forward sh_client_death instead. That gives you the information needed, and if a player is killed with a power, that is sent to it too.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
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 02:37.


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