Raised This Month: $ Target: $400
 0% 

Plugin "NST_Effects_Killer.amxx" failed to load: Plugin uses an unknown function (nam


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 08-24-2013 , 08:46   Re: Plugin "NST_Effects_Killer.amxx" failed to load: Plugin uses an unknown function
Reply With Quote #1

Add the code in php or pawn please.
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)
Winchester90 is offline
jacktoic
Junior Member
Join Date: Jul 2013
Old 08-24-2013 , 15:48   Re: Plugin "NST_Effects_Killer.amxx" failed to load: Plugin uses an unknown function
Reply With Quote #2

bro i do not know the good posting rights on this site so I copied the code of the plugin
jacktoic is offline
Old 08-24-2013, 17:13
jacktoic
This message has been deleted by jacktoic.
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 08-24-2013 , 17:28   Re: Plugin "NST_Effects_Killer.amxx" failed to load: Plugin uses an unknown function
Reply With Quote #4

use

[php] your codes... [ /php]

[ /php] must be without spaces
akcaliberg is offline
Anti
Senior Member
Join Date: Jul 2012
Location: sky
Old 08-24-2013 , 19:19   Re: Plugin "NST_Effects_Killer.amxx" failed to load: Plugin uses an unknown function
Reply With Quote #5

have you in the include folder the includes "nst_player", "nst_zombie" and "nst_wpn"?
Anti is offline
Send a message via Skype™ to Anti
jacktoic
Junior Member
Join Date: Jul 2013
Old 08-25-2013 , 20:40   Re: Plugin "NST_Effects_Killer.amxx" failed to load: Plugin uses an unknown function
Reply With Quote #6

PHP Code:
#include <amxmodx>
#include <fakemeta>

#include <nst_player>
#include <nst_zombie>
#include <nst_wpn>


#define PLUGIN "Effects Killer"
#define VERSION "3.0"
#define AUTHOR "NST"

#define LEVELS 8
new kills[33], Float:timekill[33], revenge[33], oneshot[33]
new 
iconstatusg_firstkillg_lastkill
new g_FM_Running
new cvar_time_killcvar_typecvar_time_show

new const sound_combo[][] =
{
"vox/kill/%s/kill_1_%s.wav"
"vox/kill/%s/kill_2_%s.wav"
"vox/kill/%s/kill_3_%s.wav"
"vox/kill/%s/kill_4_%s.wav"
"vox/kill/%s/kill_5_%s.wav"
"vox/kill/%s/kill_6_%s.wav"
"vox/kill/%s/kill_7_%s.wav"
"vox/kill/%s/kill_8_%s.wav"
"vox/kill/%s/revenge_%s.wav"
"vox/kill/%s/headshot_%s.wav"
"vox/kill/%s/knife_%s.wav"
"vox/kill/%s/grenade_%s.wav"
}
enum(+= 100)
{
TASK_HIDESPR 2000
}
#define ID_HIDESPR (taskid - TASK_HIDESPR)
enum
{
HUD_SOUND 1,
HUD_MSGTEXT,
HUD_SPRNAME
}
enum
{
KILL_1 1,
KILL_2,
KILL_3,
KILL_4,
KILL_5,
KILL_6,
KILL_7,
KILL_8,
KILL_FIRST,
C4_DEFUSE,
C4_SET
}
enum
{
KILL_NONE 51,
KILL_HEGRENADE,
KILL_HEADSHOT,
KILL_KNIFE,
KILL_LAST,
KILL_REVENGE,
WALLSHOT,
WALLSHOT_HEADSHOT,
ONESHOT_2KILL,
ONESHOT_3KILL
}


public 
plugin_precache()
{
for (new 
1<= 2i++)
{
new 
sex[32]
if (
== 1sex "woman"
else sex "man"

for (new 0<= 11e++)
{
new 
sound_ct[100], sound_t[100], team_ct[32] = "ct"team_t[32] = "t"
format(sound_ct99sound_combo[e], sexteam_ct)
format(sound_t99sound_combo[e], sexteam_t)
//precache_sound(sound_ct)
//precache_sound(sound_t)
}

}
//precache_sound("misc/MultiKill/C4_Defuse.wav")
//precache_sound("misc/MultiKill/C4_Set.wav")

}
public 
plugin_init()
{
register_plugin(PLUGINVERSIONAUTHOR)

register_event("HLTV""event_round_start""a""1=0""2=0")
register_event("DeathMsg""event_DeathMsg""a")

cvar_time_kill register_cvar("nst_ek_time_kill","3")
cvar_type register_cvar("nst_ek_type","1")
cvar_time_show register_cvar("nst_ek_time_show","2.0")

iconstatus get_user_msgid("StatusIcon")
g_FM_Running is_module_loaded("FakeMeta")
}
public 
event_round_start()
{
new 
reset_value[33]

g_firstkill 1
kills 
reset_value
revenge 
reset_value
oneshot 
reset_value
}
public 
event_DeathMsg()
{
// get value data
static killerheadshotweapon[32], wpnindexvictim
killer 
read_data(1)
victim read_data(2)
headshot read_data(3)
read_data(4weaponcharsmax(weapon))
if (
equali(weapon"grenade")) format(weaponcharsmax(weapon), "hegrenade")
format(weaponcharsmax(weapon), "weapon_%s"weapon)
wpnindex get_weaponid(weapon)

// none killer = victim
if (!is_user_connected(killer) || !is_user_connected(victim) || killer==victim) return;
if (
get_user_team(killer)==get_user_team(victim) && !get_cvar_num("mp_friendlyfire")) return;

// reset kills of victim
kills[victim] = 0

// set revenge of victim
revenge[victim] = killer

// get num kill & one shoot multikill
new Float:timeleft get_gametime()-timekill[killer]
if (
timeleft <= get_pcvar_float(cvar_time_kill)) kills[killer] += 1
else kills[killer] = 1
if (kills[killer]>LEVELSkills[killer] = 1
timekill
[killer] = get_gametime()

if (!
oneshot[killer]) oneshot[killer] = 1
if (!timeleft && wpnindex != CSW_HEGRENADEoneshot[killer] += 1
else oneshot[killer] = 1
oneshot
[killer] = min(3oneshot[killer])
//client_print(killer, print_chat, "%i", oneshot[killer])

// get last kill
new players_ct[32], players_t[32], ictite
get_players
(players_ct,ict,"ae","CT"
get_players(players_t,ite,"ae","TERRORIST")
if (
ict == || ite == 0g_lastkill 1

// check revenge
new g_revenge
if (victim == revenge[killer])
{
g_revenge 1
revenge
[killer] = 0
}

// hud 1
new check_sound
if (oneshot[killer] > 1)
{
if (
oneshot[killer] == 2show_hud(killerONESHOT_2KILL)
else if (
oneshot[killer] == 3show_hud(killerONESHOT_3KILL)
}
else if (
g_lastkill)
{
g_lastkill 0
show_hud
(killerKILL_LAST)
}    
else if (
g_revenge)
{
play_sound(killerKILL_REVENGE)
show_hud(killerKILL_REVENGE)
}
else if ((
wpnindex != CSW_KNIFE) && (wpnindex != CSW_HEGRENADE) && !can_see_fm(killervictim)) 
{
if (
headshot)
{
if (
kills[killer] == 1)
{
play_sound(killerKILL_HEADSHOT)
check_sound 1
}
show_hud(killerWALLSHOT_HEADSHOT)
}
else 
show_hud(killerWALLSHOT)
}
else if (
headshot && wpnindex)
{
if (
kills[killer] == 1)
{
play_sound(killerKILL_HEADSHOT)
check_sound 1
}
show_hud(killerKILL_HEADSHOT)
}
else if (
wpnindex == CSW_KNIFE)
{
if (
kills[killer] == 1)
{
play_sound(killerKILL_KNIFE)
check_sound 1
}
show_hud(killerKILL_KNIFE)
}
else if (
wpnindex == CSW_HEGRENADE)
{
if (
kills[killer] == 1)
{
play_sound(killerKILL_HEGRENADE)
check_sound 1
}
show_hud(killerKILL_HEGRENADE)
}
else
{
show_hud(killerKILL_NONE)
}


// hud 2
if (g_firstkill)
{
g_firstkill 0
show_hud
(killerKILL_FIRST)
if (!
check_soundplay_sound(killerKILL_1)
}
else
{
show_hud(killerkills[killer])
if (!
check_soundplay_sound(killerkills[killer])
}

}
public 
bomb_defused(id)
{
show_hud(idC4_DEFUSE)
play_sound(idC4_DEFUSE)
}
public 
bomb_planted(id)
{
show_hud(idC4_SET)
play_sound(idC4_SET)
}


// #################### SHOW HUD ####################
show_hud(ididhud)
{
if (!
is_user_connected(id)) return;

new 
type_cvar get_pcvar_num(cvar_type)
if (
type_cvar == 1show_spr(ididhud)
else if (
type_cvar == 2show_msg(ididhud)
}
play_sound(ididhud)
{
if (!
is_user_connected(id)) return;

new 
sound[64], team[32], sex[32], cs_team
if (nst_get_mod_runing()==NST_MOD_ZB3cs_team nst_get_user_team(id)
else 
cs_team get_user_team(id)

if (
cs_team==1team "T"
else team "CT"
if (get_user_sex(id) == 2sex "woman"
else sex "man"
format(soundcharsmax(sound), "%s"get_hud_data(idhudHUD_SOUND))
format(soundcharsmax(sound), soundsexteam)

PlaySound(idsound)
}

show_msg(ididhud)
{
new 
msg[64]
format(msgcharsmax(msg), "%s"get_hud_data(idhudHUD_MSGTEXT))

set_hudmessage(02040, -1.00.6510.023.00.30.32)
show_hudmessage(idmsg)
}
show_spr(ididspr)
{
if (
idspr >= KILL_NONEhide_spr(id2)
else 
hide_spr(id1)

spr_action(ididspr1)

if (
idspr KILL_NONE)
{
if (
task_exists(id+TASK_HIDESPR)) remove_task(id+TASK_HIDESPR)
set_task(get_pcvar_float(cvar_time_show), "task_hidehud"id+TASK_HIDESPR)
}

public 
task_hidehud(taskid)
{
new 
id ID_HIDESPR
hide_spr
(id2)
hide_spr(id1)

}
hide_spr(ididspr)
{
if (
idspr == 1)
{
for (new 
KILL_1<= C4_SETi++)
{
spr_action(idi0)
}
}
else if (
idspr == 2)
{
for (new 
KILL_NONE<= ONESHOT_3KILLi++)
{
spr_action(idi0)
}
}

spr_action(idsprrun)
{    
new 
sprname[64]
format(sprnamecharsmax(sprname), "%s"get_hud_data(sprHUD_SPRNAME))

message_begin(MSG_ONE,iconstatus,{0,0,0},id)
write_byte(run// status (0=hide, 1=show, 2=flash)
write_string(sprname// sprite name
message_end()
}
get_hud_data(idhudtype)
{
new 
value[64], sprname[33], sound[64], msgtext[32]

switch (
idhud)
{
case 
KILL_1:
{
sprname "kill_1"
sound "vox/kill/%s/kill_1_%s"
msgtext "1 KILL"
}
case 
KILL_2:
{
sprname "kill_2"
sound "vox/kill/%s/kill_2_%s"
msgtext "2 KILL"
}
case 
KILL_3:
{
sprname "kill_3"
sound "vox/kill/%s/kill_3_%s"
msgtext "3 KILL"
}
case 
KILL_4:
{
sprname "kill_4"
sound "vox/kill/%s/kill_4_%s"
msgtext "4 KILL"
}
case 
KILL_5:
{
sprname "kill_5"
sound "vox/kill/%s/kill_5_%s"
msgtext "5 KILL"
}
case 
KILL_6:
{
sprname "kill_6"
sound "vox/kill/%s/kill_6_%s"
msgtext "6 KILL"
}
case 
KILL_7:
{
sprname "kill_7"
sound "vox/kill/%s/kill_7_%s"
msgtext "7 KILL"
}
case 
KILL_8:
{
sprname "kill_8"
sound "vox/kill/%s/kill_8_%s"
msgtext "8 KILL"
}
case 
KILL_FIRST:
{
sprname "kill_first"
msgtext "FIRST KILL"
}
case 
C4_DEFUSE:
{
sprname "c4_defuse"
sound "vox/kill/c4_defuse"
}
case 
C4_SET:
{
sprname "c4_set"
sound "vox/kill/c4_set"
}


case 
KILL_NONE:
{
sprname "kill_none"
}
case 
KILL_HEGRENADE:
{
sprname "kill_he"
sound "vox/kill/%s/grenade_%s"
msgtext "GRENADE KILL"
}
case 
KILL_HEADSHOT:
{
sprname "kill_headshot"
sound "vox/kill/%s/headshot_%s"
msgtext "HEADSHOT"
}
case 
KILL_KNIFE:
{
sprname "kill_knife"
sound "vox/kill/%s/knife_%s"
msgtext "KNIFE KILL"
}
case 
KILL_LAST:
{
sprname "kill_last"
}
case 
KILL_REVENGE:
{
sprname "kill_revenge"
sound "vox/kill/%s/revenge_%s"
msgtext "REVENGE"
}
case 
WALLSHOT:
{
sprname "wall_shot"
msgtext "WALLSHOOT"
}
case 
WALLSHOT_HEADSHOT:
{
sprname "wall_shot_hs"
msgtext "WALLSHOOT HEADSHOT"
}
case 
ONESHOT_2KILL:
{
sprname "1shot_2kill"
msgtext "ONE SHOT 2 KILL"
}
case 
ONESHOT_3KILL:
{
sprname "1shot_3kill"
msgtext "ONE SHOT MULTIKILL"
}
}

if (
type==HUD_SOUNDformat(valuecharsmax(value), "%s"sound)
else if (
type==HUD_MSGTEXTformat(valuecharsmax(value), "%s"msgtext)
else if (
type==HUD_SPRNAMEformat(valuecharsmax(value), "%s"sprname)

return 
value;
}
get_user_sex(id)
{
new 
mod_runingsex
mod_runing 
nst_get_mod_runing()
if ( (
mod_runing == NST_MOD_ZB3 || mod_runing == NST_MOD_ZBU || mod_runing == NST_MOD_ZBS) && nst_zb_get_user_zombie(id) )
{
sex nst_zb_get_user_sex(id)
}
else
{
sex nst_get_user_sex(id)
}

return 
sex;
}
// Plays a sound on clients
PlaySound(id, const sound[])
{
if (
equal(sound[strlen(sound)-4], ".mp3"))
client_cmd(id"mp3 play ^"sound/%s^""sound)
else
client_cmd(id"spk ^"%s^""sound)
}
bool:can_see_fm(entindex1entindex2)
{
if ((!
g_FM_Running) || !entindex1 || !entindex2)
return 
false
// new ent1, ent2

if (pev_valid(entindex1) && pev_valid(entindex1))
{
new 
flags pev(entindex1pev_flags)
if (
flags EF_NODRAW || flags FL_NOTARGET)
{
return 
false
}

new 
Float:lookerOrig[3]
new 
Float:targetBaseOrig[3]
new 
Float:targetOrig[3]
new 
Float:temp[3]

pev(entindex1pev_originlookerOrig)
pev(entindex1pev_view_ofstemp)
lookerOrig[0] += temp[0]
lookerOrig[1] += temp[1]
lookerOrig[2] += temp[2]

pev(entindex2pev_origintargetBaseOrig)
pev(entindex2pev_view_ofstemp)
targetOrig[0] = targetBaseOrig [0] + temp[0]
targetOrig[1] = targetBaseOrig [1] + temp[1]
targetOrig[2] = targetBaseOrig [2] + temp[2]

engfunc(EngFunc_TraceLinelookerOrigtargetOrig0entindex10// checks the had of seen player
if (get_tr2(0TraceResult:TR_InOpen) && get_tr2(0TraceResult:TR_InWater))
{
return 
false

else 
{
new 
Float:flFraction
get_tr2
(0TraceResult:TR_flFractionflFraction)
if (
flFraction == 1.0 || (get_tr2(0TraceResult:TR_pHit) == entindex2))
{
return 
true
}
else
{
targetOrig[0] = targetBaseOrig [0]
targetOrig[1] = targetBaseOrig [1]
targetOrig[2] = targetBaseOrig [2]
engfunc(EngFunc_TraceLinelookerOrigtargetOrig0entindex10// checks the body of seen player
get_tr2(0TraceResult:TR_flFractionflFraction)
if (
flFraction == 1.0 || (get_tr2(0TraceResult:TR_pHit) == entindex2))
{
return 
true
}
else
{
targetOrig[0] = targetBaseOrig [0]
targetOrig[1] = targetBaseOrig [1]
targetOrig[2] = targetBaseOrig [2] - 17.0
engfunc
(EngFunc_TraceLinelookerOrigtargetOrig0entindex10// checks the legs of seen player
get_tr2(0TraceResult:TR_flFractionflFraction)
if (
flFraction == 1.0 || (get_tr2(0TraceResult:TR_pHit) == entindex2))
{
return 
true
}
}
}
}
}
return 
false
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 
jacktoic is offline
jacktoic
Junior Member
Join Date: Jul 2013
Old 08-25-2013 , 20:52   Re: Plugin "NST_Effects_Killer.amxx" failed to load: Plugin uses an unknown function
Reply With Quote #7

the code's there guys please help me to solve this error plugin
jacktoic is offline
jacktoic
Junior Member
Join Date: Jul 2013
Old 08-26-2013 , 08:56   NST_Effects_Killer
Reply With Quote #8

people come here to post a very good plugin for your serves more it is giving a problem when you enter the game appears nst_get_use_sex check your modulues. ini and I would like you guys concertase this error this plugin to use it in good

PHP Code:
#include <amxmodx>
#include <fakemeta>

#include <nst_player>
#include <nst_zombie>
#include <nst_wpn>


#define PLUGIN "Effects Killer"
#define VERSION "3.0"
#define AUTHOR "NST"

#define LEVELS 8
new kills[33], Float:timekill[33], revenge[33], oneshot[33]
new 
iconstatusg_firstkillg_lastkill
new g_FM_Running
new cvar_time_killcvar_typecvar_time_show

new const sound_combo[][] =
{
    
"vox/kill/%s/kill_1_%s.wav"
    
"vox/kill/%s/kill_2_%s.wav"
    
"vox/kill/%s/kill_3_%s.wav"
    
"vox/kill/%s/kill_4_%s.wav"
    
"vox/kill/%s/kill_5_%s.wav"
    
"vox/kill/%s/kill_6_%s.wav"
    
"vox/kill/%s/kill_7_%s.wav"
    
"vox/kill/%s/kill_8_%s.wav"
    
"vox/kill/%s/revenge_%s.wav"
    
"vox/kill/%s/headshot_%s.wav"
    
"vox/kill/%s/knife_%s.wav"
    
"vox/kill/%s/grenade_%s.wav"
}
enum(+= 100)
{
    
TASK_HIDESPR 2000
}
#define ID_HIDESPR (taskid - TASK_HIDESPR)
enum
{
    
HUD_SOUND 1,
    
HUD_MSGTEXT,
    
HUD_SPRNAME
}
enum
{
    
KILL_1 1,
    
KILL_2,
    
KILL_3,
    
KILL_4,
    
KILL_5,
    
KILL_6,
    
KILL_7,
    
KILL_8,
    
KILL_FIRST,
    
C4_DEFUSE,
    
C4_SET
}
enum
{
    
KILL_NONE 51,
    
KILL_HEGRENADE,
    
KILL_HEADSHOT,
    
KILL_KNIFE,
    
KILL_LAST,
    
KILL_REVENGE,
    
WALLSHOT,
    
WALLSHOT_HEADSHOT,
    
ONESHOT_2KILL,
    
ONESHOT_3KILL
}


public 
plugin_precache()
{
    for (new 
1<= 2i++)
    {
        new 
sex[32]
        if (
== 1sex "woman"
        
else sex "man"
        
        
for (new 0<= 11e++)
        {
            new 
sound_ct[100], sound_t[100], team_ct[32] = "ct"team_t[32] = "t"
            
format(sound_ct99sound_combo[e], sexteam_ct)
            
format(sound_t99sound_combo[e], sexteam_t)
            
//precache_sound(sound_ct)
            //precache_sound(sound_t)
        
}
        
    }
    
//precache_sound("misc/MultiKill/C4_Defuse.wav")
    //precache_sound("misc/MultiKill/C4_Set.wav")
    
}
public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
register_event("DeathMsg""event_DeathMsg""a")
    
    
cvar_time_kill register_cvar("nst_ek_time_kill","3")
    
cvar_type register_cvar("nst_ek_type","1")
    
cvar_time_show register_cvar("nst_ek_time_show","2.0")
    
    
iconstatus get_user_msgid("StatusIcon")
    
g_FM_Running is_module_loaded("FakeMeta")
}
public 
event_round_start()
{
    new 
reset_value[33]

    
g_firstkill 1
    kills 
reset_value
    revenge 
reset_value
    oneshot 
reset_value
}
public 
event_DeathMsg()
{
    
// get value data
    
static killerheadshotweapon[32], wpnindexvictim
    killer 
read_data(1)
    
victim read_data(2)
    
headshot read_data(3)
    
read_data(4weaponcharsmax(weapon))
    if (
equali(weapon"grenade")) format(weaponcharsmax(weapon), "hegrenade")
    
format(weaponcharsmax(weapon), "weapon_%s"weapon)
    
wpnindex get_weaponid(weapon)
    
    
// none killer = victim
    
if (!is_user_connected(killer) || !is_user_connected(victim) || killer==victim) return;
    if (
get_user_team(killer)==get_user_team(victim) && !get_cvar_num("mp_friendlyfire")) return;
    
    
// reset kills of victim
    
kills[victim] = 0

    
// set revenge of victim
    
revenge[victim] = killer

    
// get num kill & one shoot multikill
    
new Float:timeleft get_gametime()-timekill[killer]
    if (
timeleft <= get_pcvar_float(cvar_time_kill)) kills[killer] += 1
    
else kills[killer] = 1
    
if (kills[killer]>LEVELSkills[killer] = 1
    timekill
[killer] = get_gametime()

    if (!
oneshot[killer]) oneshot[killer] = 1
    
if (!timeleft && wpnindex != CSW_HEGRENADEoneshot[killer] += 1
    
else oneshot[killer] = 1
    oneshot
[killer] = min(3oneshot[killer])
    
//client_print(killer, print_chat, "%i", oneshot[killer])
    
    // get last kill
    
new players_ct[32], players_t[32], ictite
    get_players
(players_ct,ict,"ae","CT")   
    
get_players(players_t,ite,"ae","TERRORIST")
    if (
ict == || ite == 0g_lastkill 1
    
    
// check revenge
    
new g_revenge
    
if (victim == revenge[killer])
    {
        
g_revenge 1
        revenge
[killer] = 0
    
}

    
// hud 1
    
new check_sound
    
if (oneshot[killer] > 1)
    {
        if (
oneshot[killer] == 2show_hud(killerONESHOT_2KILL)
        else if (
oneshot[killer] == 3show_hud(killerONESHOT_3KILL)
    }
    else if (
g_lastkill)
    {
        
g_lastkill 0
        show_hud
(killerKILL_LAST)
    }    
    else if (
g_revenge)
    {
        
play_sound(killerKILL_REVENGE)
        
show_hud(killerKILL_REVENGE)
    }
    else if ((
wpnindex != CSW_KNIFE) && (wpnindex != CSW_HEGRENADE) && !can_see_fm(killervictim)) 
    {
        if (
headshot)
        {
            if (
kills[killer] == 1)
            {
                
play_sound(killerKILL_HEADSHOT)
                
check_sound 1
            
}
            
show_hud(killerWALLSHOT_HEADSHOT)
        }
        else 
show_hud(killerWALLSHOT)
    }
    else if (
headshot && wpnindex)
    {
        if (
kills[killer] == 1)
        {
            
play_sound(killerKILL_HEADSHOT)
            
check_sound 1
        
}
        
show_hud(killerKILL_HEADSHOT)
    }
    else if (
wpnindex == CSW_KNIFE)
    {
        if (
kills[killer] == 1)
        {
            
play_sound(killerKILL_KNIFE)
            
check_sound 1
        
}
        
show_hud(killerKILL_KNIFE)
    }
    else if (
wpnindex == CSW_HEGRENADE)
    {
        if (
kills[killer] == 1)
        {
            
play_sound(killerKILL_HEGRENADE)
            
check_sound 1
        
}
        
show_hud(killerKILL_HEGRENADE)
    }
    else
    {
        
show_hud(killerKILL_NONE)
    }
    
    
    
// hud 2
    
if (g_firstkill)
    {
        
g_firstkill 0
        show_hud
(killerKILL_FIRST)
        if (!
check_soundplay_sound(killerKILL_1)
    }
    else
    {
        
show_hud(killerkills[killer])
        if (!
check_soundplay_sound(killerkills[killer])
    }

}
public 
bomb_defused(id)
{
    
show_hud(idC4_DEFUSE)
    
play_sound(idC4_DEFUSE)
}
public 
bomb_planted(id)
{
    
show_hud(idC4_SET)
    
play_sound(idC4_SET)
}


// #################### SHOW HUD ####################
show_hud(ididhud)
{
    if (!
is_user_connected(id)) return;
    
    new 
type_cvar get_pcvar_num(cvar_type)
    if (
type_cvar == 1show_spr(ididhud)
    else if (
type_cvar == 2show_msg(ididhud)
}
play_sound(ididhud)
{
    if (!
is_user_connected(id)) return;
    
    new 
sound[64], team[32], sex[32], cs_team
    
if (nst_get_mod_runing()==NST_MOD_ZB3cs_team nst_get_user_team(id)
    else 
cs_team get_user_team(id)
        
    if (
cs_team==1team "T"
    
else team "CT"
    
if (get_user_sex(id) == 2sex "woman"
    
else sex "man"
    
format(soundcharsmax(sound), "%s"get_hud_data(idhudHUD_SOUND))
    
format(soundcharsmax(sound), soundsexteam)
    
    
PlaySound(idsound)
}

show_msg(ididhud)
{
    new 
msg[64]
    
format(msgcharsmax(msg), "%s"get_hud_data(idhudHUD_MSGTEXT))

    
set_hudmessage(02040, -1.00.6510.023.00.30.32)
    
show_hudmessage(idmsg)
}
show_spr(ididspr)
{
    if (
idspr >= KILL_NONEhide_spr(id2)
    else 
hide_spr(id1)

    
spr_action(ididspr1)
    
    if (
idspr KILL_NONE)
    {
        if (
task_exists(id+TASK_HIDESPR)) remove_task(id+TASK_HIDESPR)
        
set_task(get_pcvar_float(cvar_time_show), "task_hidehud"id+TASK_HIDESPR)
    }

public 
task_hidehud(taskid)
{
    new 
id ID_HIDESPR
    hide_spr
(id2)
    
hide_spr(id1)

}
hide_spr(ididspr)
{
    if (
idspr == 1)
    {
        for (new 
KILL_1<= C4_SETi++)
        {
            
spr_action(idi0)
        }
    }
    else if (
idspr == 2)
    {
        for (new 
KILL_NONE<= ONESHOT_3KILLi++)
        {
            
spr_action(idi0)
        }
    }
}  
spr_action(idsprrun)
{    
    new 
sprname[64]
    
format(sprnamecharsmax(sprname), "%s"get_hud_data(sprHUD_SPRNAME))

    
message_begin(MSG_ONE,iconstatus,{0,0,0},id)
    
write_byte(run// status (0=hide, 1=show, 2=flash)
    
write_string(sprname// sprite name
    
message_end()
}
get_hud_data(idhudtype)
{
    new 
value[64], sprname[33], sound[64], msgtext[32]
    
    switch (
idhud)
    {
        case 
KILL_1:
        {
            
sprname "kill_1"
            
sound "vox/kill/%s/kill_1_%s"
            
msgtext "1 KILL"
        
}
        case 
KILL_2:
        {
            
sprname "kill_2"
            
sound "vox/kill/%s/kill_2_%s"
            
msgtext "2 KILL"
        
}
        case 
KILL_3:
        {
            
sprname "kill_3"
            
sound "vox/kill/%s/kill_3_%s"
            
msgtext "3 KILL"
        
}
        case 
KILL_4:
        {
            
sprname "kill_4"
            
sound "vox/kill/%s/kill_4_%s"
            
msgtext "4 KILL"
        
}
        case 
KILL_5:
        {
            
sprname "kill_5"
            
sound "vox/kill/%s/kill_5_%s"
            
msgtext "5 KILL"
        
}
        case 
KILL_6:
        {
            
sprname "kill_6"
            
sound "vox/kill/%s/kill_6_%s"
            
msgtext "6 KILL"
        
}
        case 
KILL_7:
        {
            
sprname "kill_7"
            
sound "vox/kill/%s/kill_7_%s"
            
msgtext "7 KILL"
        
}
        case 
KILL_8:
        {
            
sprname "kill_8"
            
sound "vox/kill/%s/kill_8_%s"
            
msgtext "8 KILL"
        
}
        case 
KILL_FIRST:
        {
            
sprname "kill_first"
            
msgtext "FIRST KILL"
        
}
        case 
C4_DEFUSE:
        {
            
sprname "c4_defuse"
            
sound "vox/kill/c4_defuse"
        
}
        case 
C4_SET:
        {
            
sprname "c4_set"
            
sound "vox/kill/c4_set"
        
}
    
    
        case 
KILL_NONE:
        {
            
sprname "kill_none"
        
}
        case 
KILL_HEGRENADE:
        {
            
sprname "kill_he"
            
sound "vox/kill/%s/grenade_%s"
            
msgtext "GRENADE KILL"
        
}
        case 
KILL_HEADSHOT:
        {
            
sprname "kill_headshot"
            
sound "vox/kill/%s/headshot_%s"
            
msgtext "HEADSHOT"
        
}
        case 
KILL_KNIFE:
        {
            
sprname "kill_knife"
            
sound "vox/kill/%s/knife_%s"
            
msgtext "KNIFE KILL"
        
}
        case 
KILL_LAST:
        {
            
sprname "kill_last"
        
}
        case 
KILL_REVENGE:
        {
            
sprname "kill_revenge"
            
sound "vox/kill/%s/revenge_%s"
            
msgtext "REVENGE"
        
}
        case 
WALLSHOT:
        {
            
sprname "wall_shot"
            
msgtext "WALLSHOOT"
        
}
        case 
WALLSHOT_HEADSHOT:
        {
            
sprname "wall_shot_hs"
            
msgtext "WALLSHOOT HEADSHOT"
        
}
        case 
ONESHOT_2KILL:
        {
            
sprname "1shot_2kill"
            
msgtext "ONE SHOT 2 KILL"
        
}
        case 
ONESHOT_3KILL:
        {
            
sprname "1shot_3kill"
            
msgtext "ONE SHOT MULTIKILL"
        
}
    }

    if (
type==HUD_SOUNDformat(valuecharsmax(value), "%s"sound)
    else if (
type==HUD_MSGTEXTformat(valuecharsmax(value), "%s"msgtext)
    else if (
type==HUD_SPRNAMEformat(valuecharsmax(value), "%s"sprname)
    
    return 
value;
}
get_user_sex(id)
{
    new 
mod_runingsex
    mod_runing 
nst_get_mod_runing()
    if ( (
mod_runing == NST_MOD_ZB3 || mod_runing == NST_MOD_ZBU || mod_runing == NST_MOD_ZBS) && nst_zb_get_user_zombie(id) )
    {
        
sex nst_zb_get_user_sex(id)
    }
    else
    {
        
sex nst_get_user_sex(id)
    }

    return 
sex;
}
// Plays a sound on clients
PlaySound(id, const sound[])
{
    if (
equal(sound[strlen(sound)-4], ".mp3"))
        
client_cmd(id"mp3 play ^"sound/%s^""sound)
    else
        
client_cmd(id"spk ^"%s^""sound)
}
bool:can_see_fm(entindex1entindex2)
{
    if ((!
g_FM_Running) || !entindex1 || !entindex2)
        return 
false
//  new ent1, ent2

    
if (pev_valid(entindex1) && pev_valid(entindex1))
    {
        new 
flags pev(entindex1pev_flags)
        if (
flags EF_NODRAW || flags FL_NOTARGET)
        {
            return 
false
        
}

        new 
Float:lookerOrig[3]
        new 
Float:targetBaseOrig[3]
        new 
Float:targetOrig[3]
        new 
Float:temp[3]

        
pev(entindex1pev_originlookerOrig)
        
pev(entindex1pev_view_ofstemp)
        
lookerOrig[0] += temp[0]
        
lookerOrig[1] += temp[1]
        
lookerOrig[2] += temp[2]

        
pev(entindex2pev_origintargetBaseOrig)
        
pev(entindex2pev_view_ofstemp)
        
targetOrig[0] = targetBaseOrig [0] + temp[0]
        
targetOrig[1] = targetBaseOrig [1] + temp[1]
        
targetOrig[2] = targetBaseOrig [2] + temp[2]

        
engfunc(EngFunc_TraceLinelookerOrigtargetOrig0entindex10//  checks the had of seen player
        
if (get_tr2(0TraceResult:TR_InOpen) && get_tr2(0TraceResult:TR_InWater))
        {
            return 
false
        

        else 
        {
            new 
Float:flFraction
            get_tr2
(0TraceResult:TR_flFractionflFraction)
            if (
flFraction == 1.0 || (get_tr2(0TraceResult:TR_pHit) == entindex2))
            {
                return 
true
            
}
            else
            {
                
targetOrig[0] = targetBaseOrig [0]
                
targetOrig[1] = targetBaseOrig [1]
                
targetOrig[2] = targetBaseOrig [2]
                
engfunc(EngFunc_TraceLinelookerOrigtargetOrig0entindex10//  checks the body of seen player
                
get_tr2(0TraceResult:TR_flFractionflFraction)
                if (
flFraction == 1.0 || (get_tr2(0TraceResult:TR_pHit) == entindex2))
                {
                    return 
true
                
}
                else
                {
                    
targetOrig[0] = targetBaseOrig [0]
                    
targetOrig[1] = targetBaseOrig [1]
                    
targetOrig[2] = targetBaseOrig [2] - 17.0
                    engfunc
(EngFunc_TraceLinelookerOrigtargetOrig0entindex10//  checks the legs of seen player
                    
get_tr2(0TraceResult:TR_flFractionflFraction)
                    if (
flFraction == 1.0 || (get_tr2(0TraceResult:TR_pHit) == entindex2))
                    {
                        return 
true
                    
}
                }
            }
        }
    }
    return 
false
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 
jacktoic is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-26-2013 , 08:57   Re: NST_Effects_Killer
Reply With Quote #9

Are you releasing this plugin or asking for support?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-26-2013 , 08:59   Re: NST_Effects_Killer
Reply With Quote #10

support.

wrong section
sami_spt 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 15:46.


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