Changed weapon removal method.

This commit is contained in:
shavit 2018-05-02 12:34:11 +03:00
parent 8c25086471
commit e357131299

View File

@ -1081,7 +1081,7 @@ void RemoveWeapon(any data)
{ {
if(IsValidEntity(data)) if(IsValidEntity(data))
{ {
RemoveEntity(data); AcceptEntityInput(data, "Kill");
} }
} }
@ -1164,7 +1164,7 @@ public void OnWeaponDrop(int client, int entity)
{ {
if(gB_NoWeaponDrops && IsValidEntity(entity)) if(gB_NoWeaponDrops && IsValidEntity(entity))
{ {
RemoveEntity(entity); AcceptEntityInput(entity, "Kill");
} }
} }