PDA

View Full Version : Need help


4eSHir
10-21-2014, 05:27
In which slot item_defuser?

I need to remove it at round start if it available and give it again.
It is necessary that the set does not fall to the ground when client already have it.

new item_defuser = GetPlayerWeaponSlot(client, 3);
if (IsValidEntity(item_defuser))
{
RemovePlayerItem(client, item_defuser);
}

slot 3 its grenade, slot 4 does not work, m b you know slot for item_defuser?

Leonardo
10-21-2014, 05:47
SetEntProp( iClient, Prop_Send, "m_bHasDefuser", 0 );

4eSHir
10-21-2014, 05:49
SetEntProp( iClient, Prop_Send, "m_bHasDefuser", 0 );
tnx ill rty