2021-04-27, 03:08 PM
(This post was last modified: 2021-04-27, 03:10 PM by AbyssMorgan.)
(2021-04-26, 08:38 AM)annety Wrote: My bad, i didn't saw that i have to use the hole ExtendedGrenade lib...
How to use this?
How to when player throw the gun 17 and smoketype[playerid]
if it is 1, effect X
if it is 2, effect Y
How to create those effects there?
Manual usage:
Code:
Grenade::CreateGrenadeEffect(special_weaponid,effectid,Float:x,Float:y,Float:z,worldid,interiorid,playerid,Float:streamdistance,Float:damage,Float:veh_damage,active_time=25,byplayerid=INVALID_PLAYER_ID);
active_time in seconds
special_weaponid
Code:
GRENADE_SPECIAL_WEAPON_NONE
GRENADE_SPECIAL_WEAPON_GRENADE
GRENADE_SPECIAL_WEAPON_TEARGAS
GRENADE_SPECIAL_WEAPON_MOLTOV
effectid
Code:
GRENADE_EFFECT_CLUSTER_BOMB_1
GRENADE_EFFECT_CLUSTER_BOMB_2
GRENADE_EFFECT_CLUSTER_BOMB_3
GRENADE_EFFECT_CLUSTER_BOMB_4
GRENADE_EFFECT_BANG_GRENADE
GRENADE_EFFECT_SMALL_SMOKE
GRENADE_EFFECT_HUGE_SMOKE_1
GRENADE_EFFECT_HUGE_SMOKE_2
GRENADE_EFFECT_HUGE_SMOKE_3
GRENADE_EFFECT_NAPALM
You still can use internal functions for set player special weapon
https://www.burgershot.gg/showthread.php?tid=1908