PHP Code:
int ent = GetPlayerWeaponSlot(client, CS_SLOT_SECONDARY);
if (ent != -1)
{
SDKHooks_DropWeapon(client, ent);
RemoveEntity(ent);
}
ent = GivePlayerItem(client, "weapon_deagle");
if (ent != -1)
{
SetEntProp(ent, Prop_Send, "m_iClip1", 0);
SetEntProp(ent, Prop_Send, "m_iPrimaryReserveAmmoCount", 0);
EquipPlayerWeapon(client, ent);
}
__________________