Raised This Month: $ Target: $400
 0% 

[HAMSANDWICH] Entity out of range


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-19-2011 , 19:28   Re: [HAMSANDWICH] Entity out of range
Reply With Quote #2

try this:
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>

public plugin_init()
{
    
register_plugin("Weapon Recoil""v1.0.0""Kiske");
    
    new const 
sWeaponEntNames[][] = {"weapon_p228""weapon_scout""weapon_xm1014""weapon_mac10",
    
"weapon_aug""weapon_elite""weapon_fiveseven""weapon_ump45""weapon_sg550",
    
"weapon_galil""weapon_famas""weapon_usp""weapon_glock18""weapon_awp""weapon_mp5navy""weapon_m249",
    
"weapon_m3""weapon_m4a1""weapon_tmp""weapon_g3sg1""weapon_deagle""weapon_sg552",
    
"weapon_ak47""weapon_p90"};
    
    for(new 
isizeof(sWeaponEntNames); i++)
        
RegisterHam(Ham_Weapon_PrimaryAttacksWeaponEntNames[i], "fw_Weapon_PrimaryAttack_Post"1);
}

public 
fw_Weapon_PrimaryAttack_Post(weapon)
{
    static 
id;
    
    if(!
pev_valid(weapon))
        return 
HAM_IGNORED;
        
    
id get_pdata_cbase(weapon414); // Line 28
    
    
if(is_user_alive(id))
        
entity_set_vector(idEV_VEC_punchangleFloat:{0.00.00.0});
    
    return 
HAM_IGNORED;

__________________
Impossible is Nothing

Last edited by Sylwester; 11-19-2011 at 19:29.
Sylwester 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 08:31.


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