Need your help
#1

Hello samp forum.

I have created this /enter & /exit command. There's two shops, there goes to the same place.

Here's the code

Код:
CMD:enter(playerid, params[])
{
	  if(IsPlayerInRangeOfPoint(playerid, 3.0, 1553.779052, -1675.300048, 16.195312))
		{
      SetPlayerPos(playerid, 246.6695, 65.8039, 1003.6406);//PD
      SetPlayerInterior(playerid, 6);
      }
      if(IsPlayerInRangeOfPoint(playerid, 3.0, 1929.604980, -1776.355957, 13.546875))
		{
	  	  SetPlayerPos(playerid, -25.7220, -187.8216, 1003.5469);//Shop1
	  	  SetPlayerInterior(playerid, 17);
		}
      if(IsPlayerInRangeOfPoint(playerid, 3.0, 2423.711181, -1742.248657, 13.546875))
		{
			SetPlayerPos(playerid, -25.7220, -187.8216, 1003.5469);//Shop2
  			SetPlayerInterior(playerid, 17);
	  }
	  return 1;
}

CMD:exit(playerid, params[])
{
	  if(IsPlayerInRangeOfPoint(playerid, 3.0, 246.6695, 65.8039, 1003.6406))
		{
      SetPlayerPos(playerid, 1553.779052, -1675.300048, 16.195312);//PD
      SetPlayerInterior(playerid, 0);
      }
      if(IsPlayerInRangeOfPoint(playerid, 3.0, -25.7220, -187.8216, 1003.5469))
		{
		    SetPlayerPos(playerid, 1929.604980, -1776.355957, 13.546875);//Shop1
		    SetPlayerInterior(playerid, 0);
		}
		if(IsPlayerInRangeOfPoint(playerid, 3.0, -25.7220, -187.8216, 1003.5469))
		{
		    SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 2423.711181, -1742.248657, 13.546875);//Shop2
	  }
	  return 1;
}
Is there anyway. I can make it so, it remeber the players last position?

Thanks for the help
Reply


Messages In This Thread
Need your help - by canip - 16.05.2016, 13:00
Re: Need your help - by BiosMarcel - 16.05.2016, 14:29
Re: Need your help - by canip - 16.05.2016, 15:11
Re: Need your help - by BiosMarcel - 16.05.2016, 15:31
Re: Need your help - by Sew_Sumi - 16.05.2016, 15:39
Re: Need your help - by canip - 16.05.2016, 16:22
Re: Need your help - by Sew_Sumi - 16.05.2016, 17:11

Forum Jump:


Users browsing this thread: 2 Guest(s)