Thread: No Ammo Deagle
View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 02-14-2019 , 07:23   Re: No Ammo Deagle
Reply With Quote #4

PHP Code:
int ent GetPlayerWeaponSlot(clientCS_SLOT_SECONDARY);
if (
ent != -1)
{
    
SDKHooks_DropWeapon(clientent);
    
RemoveEntity(ent);
}

ent GivePlayerItem(client"weapon_deagle");
if (
ent != -1)
{
    
SetEntProp(entProp_Send"m_iClip1"0);
    
SetEntProp(entProp_Send"m_iPrimaryReserveAmmoCount"0);
    
EquipPlayerWeapon(clientent);

__________________
Ilusion9 is offline