03.05.2015, 20:37
Код:
CallBack:: CarregarCarros(playerid)
{
new Arquivos[64];
format(Arquivos, sizeof(Arquivos), "Servidor/CarrosConce/%sConce.cfg",PlayerName(playerid));
{
if(dini_Exists(Arquivos))
{
if(strcmp(PlayerName(playerid),dini_Get(Arquivos,"Dono"),true)==0)
{
new carroconce;
new modelo[MAX_PLAYERS];
new COR1[MAX_PLAYERS];
new COR2[MAX_PLAYERS];
new Float:CoordenadaX[MAX_PLAYERS];
new Float:CoordenadaY[MAX_PLAYERS];
new Float:CoordenadaZ[MAX_PLAYERS];
new Float:CoordenadaA[MAX_PLAYERS];
modelo[playerid] = dini_Int(Arquivos,"Modelo");
COR1[playerid] = dini_Int(Arquivos,"COR1");
COR2[playerid] = dini_Int(Arquivos,"COR2");
CoordenadaX[playerid] = dini_Int(Arquivos,"CoordenadaX");
CoordenadaY[playerid] = dini_Int(Arquivos,"CoordenadaY");
CoordenadaZ[playerid] = dini_Int(Arquivos,"CoordenadaZ");
CoordenadaA[playerid] = dini_Int(Arquivos,"CoordenadaA");
carroconce = CreateVehicle(modelo[playerid], CoordenadaX[playerid], CoordenadaY[playerid], CoordenadaZ[playerid]+1, CoordenadaA[playerid], COR1[playerid], COR2[playerid], -1);
PlayerDados[playerid][pChave] = carroconce;
return true;
}
}
}
return true;
}


