[Ajuda] Problema /destruirveiculo
#3

To te passando o meu!

pawn Код:
if(strcmp(cmd, "/deletcar", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] > 1){
new vid;
vid = GetPlayerVehicleID(playerid);
if(vid == PREFLS[0] || vid == PREFLS[1] || vid == PREFLS[2] || vid == PREFLS[3] || vid == PREFLS[4] || vid == PREFLS[5] || vid == PREFLS[6] || vid == PREFLS[7] || vid == PREFLS[8] || vid == PREFLS[9] || vid == DPLS[0] || vid == DPLS[1] || vid == DPLS[2] || vid == DPLS[3] || vid == DPLS[4] || vid == DPLS[5] || vid == DPLS[6] || vid == DPLS[7] || vid == DPLS[8] || vid == DPLS[9] || vid == DPLS[10] || vid == DPLS[11] || vid == DPLS[12] || vid == DPLS[13] || vid == DPLS[14]
|| vid == DPLS[15] || vid == DPLS[16] || vid == DPLS[17] || vid == DPLS[18] || vid == DPLS[19] || vid == DPLS[20] || vid == DPLS[21] || vid == DPLS[22] || vid == DPLS[23] || vid == DPLS[24] || vid == DPLS[25] || vid == DPLS[26] || vid == DPLS[27] || vid == DPLS[28] || vid == DPLS[29] || vid == DPLS[30] || vid == DPLS[31] || vid == DPLS[32] || vid == subcars[0] || vid == subcars[1] || vid == subcars[2] || vid == subcars[3] || vid == razzercars[0] || vid == razzercars[1]
|| vid == razzercars[2] || vid == razzercars[3] || vid == razzercars[4] || vid == razzercars[5] || vid == razzercars[6] || vid == pedrocars[0] || vid == pedrocars[1] || vid == pedrocars[2] || vid == pedrocars[3] || vid == pedrocars[4] || vid == pedrocars[5] || vid == diegocar[0] || vid == diegocar[1] || vid == diegocar[2] || vid == diegocar[3] || vid == hospcars[0] || vid == hospcars[1] || vid == hospcars[2] || vid == hospcars[3] || vid == hospcars[4] || vid == hospcars[5]){
SendClientMessage(playerid, Vermelho, "(ERRO) Este carro nao pode ser deletado!");
return 1;
}
for(new carro = 0; carro < MAX_CARROS; carro++)
{
format(string, sizeof(string), "carro%d.ini", carro);
if(vid == dini_Int(string, "Id")){
SendClientMessage(playerid, Vermelho, "(ERRO) Este carro nao pode ser deletado!");
return 1;
}
}
DestroyVehicle(vid);
SendClientMessage(playerid,0x0080FFAA,"(INFO) Veículo Deletado com sucesso!");
return 1;
}
}
Reply


Messages In This Thread
Problema /destruirveiculo - by Douglas651 - 31.08.2013, 00:19
Re: Problema /destruirveiculo - by Dana_scully - 31.08.2013, 02:22
Re: Problema /destruirveiculo - by Sti - 31.08.2013, 02:28

Forum Jump:


Users browsing this thread: 1 Guest(s)