Thread: tfcx bug
View Single Post
urban_ninja
Senior Member
Join Date: Feb 2009
Old 04-30-2014 , 04:52   Re: tfcx bug
Reply With Quote #5

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <tfcx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_TakeDamage"player""damage")
}
public 
damage(victimwpnattackerFloat:dmgbit)
{
    
tfc_setweaponammo(wpn4)

The include says "Index must be weapon's entity index" but TFCX is now getting an error saying "Non-player entity # out of range" every time a hit is made by a projectile or hitscan. I've tried getting wepaon index though get_user_weapon() and no weapon index returned valid to this function. Something is broken somewhere for weapon ents returned to not actually be valid. Not sure whats going on with it

Last edited by urban_ninja; 04-30-2014 at 05:13.
urban_ninja is offline