Tear Gas ?
#1

Hello, How can I make tear gas grenades? that if the people enters the smoke they start coughing.

Thanks

Dirk
Reply
#2

If you find the cough animation, you can combine it with IsPlayerInArea
Reply
#3

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
Reply
#4

Seif did it with his tear gas on his stealth TDM server, if I remember correctly.
Reply
#5

So...? how do I get it working ?

thanks
Reply
#6

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.
Reply
#7

here is a example.

AddPlayerClass(103, 1968.4015,1622.6061,12.8661,272.8200, 17, 200);

that red on‌e = id 17(thats tear gas), and you get 200 of it.
Reply
#8

Quote:
Originally Posted by PANNA
here is a example.

AddPlayerClass(103, 1968.4015,1622.6061,12.8661,272.8200, 17, 200);

that red on‌e = 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!
Reply
#9

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 on‌e = 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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)