SA-MP Forums Archive
[Include] Traveling to locations, 1 new function/stock || Good for Roleplay servers! - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Traveling to locations, 1 new function/stock || Good for Roleplay servers! (/showthread.php?tid=206923)



Traveling to locations, 1 new function/stock || Good for Roleplay servers! - Mean - 04.01.2011

So, basically I've decided to realase this include.
This will actually make a new function, that will make you travel to desired position, no more booring SetPlayerPos .

Also credit to Retardedwolf for fixing a bug. (You know the topic where I forgot to put x, y, and z in timer )

This will give you one new function

pawn Code:
SetPlayerPosTravel(playerid, Float:x, Float:y, Float:z);
Also, you can change the travel time:
pawn Code:
#define TRAVEL_TIME 20 // seconds
Example usage:
pawn Code:
dcmd_test(playerid, params[])
{
    return SetPlayerPosTravel(playerid, 0.0, 0.0, 0.0);
}
^^ this will first of all travel to desired position, and then it will put you there...

Screens:
Traveling in shamal cabin:

After traveling, you get teleported to desired position:


Also note that this will also load objects when you teleport, so no more falling through objects while spawning.

Download:
Solidfiles: http://solidfiles.com/d/28351/
Pastebin: http://pawn.pastebin.com/3cTeQTyc

Enjoy!


Re: Traveling to locations, 1 new function/stock || Good for Roleplay servers! - Mr L - 04.01.2011

Good Job downloading it.


Re: Traveling to locations, 1 new function/stock || Good for Roleplay servers! - Mean - 05.01.2011

Thanks! I will update it, i'll map a special travel plane.


Re: Traveling to locations, 1 new function/stock || Good for Roleplay servers! - Flyfishes - 05.01.2011

Could we get this on pastebin? Thanks


Re: Traveling to locations, 1 new function/stock || Good for Roleplay servers! - Mean - 05.01.2011

I'll do it but I am on my phone now.


EDIT: Added pastebin link.


Re: Traveling to locations, 1 new function/stock || Good for Roleplay servers! - Sledge - 06.01.2011

thank you


Re: Traveling to locations, 1 new function/stock || Good for Roleplay servers! - Whizion - 06.01.2011

Good job.


Re: Traveling to locations, 1 new function/stock || Good for Roleplay servers! - LZLo - 04.02.2011

nice work


Re: Traveling to locations, 1 new function/stock || Good for Roleplay servers! - SkizzoTrick - 10.02.2011

Wow,really nice xD