Raised This Month: $ Target: $400
 0% 

Solved Single shot deagle


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-24-2017 , 14:14   Re: Single shot deagle
Reply With Quote #6

Check out this, this is a sample & not tested...

but the deagle should have in the clip 1, and in the bpammo 1

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

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Weapon_Reload"weapon_deagle""fw_deagle_reload_post"1)
}

public 
fw_deagle_reload_post(const wEnt)
{
    if(!
pev_valid(wEnt)) return;
    
    new 
id pev(wEntpev_owner);
    
    if(!
is_user_alive(id)) return;
    
    
cs_set_user_bpammo(idCSW_DEAGLE1);


Or

PHP Code:
public HamDeaglePrimaryAttackPre(iWeapon

    new 
id get_pdata_cbase(iWeaponm_pPlayerOFFSET_LINUX_WEAPONS
     
    if(!
is_user_alive(id)) 
        return 
HAM_IGNORED 
     
    cs_set_user_bpammo
(idCSW_DEAGLE1);
    
    return 
HAM_IGNORED 

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-24-2017 at 16:37.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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 17:59.


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