Hello again.
Код:
new player = pStunt[playerid][Targeid];
if(listitem == 0) // Goto
{
new Float:x,Float:y,Float:z;
ClearPlayerStatus(playerid);
GetPlayerPos(player,x,y,z);
SetPlayerInterior(playerid,GetPlayerInterior(player));
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid),x+3,y,z);
LinkVehicleToInterior(GetPlayerVehicleID(playerid),GetPlayerInterior(player));
return pStunt[playerid][Targeid] = -1;
}
else return pStunt[playerid][Targeid] = -1 && SetPlayerPosition(playerid,x,y,z+2);
}