Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - [VD]Pratham[Pro]

#1
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  :)