Raised This Month: $ Target: $400
 0% 

..::need help::...::plugin not work::..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Big Noob
Junior Member
Join Date: Sep 2015
Old 09-20-2015 , 15:02   ..::need help::...::plugin not work::..
Reply With Quote #1

hy

this is kill effects acg xphere plugin ...

the plugin does not show my TGA pictures

someone help me to solve the problem

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <acg>
#define LEVELS 8
new kills[33], Float:timekill[33], revenge[33], oneshot[33]
new 
g_firstkillg_lastkill

new const tga_combo[][] =
{
 
"gfx/effectskill/1shot_2kill.tga"
 
"gfx/effectskill/1shot_3kill.tga"
 
"gfx/effectskill/c4_defuse.tga"
 
"gfx/effectskill/c4_set.tga"
 
"gfx/effectskill/kill_1.tga",
 
"gfx/effectskill/kill_2.tga",
 
"gfx/effectskill/kill_3.tga",
 
"gfx/effectskill/kill_4.tga",
 
"gfx/effectskill/kill_5.tga",
 
"gfx/effectskill/kill_6.tga",
 
"gfx/effectskill/kill_7.tga",
 
"gfx/effectskill/kill_8.tga",
 
"gfx/effectskill/kill_first.tga",
 
"gfx/effectskill/kill_he.tga.tga",
 
"gfx/effectskill/kill_headshot.tga",
 
"gfx/effectskill/kill_knife.tga",
 
"gfx/effectskill/kill_last.tga",
 
"gfx/effectskill/kill_revenge.tga",
 
"gfx/effectskill/wall_shot.tga",
 
"gfx/effectskill/wall_shot_hs.tga"
}
new const 
tga_combo2[][] =
{
 
"gfx/effectskill/1shot_2kill.tga",
 
"gfx/effectskill/1shot_3kill.tga",
 
"gfx/effectskill/c4_defuse.tga",
 
"gfx/effectskill/c4_set.tga",
 
"gfx/effectskill/kill_1.tga",
 
"gfx/effectskill/kill_2.tga",
 
"gfx/effectskill/kill_3.tga",
 
"gfx/effectskill/kill_4.tga",
 
"gfx/effectskill/kill_5.tga",
 
"gfx/effectskill/kill_6.tga",
 
"gfx/effectskill/kill_7.tga",
 
"gfx/effectskill/kill_8.tga",
 
"gfx/effectskill/kill_first.tga",
 
"gfx/effectskill/kill_he.tga.tga",
 
"gfx/effectskill/kill_headshot.tga",
 
"gfx/effectskill/kill_knife.tga",
 
"gfx/effectskill/kill_last.tga",
 
"gfx/effectskill/kill_revenge.tga",
 
"gfx/effectskill/wall_shot.tga",
 
"gfx/effectskill/wall_shot_hs.tga"
}
enum
{
 
KILL_1 0,
 
KILL_2,
 
KILL_3,
 
KILL_4,
 
KILL_5,
 
KILL_6,
 
KILL_7,
 
KILL_8,
 
KILL_FIRST,
 
C4_DEFUSE,
 
C4_SET,
 
KILL_HEGRENADE,
 
KILL_HEADSHOT,
 
KILL_KNIFE,
 
KILL_LAST,
 
KILL_REVENGE,
 
WALLSHOT,
 
WALLSHOT_HEADSHOT,
 
ONESHOT_2KILL,
 
ONESHOT_3KILL
}
public 
plugin_precahce()
{
    for (new 
0<= 17i++)
    {
        
precache_generic(tga_combo[i])
    }
}
public 
plugin_init()
{
 
register_plugin("Effects Kill""0.2""modified from CSO-NST")
 
 
register_event("HLTV""event_round_start""a""1=0""2=0")
 
register_event("DeathMsg""event_DeathMsg""a")
}
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 (!
acg_userstatus(killer))
 {
  if (
g_firstkill)
   
g_firstkill 0
  
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 <= 3.0kills[killer] += 1
 
else kills[killer] = 1
 
if (kills[killer]>LEVELSkills[killer] = LEVELS
 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 m_revenge
 
if (victim == revenge[killer])
 {
  
m_revenge 1
  revenge
[killer] = 0
 
}
 if (
oneshot[killer] > 1)
 {
  if (
oneshot[killer] == 2)
   
acg_drawtga(killertga_combo2[ONESHOT_2KILL], 2552552552550.50.31FX_NONE0.00.00.04.5001)
  else if (
oneshot[killer] == 3)
   
acg_drawtga(killertga_combo2[ONESHOT_3KILL], 2552552552550.50.31FX_NONE0.00.00.04.5001)
 }
 
 if (
g_lastkill)
 {
  
g_lastkill 0
  acg_drawtga
(killertga_combo2[KILL_LAST], 2552552552550.50.31FX_NONE0.00.00.04.5002)
 } 
 
 if (
m_revenge)
  
acg_drawtga(killertga_combo2[KILL_REVENGE], 2552552552550.50.31FX_NONE0.00.00.04.5003)
 
 if ((
wpnindex != CSW_KNIFE) && (wpnindex != CSW_HEGRENADE) && !can_see_fm(killervictim)) 
 {
  if (
headshot)
   
acg_drawtga(killertga_combo2[WALLSHOT_HEADSHOT], 2552552552550.50.31FX_NONE0.00.00.04.5004)
  else
   
acg_drawtga(killertga_combo2[WALLSHOT], 2552552552550.50.31FX_NONE0.00.00.04.5004)
 }
 
 if (
headshot && wpnindex)
 {
  
acg_drawtga(killertga_combo2[KILL_HEADSHOT], 2552552552550.50.31FX_NONE0.00.00.04.5005)
 }
 else if (
wpnindex == CSW_KNIFE)
 {
  
acg_drawtga(killertga_combo2[KILL_KNIFE], 2552552552550.50.31FX_NONE0.00.00.04.5005)
 }
 else if (
wpnindex == CSW_HEGRENADE)
 {
  
acg_drawtga(killertga_combo2[KILL_HEGRENADE], 2552552552550.50.31FX_NONE0.00.00.04.5005)
 }
 
 
 
// hud 2
 
if (g_firstkill)
 {
  
g_firstkill 0
  acg_drawtga
(killertga_combo2[KILL_FIRST], 2552552552550.50.31FX_NONE0.00.00.04.5006)
 }
 else
 {
  
acg_drawtga(killertga_combo2[kills[killer] - 1], 2552552552550.50.31FX_NONE0.00.00.04.5006)
 }
}
public 
bomb_defused(id)
{
 
acg_drawtga(idtga_combo2[C4_DEFUSE], 2552552552550.50.31FX_NONE0.00.00.04.5007)
}
public 
bomb_planted(id)
{
 
acg_drawtga(idtga_combo2[C4_SET], 2552552552550.50.31FX_NONE0.00.00.04.5007)
}
bool:can_see_fm(entindex1entindex2)
{
 if (!
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


Last edited by Big Noob; 09-20-2015 at 15:05. Reason: written mistake
Big Noob is offline
 



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 22:15.


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