[Ajuda] Carga nгo respawna
#6

Quote:
Originally Posted by engelguilherme
Посмотреть сообщение
Coloca isso no ppc_playercommands
Код:
CMD:rc(playerid, params[])
{
 SendAdminText(playerid, "/rc", params);

 if (APlayerData[playerid][PlayerLevel] < 3) return SendClientMessageToAll(-1, "{FFFF00}[ERRO]  {FF0000}Vocк nгo tem permissгo para usar esse comando!");
 {
  
  for(new i; i < MAX_VEHICLES; i++)
  {
   if(!IsVehicleInUse(i))
   SetVehicleToRespawn(i);
  }
  SendClientMessageToAll(-1, "{FFFF00}[INFO] {00FF00}O administrador respawnou todos os veнculos desocupados!");
 }
 return 1;
}
e isso no final da gm em stock

Код:
stock IsVehicleInUse(vehicleid)
{
    new Veiculo;
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(GetPlayerVehicleID(i) == vehicleid)
            Veiculo = vehicleid;
        if(GetVehicleTrailer(GetPlayerVehicleID(i)) == vehicleid)
            Veiculo = vehicleid;
    }
    return Veiculo;
}
pra mim deu certo ele so respawna trailer quando n tiver em uso '-'
Funcionou, valeu fico grato
Reply


Messages In This Thread
Carga nгo respawna - by Performancetotal - 29.01.2014, 18:10
Re: Carga nгo respawna - by Performancetotal - 29.01.2014, 18:35
Re: Carga nгo respawna - by ViniBorn - 29.01.2014, 19:31
Re: Carga nгo respawna - by Performancetotal - 29.01.2014, 19:45
Re: Carga nгo respawna - by engelguilherme - 31.01.2014, 12:43
Re: Carga nгo respawna - by Performancetotal - 31.01.2014, 14:33

Forum Jump:


Users browsing this thread: 4 Guest(s)