2
0
mirror of https://github.com/rehlds/reapi.git synced 2025-01-16 00:28:17 +03:00

Add missing check weapon_flashbang for native GetGrenadeType

This commit is contained in:
s1lent 2017-06-14 03:59:33 +07:00
parent e1eac93aab
commit 76cddfd785
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -54,6 +54,10 @@ cell AMX_NATIVE_CALL amx_GetGrenadeType(AMX *amx, cell *params)
return WEAPON_C4;
}
if (!pGrenade->m_usEvent) {
return WEAPON_FLASHBANG;
}
static unsigned short usCreateExplosion = 0;
if (!usCreateExplosion) {
usCreateExplosion = PRECACHE_EVENT(1, "events/createexplo.sc");