[AJUDA] /salvarpos nгo salva
#1

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

Reply


Messages In This Thread
[AJUDA] /salvarpos nгo salva - by logan1910 - 19.06.2014, 17:49
Re: [AJUDA] /salvarpos nгo salva - by TioSlash - 19.06.2014, 19:28

Forum Jump:


Users browsing this thread: 2 Guest(s)