Raised This Month: $ Target: $400
 0% 

PAIN_SOUND help pls


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mix97mix
Member
Join Date: Sep 2011
Old 10-03-2011 , 08:58   Re: PAIN_SOUND help pls
Reply With Quote #6

Try this?

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

#define PLUGIN "Zombie"
#define VERSION "1.0"
#define AUTHOR "MiZi"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("Damage", "PAIN_SOUND", "b", "2!0", "3=0", "4!0")
register_event("DeathMsg","DEATH_SOUND","a")
}
// Zombie Attributes
new const zclass_name[] = { "Zombie" }
new const zclass_info[] = { "Super schopnosti" }
new const zclass_model[] = { "zombie_source" }
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" }
new const PAIN_SOUND[] = { "infection_6.wav" }
new const DEATH_SOUND[] = { "zombie_die1.wav" }
const zclass_health = 6000
const zclass_speed = 300
const Float:zclass_gravity = 0.8
const Float:zclass_knockback = 1.0

/*============================================ ================================*/

public plugin_precache()
{

// Register class
zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
engfunc(EngFunc_PrecacheSound, PAIN_SOUND)
engfunc(EngFunc_PrecacheSound, DEATH_SOUND)
}
public PAIN_SOUND(id)
{
client_cmd(id, "spk %s", PAIN_SOUND)
}
public DEATH_SOUND(id)
{
new attacker = read_data(1)
new victim = read_data(2)

client_cmd(attacker, "spk %s", DEATH_SOUND)
client_cmd(victim, "spk %s", DEATH_SOUND)
}
mix97mix is offline
Send a message via MSN to mix97mix Send a message via Skype™ to mix97mix
 



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 19:41.


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