Vice City: Multiplayer

Server Development => Scripting and Server Management => Script Showroom => Topic started by: [VD]Pratham[Pro] on Mar 10, 2023, 07:58 PM

Title: Pratham's coordinate teleporting system
Post by: [VD]Pratham[Pro] on Mar 10, 2023, 07:58 PM
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  :)
Title: Re: Pratham's coordinate teleporting system
Post by: [VD]BOMB_ACTION on Mar 12, 2023, 02:57 PM
GOOD JOB BRO! 8)
Title: Re: Pratham's coordinate teleporting system
Post by: gamingpro on Mar 14, 2023, 10:16 PM
.
Title: Re: Pratham's coordinate teleporting system
Post by: PLAYER on May 15, 2024, 10:14 AM
Nice :)