AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] kill Sound (https://forums.alliedmods.net/showthread.php?t=173240)

Xpawn 12-02-2011 12:51

[Help] kill Sound
 
Plugin 1:
PHP Code:

#include <amxmodx>
#include <amxmisc>


#define PLUGIN "Hudmessage"
#define VERSION "1.0"
#define AUTHOR "Xpawn"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say hi""pawn_hi")
    
register_clcmd("say no""pawn_no")
    
register_clcmd("say yes""pawn_yes")
}


public 
pawn_hi(id)
{
    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(id"Hi Client are you Funny?")
    return 
PLUGIN_CONTINUE
}

public 
pawn_yes(id)
{
    
set_hudmessage(00255, -1.0, -1.0)
    
show_hudmessage(id"I'm funny too :)")
    return 
PLUGIN_CONTINUE
}

public 
pawn_no(id)
{
    
set_hudmessage(25500, -1.00.01)
    
show_hudmessage(id":[ you are not Funyy but me I'm Funny")
    return 
PLUGIN_CONTINUE


Now help me Please
Quote:

HIT_HEAD
set_hudmessage(255, 0, 0, -1.0, 0.1)
show_hudmessage(id, "Headshot")

HIT_CHEST
set_hudmessage(255, 0, 0, -1.0, 0.1)
show_hudmessage(attacker, "Killing Spree")

HIT_STOMACH
set_hudmessage(255, 0, 0, -1.0, 0.1)
show_hudmessage(attacker, "monsterkill")

HIT_LEFTARM Or HIT_RIGHTARM
set_hudmessage(255, 0, 0, -1.0, 0.1)
show_hudmessage(attacker, "Arm kill")

HIT_LEFTLEG Or HIT_RIGHTLEG
set_hudmessage(255, 0, 0, -1.0, 0.1)
show_hudmessage(attacker, "Leg kill")



All times are GMT -4. The time now is 08:28.

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