Raised This Month: $ Target: $400
 0% 

CurWeapon Event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 04-07-2024 , 16:55   Re: CurWeapon Event
Reply With Quote #6

sorry to interrupt, I leave this method and withdraw slowly...

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

public plugin_precache() 
{
    for(new 
CSW_P228weapon_name[20]; <= CSW_P90i++)
    {
        if(
get_weaponname(iweapon_namecharsmax(weapon_name)))
        {
            
RegisterHam(Ham_Item_Deployweapon_name"Ham_Item_Deploy_Post"true)
        }
    }
}

public 
Ham_Item_Deploy_Post(iWeapon)
{
    const 
OFFSET_WEAPONOWNER 41
    
const OFFSET_LINUX_WEAPONS 4
        
    
new iPlayer get_pdata_cbase(iWeaponOFFSET_WEAPONOWNEROFFSET_LINUX_WEAPONS)
    
    if( !
is_user_connected(iPlayer) )
        return 
HAM_IGNORED

    client_print
(0print_chat"Ham_Item_Deploy event triggered for client %d!"iPlayer);

    return 
HAM_IGNORED

__________________
mlibre 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 03:04.


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