[AJUDA] SPAWN CARRO
#7

Gente nгo й nada disso! No meu gamemode deu isto tambem. O erro й que o Car_Amount nгo esta na quantidade de veiculos no servidor. Esta a mais. Recomendo:
pawn Код:
new VeiculosNoServidor;
stock CriarVeiculo(tipo, Float:x, Float:y, Float:z, Float:rz, c1, c2, tempo)
{
    CreateVehicle(tipo, x, y, z, rz, c1, c2, tempo);
    VeiculosNoServidor++;
    return 1;
}
Aн, em vez de vc usar o CreateVehicle ou AddStaticVehicle vocк poe o CriarVeiculo e muda o seu /rc para:
pawn Код:
if(strcmp(cmd, "/resetarcarros", true) == 0 || strcmp(cmd, "/rc", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 4000)
            {
                SendClientMessage(playerid, COLOR_RED, "[Erro] Vocк nгo estб autorizado a usar este comando.");
                return 1;
            }
            new bool:unwanted[MAX_VEHICLES];
            for(new player=0; player < MAX_PLAYERS; player++)
            {
                if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
            }
            for(new car = 1; car <= VeiculosNoServidor; car++)
            {
                if(!unwanted[car]) SetVehicleToRespawn(car);
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "[Administrador] Veнculos inutilizados resetados por %s.", sendername);
            BroadCast(COLOR_YELLOW2, string);
            return 1;
        }
    }
Espero ajudar!
Reply


Messages In This Thread
[AJUDA] SPAWN CARRO - by viniciusstreet - 17.05.2011, 04:30
Re: [AJUDA] SPAWN CARRO - by Pharrel - 17.05.2011, 05:05
Re: [AJUDA] SPAWN CARRO - by Jorge_Hard - 17.05.2011, 07:00
Re: [AJUDA] SPAWN CARRO - by Shadoww5 - 17.05.2011, 09:12
Re: [AJUDA] SPAWN CARRO - by [S]trong - 17.05.2011, 10:25
Re: [AJUDA] SPAWN CARRO - by deregudegu - 17.05.2011, 16:00
Re: [AJUDA] SPAWN CARRO - by Dr_Pawno - 17.05.2011, 17:24
Re: [AJUDA] SPAWN CARRO - by Shadoww5 - 17.05.2011, 18:08
Re: [AJUDA] SPAWN CARRO - by [S]trong - 17.05.2011, 19:09
Re: [AJUDA] SPAWN CARRO - by Dr_Pawno - 17.05.2011, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)