SA-MP Forums Archive
[FilterScript] Submarine scripts. - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Submarine scripts. (/showthread.php?tid=505264)



Submarine scripts. - KaLu17 - 07.04.2014




http://i.imgur.com/kMuPXBi.png

http://i.imgur.com/wyDO7bN.png


Download (PWN & AMX):

1. http://pastebin.com/qc675NqR

Commands:

/submarine - teleports us to the position of the helmsman.
/test - teleport us to the port of San Fierro.

* Sorry for the lack of description.



Re: Submarine scripts. - TonyII - 07.04.2014

The idea is nice, I released a similar script like this a while ago. If the submarine wont be able to get underwater its pretty much useless in my opinion


Re: Submarine scripts. - KaLu17 - 07.04.2014

That's right. But it is useful for servers of a war.


Re: Submarine scripts. - VerticalGaming - 07.04.2014

Use LinkVehicleToInterior(vehicleid, 1);
DONT LINK THE PLAYER, Only vehicle!
The vehicle will be invisble.
Make the submarine go underwater with NUMPAD8; go up. (check if Z = around 0.0, so he cant fly
Make it go low with NUMPAD2 .. till -5z or something...

Fair enough :S


Re: Submarine scripts. - KaLu17 - 07.04.2014

Quote:

Use LinkVehicleToInterior(vehicleid, 1);
DONT LINK THE PLAYER, Only vehicle!

It's just a calculation:

Код:
LinkVehicleToInterior(submarine, (submarine * MAX_PLAYERS));
Of course you can use:

Код:
LinkVehicleToInterior(submarine, 1);