Teleport X Y Z
#4

Untested
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd(gotoxyz, 7, cmdtext);
  return 0;
}

dcmd_gotoxyz(playerid, params[])
{
  new Float:x, Float:y, Float:z;
  if(sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /gotoxyz <x> <y> <z>");
  else
  {
   SetPlayerPos(playerid, x, y, z);
   SendClientMessage(playerid, 0xFF0000AA, "Warped to your desired position!");
  }
  return 1;
}
Reply


Messages In This Thread
Teleport X Y Z - by anumaz - 30.06.2009, 03:03
Re: Teleport X Y Z - by *ToM* - 30.06.2009, 03:20
Re: Teleport X Y Z - by anumaz - 30.06.2009, 03:59
Re: Teleport X Y Z - by Grim_ - 30.06.2009, 04:31
Re: Teleport X Y Z - by anumaz - 30.06.2009, 04:37
Re: Teleport X Y Z - by Grim_ - 30.06.2009, 04:38
Re: Teleport X Y Z - by Ignas1337 - 30.06.2009, 07:09
Re: Teleport X Y Z - by Grim_ - 30.06.2009, 07:16
Re: Teleport X Y Z - by Ignas1337 - 30.06.2009, 08:14
Re: Teleport X Y Z - by Grim_ - 30.06.2009, 08:46

Forum Jump:


Users browsing this thread: 5 Guest(s)