[Include] Easy teleportation
#1

This is a simple include that helps with player and vehicle teleportation.
It will prevent(hopefully) player from falling out of interiors by freezing them for a short period of time.

Код:
MoveVeh(vehicleid ,Float:x ,Float:y ,Float:z ,Float:rot ,interior=0 ,virtualWorld=0 )
MovePlayer(playerid ,Float:x ,Float:y ,Float:z ,Float:rot ,interior=0 ,virtualWorld=0 )
EXAMPLE
Код:
MovePlayer(playerid ,2488.57 ,-1670.83 ,13.04 ,90);  // it will teleport player to some location with interior 0 and virtual world 0

MovePlayer(playerid ,235.3 ,1187.55 ,1080.25 ,90 ,3 ,1); // it will teleport player to some location with interior 3 and virtual world 1
the same goes for MoveVeh


NOTE
If a player is in vehicle when you use MoveVeh it will teleport him with the veh.



if someone has already made something like this please have my deepest apologies for posting 'the same' inc.


download v1.0.
Reply
#2

It's great, I mean there's snippits here and there for similar functions, but it's nice to see something small and useful, it'll be a great aid to a lot of people and save a little time, although like anything, I'm sure there's room for improvement.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)