Replaced RemoveEdict with kill entity input command.

This commit is contained in:
Richard Helgeby
2012-07-01 21:12:43 +02:00
parent c025ac9479
commit 581825829a
6 changed files with 10 additions and 10 deletions

View File

@ -824,7 +824,7 @@ stock WeaponsRemoveClientGrenades(client, bool:weaponsdrop)
else
{
RemovePlayerItem(client, grenade);
RemoveEdict(grenade);
AcceptEntityInput(grenade, "Kill");
}
// Find next grenade.
@ -854,7 +854,7 @@ stock WeaponsRefreshClientWeapon(client, WeaponsSlot:slot)
// Refresh weapon.
RemovePlayerItem(client, weaponindex);
RemoveEdict(weaponindex);
AcceptEntityInput(weaponindex, "Kill");
GivePlayerItem(client, entityname);
}
@ -885,7 +885,7 @@ stock WeaponsRemoveAllClientWeapons(client, bool:weaponsdrop)
{
// Strip knife.
RemovePlayerItem(client, weapons[x]);
RemoveEdict(weapons[x]);
AcceptEntityInput(weapons[x], "Kill");
continue;
}
@ -898,7 +898,7 @@ stock WeaponsRemoveAllClientWeapons(client, bool:weaponsdrop)
{
// Strip weapon.
RemovePlayerItem(client, weapons[x]);
RemoveEdict(weapons[x]);
AcceptEntityInput(weapons[x], "Kill");
}
}