06.11.2011, 10:11
As Kingunit said, you can save position and then load it.
pawn Код:
//At The Top
new Float: X_P[MAX_PLAYERS], Float:Y_P[MAX_PLAYERS], Float: Z_P[MAX_PLAYERS];
CMD:enter(playerid, params[])
{
GetPlayerPos(playerid, X_P[playerid],Y_P[playerid],Z_P[playerid]);
SendClientMessage(playerid,COLOR_GREEN,"Position saved!");
return 1;
}
CMD:exit(playerid, params[])
{
if (GetPlayerState(playerid)==PLAYER_STATE_DRIVER)SetVehiclePos(GetPlayerVehicleID(playerid), X_P[playerid],Y_P[playerid],Z_P[playerid]);
else SetPlayerPos(playerid, X_P[playerid],Y_P[playerid],Z_P[playerid]);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid,COLOR_GREEN,"Position loaded!");
return 1;
}