SA-MP Forums Archive
[AJUDA] /salvarpos nгo salva - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] /salvarpos nгo salva (/showthread.php?tid=520619)



[AJUDA] /salvarpos nгo salva - logan1910 - 19.06.2014

Eu baixei um FS de concessionaria so que o comando /salvarpos nгo salva a posiзгo do carro:
Quote:

CMDalvarpos(playerid)
{
if(Te_xT[playerid][CarroDono] == INVALID_VEHICLE_ID)
return SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo tem um carro prуprio.");

if(!IsPlayerInAnyVehicle(playerid) || GetPlayerVehicleID(playerid) != Te_xT[playerid][CarroDono])
return SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo estб no seu veнculo.");

new Float, Float:y, Float:z, Float:A;
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
GetVehicleZAngle(GetPlayerVehicleID(playerid), A);

Te_xT[playerid][CarroX] = x;
Te_xT[playerid][CarroY] = y;
Te_xT[playerid][CarroZ] = z;
Te_xT[playerid][CarroAng] = A;

SalvarPlayerCarro(playerid);

SendClientMessage(playerid, 0x00CC00FF, "(SERVER): Seu carro ficarб salvo neste local a partir de agora.");
return true;
}




Re: [AJUDA] /salvarpos nгo salva - TioSlash - 19.06.2014

Quote:
Originally Posted by logan1910
Посмотреть сообщение
Eu baixei um FS de concessionaria so que o comando /salvarpos nгo salva a posiзгo do carro:
pawn Код:
CMD:salvarpos(playerid, params[])
{
if(Te_xT[playerid][CarroDono] == INVALID_VEHICLE_ID)
return SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo tem um carro prуprio.");

if(!IsPlayerInAnyVehicle(playerid) || GetPlayerVehicleID(playerid) != Te_xT[playerid][CarroDono])
return SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo estб no seu veнculo.");

new Float:x, Float:y, Float:z, Float:A;
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
GetVehicleZAngle(GetPlayerVehicleID(playerid), A);

Te_xT[playerid][CarroX] = x;
Te_xT[playerid][CarroY] = y;
Te_xT[playerid][CarroZ] = z;
Te_xT[playerid][CarroAng] = A;

SalvarPlayerCarro(playerid);

SendClientMessage(playerid, 0x00CC00FF, "(SERVER): Seu carro ficarб salvo neste local a partir de agora.");
return true;
}
'-'