Mark and Recall
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  new Float:Pos[MAX_PLAYERS][4];
  if(strcmp(cmdtext, "/mark", true) == 0)
  {
   GetPlayerPos(playerid, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
   GetPlayerFacingAngle(playerid, Pos[playerid][3]);
   SendClientMessage(playerid, 0x000000FF, "Position marked..");
   return 1;
  }
  if(strcmp(cmdtext, "/recall", true) == 0)
  {
   SetPlayerPos(playerid, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
   SetPlayerFacingAngle(playerid, Pos[playerid][3]);
   SendClientMessage(playerid, 0x000000FF, "Set back to your marked position..");
   return 1;
  }
  return 0;
}
Try this..
Reply


Messages In This Thread
Mark and Recall - by Rhemsis - 11.02.2010, 19:31
Re: Mark and Recall - by woot - 11.02.2010, 19:34
Re: Mark and Recall - by Grim_ - 11.02.2010, 19:35
Re: Mark and Recall - by Rhemsis - 11.02.2010, 19:44
Re: Mark and Recall - by Grim_ - 11.02.2010, 19:48
Re: Mark and Recall - by Streetplaya - 11.02.2010, 19:57
Re: Mark and Recall - by Grim_ - 11.02.2010, 19:58
Re: Mark and Recall - by Rhemsis - 11.02.2010, 20:02
Re: Mark and Recall - by Grim_ - 11.02.2010, 20:07
Re: Mark and Recall - by Rhemsis - 11.02.2010, 20:15
Re: Mark and Recall - by Grim_ - 11.02.2010, 20:49
Re: Mark and Recall - by Rhemsis - 12.02.2010, 01:05
Re: Mark and Recall - by Daren_Jacobson - 12.02.2010, 03:01

Forum Jump:


Users browsing this thread: 3 Guest(s)