[Include] Traveling to locations, 1 new function/stock || Good for Roleplay servers!
#1

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!
Reply
#2

Good Job downloading it.
Reply
#3

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

Could we get this on pastebin? Thanks
Reply
#5

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


EDIT: Added pastebin link.
Reply
#6

thank you
Reply
#7

Good job.
Reply
#8

nice work
Reply
#9

Wow,really nice xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)