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

Get damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tonda
Senior Member
Join Date: Aug 2009
Old 12-14-2010 , 16:32   Get damage
Reply With Quote #1

Hi please help, how can i create plugin. If enemy shot on me (i get damage) i hear mine sound on the precache ?
Tonda is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 12-15-2010 , 02:08   Re: Get damage
Reply With Quote #2

use hamtakedamage ...
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
Callesson
Member
Join Date: Jan 2010
Old 12-15-2010 , 05:04   Re: Get damage
Reply With Quote #3

Ops, something happened with the web, post will come below!
__________________

Last edited by Callesson; 12-15-2010 at 05:08.
Callesson is offline
Callesson
Member
Join Date: Jan 2010
Old 12-15-2010 , 05:07   Re: Get damage
Reply With Quote #4

Something like this

PHP Code:
public plugin_init() 
{
register_plugin(PLUGINVERSIONAUTHOR)
RegisterHamHam_TakeDamage "player" "Event"0);
}
public 
Event(You need some things here I guesssearch it up)
{
   
//Make sound

Here http://wiki.amxmodx.org/HamSandwich_...X_Madsfod_X%29
__________________

Last edited by Callesson; 12-15-2010 at 18:23.
Callesson is offline
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 12-16-2010 , 11:30   Re: Get damage
Reply With Quote #5

Are you only wanting to replace.the pain sounds?
If so it would be better to catch the sounds with the emitsound forward and filter out to only catch pain sounds.

Btw, you don't have to use the hamsandwich module for everything. You can use the Damage event which is already in the core.
__________________
It's a mystery.
Mini_Midget is offline
Old 12-16-2010, 11:31
Mini_Midget
This message has been deleted by Mini_Midget. Reason: double post
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 12-16-2010 , 15:54   Re: Get damage
Reply With Quote #6

Quote:
Originally Posted by Mini_Midget View Post
Are you only wanting to replace.the pain sounds?
If so it would be better to catch the sounds with the emitsound forward and filter out to only catch pain sounds.

Btw, you don't have to use the hamsandwich module for everything. You can use the Damage event which is already in the core.
i love ham ... xD
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
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 13:27.


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