fix errors

ExtraCommands: add sm_setmvp
This commit is contained in:
BotoX
2017-08-12 15:07:10 +02:00
parent 9c4735659c
commit 68387329f2
6 changed files with 67 additions and 3 deletions
+4
View File
@@ -129,6 +129,10 @@ public void OnEntityCreated(int entity, const char[] classname)
public void OnEntityDestroyed(int entity)
{
// wtf sourcemod?
if(entity == -1)
return;
RemoveWeapon(EntIndexToEntRef(EntRefToEntIndex(entity)));
}