[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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)