/gotocoord <Float:X> <Float:U> <Float:Z> <VirtualWorld (Integer)(Optional)> <InteriorID (Integer)(Optional)>
/goback // This would set your position + Virtualword + InteriorID to the last position before you perform /gotocoord command.
Lets suppose before you perfom the /gotocoord command that your position is : (20, 20, 20, 0, 0)
/gotocoord 10 10 10 // This will set your X position to 10, same for Y and Z, but it will automatically set your virtual world to 0 and Interior to 0.
----------------------------------------------------------
/gotocoord 10 10 10 2 3 // This will set your X position to 10, same for Y and Z, but will set also your virtual world to 2 and interiorID to 3. (
----------------------------------------------------------
/goback // this will set your position to the last position youve been in before performing /gotocoord which in this example is (20, 20, 20) and your virtual world to 0 , and your Interior id to 0
Thanks for it. I was looking for it. Thanks. I will +rep when i will reach 50 posts. Thanks for it
|
if (!sscanf(params, "fffD(0)D(0)", x, y, z, virtualw, interior))
{
new string[128];
SetPlayerPos(playerid, x, y, z);
SetPlayerVirtualWorld(playerid, virtualw);
format(string, sizeof(string), "Coords changed to : {ffff00}%f, %f, %f, {ffffff}VW : %d, Interior : %d.", x, y, z, virtualw, interior);
SendClientMessage(playerid, COLOR_LIGHTNBLUE, string);
return 1;
}
if (!sscanf(params, "fffD(0)D(0)", x, y, z, virtualw, interior))
{
new string[128];
SetPlayerPos(playerid, x, y, z);
SetPlayerVirtualWorld(playerid, virtualw);
SetPlayerInterior(playerid, interior);
format(string, sizeof(string), "Coords changed to : {ffff00}%f, %f, %f, {ffffff}VW : %d, Interior : %d.", x, y, z, virtualw, interior);
SendClientMessage(playerid, COLOR_LIGHTNBLUE, string);
return 1;
}