15.01.2015, 14:33
eu salvo a posiзгo quando to dentro do carro e e vou dar /irp pra voltar pra posiзгo salva.. e o carro cai no meio do nada kkkk
CODIGO ABAIXO:
CODIGO ABAIXO:
pawn Код:
CMD:sp(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
Msg(playerid, cortag, "{8B658B}- INFO - {FFFFFF}Vocк Salvou Sua Posiзгo");
GetVehiclePos(playerid, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
GetVehicleZAngle(playerid, Angle[playerid]);
PosI[playerid] = GetPlayerInterior(playerid);
PosSalva[playerid] = true;
return 1;
}
else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
Msg(playerid, cortag, "{8B658B}- INFO - {FFFFFF}Vocк Salvou Sua Posiзгo");
GetPlayerPos(playerid, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
GetPlayerFacingAngle(playerid, Angle[playerid]);
PosI[playerid] = GetPlayerInterior(playerid);
PosSalva[playerid] = true;
return 1;
}
return 1;
}
CMD:irp(playerid)
{
if(PosSalva[playerid] == false) return Msg(playerid, cortag, "- INFO - Vocк Nгo Tem Nenhuma Posiзгo Salva Ainda !");
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
Msg(playerid, cortag, "{8B658B}- INFO - {FFFFFF}Posiзгo Carregada Com Sucesso!");
SetVehiclePos(GetPlayerVehicleID(playerid), Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
SetVehicleZAngle(GetPlayerVehicleID(playerid), Angle[playerid]);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), PosI[playerid]);
return 1;
}
else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
Msg(playerid, cortag, "{8B658B}- INFO - {FFFFFF}Posiзгo Carregada Com Sucesso!");
SetPlayerPos(playerid, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
SetPlayerFacingAngle(playerid, Angle[playerid]);
SetPlayerInterior(playerid, PosI[playerid]);
return 1;
}
return 1;
}