mark, as far as I know the Hunter's and Sparrow's cannons don't fit as drive-by.
MexikanoS, I have noticed a couple of bugs in your script, and I felt free to code one for you.
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "s" )
{
WriteIniNumber( "Gotolocs.ini", text, "x", player.Pos.x );
WriteIniNumber( "Gotolocs.ini", text, "y", player.Pos.y );
WriteIniNumber( "Gotolocs.ini", text, "z", player.Pos.z );
PrivMessage( "Saved location: " + text, player );
}
else if ( cmd == "l" )
{
local x = ReadIniNumber( "Gotolocs.ini", text, "x" ),
y = ReadIniNumber( "Gotolocs.ini", text, "y" ),
z = ReadIniNumber( "Gotolocs.ini", text, "z" );
if ( x ) {
local pos = Vector( x, y, z );
player.Pos = pos;
PrivMessage( "Teleporting you to location: " + text, player );
}
else PrivMessage( "Location '" + text + "' does not exist.", player );
}
}
PS: I haven't tested the script, but it should work.