AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   To help new plug-in (https://forums.alliedmods.net/showthread.php?t=321496)

wy19850 02-13-2020 16:43

To help new plug-in
 
Only to be head, dare thanks in advance

OciXCrom 02-13-2020 17:31

Re: To help new plug-in
 
What?! Google Translate doesn't work that well I see.

You want only headshots in your server?

wy19850 02-14-2020 06:32

Re: To help new plug-in
 
The plug that will hear the sound if you are shot in the head, would anyone like to do it

wy19850 02-14-2020 06:33

Re: To help new plug-in
 
If you hit him in the head and die, you hear the sound

wy19850 02-14-2020 06:43

Re: To help new plug-in
 
Quote:

Originally Posted by OciXCrom (Post 2683691)
What?! Google Translate doesn't work that well I see.

You want only headshots in your server?

Hit the enemy in the head dead, hear the sound

wy19850 02-14-2020 06:45

Re: To help new plug-in
 
Expect someone nice to finish this plugin

wy19850 02-17-2020 07:50

Re: To help new plug-in
 
Hit the head dead, make a sound, hope someone help, thank you

Sanjay Singh 02-17-2020 09:12

Re: To help new plug-in
 
Quote:

Originally Posted by wy19850 (Post 2684107)
Hit the head dead, make a sound, hope someone help, thank you

Try
PHP Code:

#include <amxmodx>

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

new const soundfile[]="misc/headshot.mp3" //soundfile name here

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
plugin_precache()    precache_sound(soundfile)

public 
client_death(iKilleriVictimiWpnIndexiHitPlace)
{
    if(
iHitPlace == HIT_HEAD)
    {
        
client_cmd(iKiller"mp3 play %s"soundfile)
    }



wy19850 02-17-2020 11:40

Re: To help new plug-in
 
Quote:

Originally Posted by Sanjay Singh (Post 2684119)
Try
PHP Code:

#include <amxmodx>

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

new const soundfile[]="misc/headshot.mp3" //soundfile name here

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
plugin_precache()    precache_sound(soundfile)

public 
client_death(iKilleriVictimiWpnIndexiHitPlace)
{
    if(
iHitPlace == HIT_HEAD)
    {
        
client_cmd(iKiller"mp3 play %s"soundfile)
    }



CS1.5 and CS1.6, WAV and MP3 players try doesn't work, please continue to improve, thank you

wy19850 02-17-2020 11:46

Re: To help new plug-in
 
cstrike/addons/amxmodx/plugins/head_wav.amxx

cstrike/addons/amxmodx/configs/plugins.ini/head_wav.amxx

cstrike/sound/misc/head


All times are GMT -4. The time now is 03:51.

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