04.01.2011, 22:10
(
Last edited by Mean; 05/01/2011 at 10:23 AM.
)
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
Also, you can change the travel time:
Example usage:
^^ 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!
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);
pawn Code:
#define TRAVEL_TIME 20 // seconds
pawn Code:
dcmd_test(playerid, params[])
{
return SetPlayerPosTravel(playerid, 0.0, 0.0, 0.0);
}
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!