Return To The First Position
#5

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;
}
Reply


Messages In This Thread
Return To The First Position - by misho1 - 06.11.2011, 09:50
Re: Back To The First Position - by Stigg - 06.11.2011, 09:52
Re: Back To The First Position - by Kingunit - 06.11.2011, 09:52
Re: Return To The First Position - by misho1 - 06.11.2011, 10:01
Re: Return To The First Position - by Kostas' - 06.11.2011, 10:11
Re: Return To The First Position - by misho1 - 06.11.2011, 10:14
Re: Return To The First Position - by Kostas' - 06.11.2011, 10:17
Re: Return To The First Position - by Stigg - 06.11.2011, 10:18
Re: Return To The First Position - by Kostas' - 06.11.2011, 10:20
Re: Return To The First Position - by Stigg - 06.11.2011, 10:23

Forum Jump:


Users browsing this thread: 6 Guest(s)