[SA Style] Parachuting System (now colorable!)

Started by Sebastian, Feb 25, 2017, 05:43 PM

Previous topic - Next topic

luchgox

Strength does not come from wining.Your struggles develop your strengths.

Cool


Sebastian

Quote from: vito on Apr 21, 2017, 09:24 AMCan you tell me where model taken from? I'm going to use it in my server so I need credits of model, thanks.

From GTA:SanAndreas, edited by me.

kennedyarz

Suggestion to avoid annoying warning whenever you have the parachute. The ad will only appear when you reach a speed of at least 150 m/s that is when you fall.

if (speed > 150.0) onPlayerFall(player, speed);
You can see its speed using this... Just to check. Do not leave it there

AnnounceAll ( speed + "", 0);
Then, for the data to be deleted to prevent the ad from continuing to appear, use this

if ( player.Pos.z < 20 ) speed = 0;
Then everything will be better. and it will be like this

speed += lastZ > newZ ? lastZ - newZ : 0.0;
AnnounceAll ( speed + "", 0);
if (speed > 150.0) onPlayerFall(player, speed);
if ( player.Pos.z < 20 ) speed = 0;

But without this AnnounceAll ( speed + "", 0);


Sebastian

Quote from: kennedyarz on May 19, 2017, 09:51 PMSuggestion to avoid annoying warning whenever you have the parachute. The ad will only appear when you reach a speed

Thanks ! Got the point and did the update.

Changelog:
  • part of onPlayerFall() was edited by adding a speed checker.
  • part of onPlayerMove() was edited by adding the text remover.

[TkD]MarineForce123


Sebastian

Quote from: [TkD]MarineForce123 on Jun 16, 2017, 06:59 AMAweSome Best I Like Plese You enjoy Parachuting System in my server :

It is pretty easy to implement it in your server buddy, just give it a try.
If you face problems, show us a screenshot with the error and the line provoking the error. We will help.
(it's all about copy/paste and following the written instructions)

Mahmoud Tornado

#37
Cool Man!