SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Screenshots and Videos

Reply
 
Thread Tools Display Modes
Old 05/07/2018, 04:06 AM   #1
SeanDenZYR
Big Clucker
 
Join Date: May 2016
Location: Philippines!!
Posts: 167
Reputation: 20
Default Flashbang

not really sure if someone made this already, but heres a flashbang script, it uses tear gas cause its the only suitable weapon for a flashbang.

https://youtu.be/ssEtUL_Ku9c
__________________


-

Roses are Red,
Violtes are Blue,

SeanDenZYR is offline   Reply With Quote
Old 05/07/2018, 05:14 AM   #2
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,752
Reputation: 805
Default Re: Flashbang

And how do you flash players, do you calculate the projectile or just a simple range check(which is btw very ineffective and incorrect)?
__________________
Gammix is offline   Reply With Quote
Old 05/07/2018, 07:57 AM   #3
SeanDenZYR
Big Clucker
 
Join Date: May 2016
Location: Philippines!!
Posts: 167
Reputation: 20
Default Re: Flashbang

Quote:
Originally Posted by Gammix View Post
And how do you flash players, do you calculate the projectile or just a simple range check(which is btw very ineffective and incorrect)?
i did it when a player presses KEY_FIRE with a tear gas, and i estimated (Not really accurate but yeah) that it would land 3 meters away from the player's front view, and that 3 meters away will be the range calculation for the white screen, not really good cause i didn't really know if grenades are accepted in OnPlayerWeaponShot cause i saw (an old thread) where they we're discussing about which certain weapons are accepted in OnPlayerWeaponShot, i didn't see any grenade in the IDs given so i just made a different way
__________________


-

Roses are Red,
Violtes are Blue,

SeanDenZYR is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Flashbang filterscript by CaveDweller CaveDweller Filterscripts 39 09/09/2016 11:47 AM
[Help] FlashBang & autojail bk360 Scripting Help 8 02/10/2012 01:26 AM


All times are GMT. The time now is 01:23 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.