Pratham's coordinate teleporting system

Started by [VD]Pratham[Pro], Mar 10, 2023, 07:58 PM

Previous topic - Next topic

[VD]Pratham[Pro]

function onPlayerCommand( player, cmd, text )
{

if ( cmd== "tptocoords")
{
if ( text )
{
local PosX      = GetTok(text, " ", 1);
local PosY      = GetTok(text, " ", 2);
local PosZ      = GetTok(text, " ", 3);
player.Pos = Vector( PosX.tofloat() , PosY.tofloat() , PosZ.tofloat() );       
}
}

}

Usage: /tptocoords <pos x> <pos y> <pos z>

This script will help you to teleport to any coordinate you want. Its useful especially in map-making
This is my 1st time posting a script so please do not mind if I have not used proper text formatting  :)
"Heyo bro. I am Pratham, the pro" 😎
Founder of VAD and VD clan 😏
Diploma in Java and C 🎓
Hare Krishna 🙌