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:
parent
e1eac93aab
commit
76cddfd785
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user