Tear Gas ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tear Gas ? (
/showthread.php?tid=102805)
Tear Gas ? -
dirkblok - 17.10.2009
Hello, How can I make tear gas grenades? that if the people enters the smoke they start coughing.
Thanks
Dirk
Re: Tear Gas ? -
dice7 - 17.10.2009
If you find the cough animation, you can combine it with IsPlayerInArea
Re: Tear Gas ? -
saiberfun - 17.10.2009
Quote:
Originally Posted by dirkblok
Hello, How can I make tear gas grenades? that if the people enters the smoke they start coughing.
Thanks
Dirk
|
its not snyched so it would be hard to make
only way u could do is to use IsPlayerToPoiunt or IsPlayerInRangeOfPoint and then calculate abit where the nade might b e.
but to make it perfect is imposs i guess
Re: Tear Gas ? -
(.Aztec); - 17.10.2009
Seif did it with his tear gas on his stealth TDM server, if I remember correctly.
Re: Tear Gas ? -
dirkblok - 18.10.2009
So...? how do I get it working ?
thanks
Re: Tear Gas ? -
SpiderPork - 18.10.2009
That would be hard. You can't detect if there is an obstacle in front of you when you throw the teargas, so accuratelly, it's impossible, but you COULD get the distance of the throw and then use IsPlayerInRangeOfPoint and apply an animation.
Re: Tear Gas ? -
PANNA - 18.10.2009
here is a example.
AddPlayerClass(103, 1968.4015,1622.6061,12.8661,272.8200,
17, 200);
that red one = id 17(thats tear gas), and you get 200 of it.
Re: Tear Gas ? -
saiberfun - 18.10.2009
Quote:
Originally Posted by PANNA
here is a example.
AddPlayerClass(103, 1968.4015,1622.6061,12.8661,272.8200, 17, 200);
that red one = id 17(thats tear gas), and you get 200 of it.
|
like u don'T even kno how to script urself?
he didnt want to
have tear gas he just wanted to have a coughing anim for it when sum1 is in the gas!
Re: Tear Gas ? -
PANNA - 18.10.2009
Quote:
Originally Posted by ┤ŞąiBЄЯҒПŋ├
Quote:
Originally Posted by PANNA
here is a example.
AddPlayerClass(103, 1968.4015,1622.6061,12.8661,272.8200, 17, 200);
that red one = id 17(thats tear gas), and you get 200 of it.
|
like u don'T even kno how to script urself?
he didnt want to have tear gas he just wanted to have a coughing anim for it when sum1 is in the gas!
|
Ooo didn't read that one.
Re: Tear Gas ? -
Frank_Brown - 19.10.2009
Yes... i need that too for my server, anyone know a solution?
In mta they work good with a cough effect, but i want it in sa-mp.