16.05.2016, 13:00
Hello samp forum.
I have created this /enter & /exit command. There's two shops, there goes to the same place.
Here's the code
Is there anyway. I can make it so, it remeber the players last position?
Thanks for the help
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; }
Thanks for the help