View Single Post
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 02-28-2012 , 11:14   Re: Plugin Last & Plugin Shop.
#26

C'est vrai qu'il faut aussi régler les balles du deagle sur 1, en plus de bpammo (qui n'est pas indispensable).

Tu peux dans ce cas utiliser quelque chose comme ça :

PHP Code:
public Event_CurWeaponid )
{
    new 
iId read_data);
    new 
iPlayerWeaponReloading g_iPlayerWeaponReloadingid ];

    if( 
iPlayerWeaponReloading && iPlayerWeaponReloading == iId )
    {
        
// ici, le joueur a fini de reload
        
cs_set_weapon_ammofind_ent_by_owner( -"weapon_deagle" id ) , );
        
g_iPlayerWeaponReloadingid ] = 0;
    }

__________________
You can do anything you set your mind to, man.


Last edited by Devil259; 02-28-2012 at 11:14.
Devil259 is offline