Raised This Month: $267 Target: $400

To help new plug-in

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Join Date: Feb 2020
Location: suzhou
Old 02-17-2020 , 11:49   Re: To help new plug-in
Reply With Quote #12

#include <amxmodx>

#define PLUGIN "Headshot Sound"
#define VERSION "1.0"
#define AUTHOR "Author"

new const soundfile[]="misc/head.wav" //soundfile name here

public plugin_init()
register_plugin(PLUGIN, VERSION, AUTHOR)

public plugin_precache() precache_sound(soundfile)

public client_death(iKiller, iVictim, iWpnIndex, iHitPlace)
if(iHitPlace == HIT_HEAD)
client_cmd(iKiller, "wav play %s", soundfile)
wy19850 is offline
Send a message via Skype™ to wy19850

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 23:52.

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