22.04.2012, 23:55
Hello, I need two commands:
- one to store my current position
- and another one to teleport back to the position stored previously
I tried something like this but failed:
- one to store my current position
- and another one to teleport back to the position stored previously
I tried something like this but failed:
Code:
new position;
COMMAND:SavePos(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
new Float:x, Float:y, Float:z;
position[playerid] = GetPlayerPos(playerid, x, y, z);
return 1;
}
COMMAND:Back(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
SetPlayerPos(playerid,position,0.0,0.0,3.0);
return 1;
}

