[Ajuda] Erro do Veiculo
#1

Pessoal, tou com problema que й: quando um veiculo explode no servidor ele nгo respawna
o modelo que tou usando й esse:

PHP код:
AddStaticVehicleEx(428,568.6840,-1262.7968,16.9294,279.6335,6,6); // Veiculo Forte 1
AddStaticVehicleEx(428,569.5797,-1266.9418,16.6769,281.6876,6,6); // Veiculo Forte 2 
o comando que da respawn nos veiculo sгo esses:

PHP код:
        if (strcmp(cmd"/rv",true) == 0){
    if(
pAdmin[playerid] >= || pAdmin[playerid] >= || pAdmin[playerid] >= 5){
    new 
pname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
    
format(stringsizeof(string), " | INFO - SERVER | O Administrador %s (%d) deu respawn nos veнculos."pname,playerid);
    
SendClientMessageToAll(admstring);
     for(new 
vv<MAX_VEHICLESv++) SetVehicleToRespawn(v);
    
SendClientMessage(playeridVerde"[ X ] Veiculos Respawnados!");
    return 
1;
    }
    }
    if(!
strcmp(cmd,"/rvs"true) && pAdmin[playerid] > 0){
    if(
pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == 5){
    
format(stringsizeof(string), "| INFO - SERVER | O(A) Administrador(a): %s respawnou todos os veнculos sem uso!",PlayerName(playerid));
    
SendClientMessageToAll(ocdstring);
    for(new 
iMAX_VEHICLESi++)
    if(!
IsVehicleInUse(i))
    
SetVehicleToRespawn(i);
    }
    return 
1;
    } 
Qual й o problema??
Reply


Messages In This Thread
Erro do Veiculo - by DeusGrego - 01.01.2018, 04:17
Re: Erro do Veiculo - by Marllun - 01.01.2018, 04:24
Re: Erro do Veiculo - by DeusGrego - 01.01.2018, 05:48
Re: Erro do Veiculo - by Marllun - 01.01.2018, 05:51
Re: Erro do Veiculo - by SpikeCompiler - 01.01.2018, 10:25
Re: Erro do Veiculo - by victorara - 05.01.2018, 14:34

Forum Jump:


Users browsing this thread: 6 Guest(s)