Hey!
PHP Code:
DisarmPlayer(client)
{
for(new i = 0; i < 5; i++)
{
new weapon = -1;
while((weapon = GetPlayerWeaponSlot(client, i)) != -1)
{
if(IsValidEntity(weapon))
{
RemovePlayerItem(client, weapon);
}
}
}
SetEntProp(client, Prop_Send, "m_bHasDefuser", 0);
SetEntProp(client, Prop_Send, "m_bHasHeavyArmor", 0);
SetEntProp(client, Prop_Send, "m_ArmorValue", 0);
SetEntProp(client, Prop_Send, "m_bHasHelmet", 0);
}
I usually use this to disarm players. Try that! And the problem might not be with your custom void but yes where it is being used...
Contact me on steam or, for better purposes, post your .sp here.
Best Regards,
SpirT.
__________________