Raised This Month: $ Target: $400
 0% 

JB Shot4Shot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 01-21-2014 , 23:39   Re: JB Shot4Shot
Reply With Quote #6

PHP Code:
public WeaponChange(id)
{
    new 
weapon read_data(2);
    if( 
is_user_alive(id) && (iGuard==id || iPrisoner==id) && weapon ){
        new 
clip read_data(3);
        if( 
gLRType == LR_PISTOL && weapon == CSW_DEAGLE ){
            if( 
clip ){
                new 
wpn[32], iWPNidx = -1;
                
get_weaponname(weaponwpn31);
                while( (
iWPNidx fm_find_ent_by_class(iWPNidxwpn)) != ){
                    if( 
pev(iWPNidxpev_owner) == id ){
                        
cs_set_weapon_ammo(iWPNidx1);
                    }
                }
            }
            
cs_set_user_bpammo(idweapon1);
        }if( 
gLRType == LR_PISTOL && weapon != CSW_DEAGLE ){
            new 
wpn[32];
            
get_weaponname(weaponwpn31);
            
engclient_cmd(id"drop"wpn);
            
client_cmd(id"weapon_deagle");
        }
    }

something like that?

add it to the s4s pistol fight part
__________________

Last edited by Battousai-sama; 01-21-2014 at 23:43.
Battousai-sama is offline
Send a message via MSN to Battousai-sama
 



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


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