[Ajuda] Bug random
#7

Eu queria fazer assim: A cada 1 hora 1 tipo de carro seria vendido, mas a random que eu fiz ta chamando muitas vezes e nгo consigo verificar o IsPlayerInArea sem chamar a random junto olha:


PHP код:
//Aqui ele verifica a cara 1 segundo se ele tб na posiзгo
if(IsPlayerInArea(playerid, -1964.867553253.466934, -1925.898315309.475463)) 
MAS

PHP код:
        if(Veh == VeiculosBBO[RandomMSG[randMSG][0]] || Veh == VeiculosBBO[RandomMSG[randMSG][1]] || Veh == VeiculosBBO[RandomMSG[randMSG][2]] || Veh == VeiculosBBO[RandomMSG[randMSG][3]] || Veh == VeiculosBBO[RandomMSG[randMSG][4]] || Veh == VeiculosBBO[RandomMSG[randMSG][5]])
//Aqui ele fica chamando a cada 1 minuto alterando o modelo o que nгo deveria acontecer...
        
{
            
SendClientMessage(playerid0xFF0000FF,"VENDIDO!");
            for(new 
plid=0;plid<MAX_PLAYERS;++plid)
            {
                
KillTimer(TimerEstaNaGarragem[plid]);
                
SetVehicleToRespawn(Veh);
                
Block[plid] = false;
            }
        } 
Reply


Messages In This Thread
Bug random - by RafaelMau - 21.10.2015, 15:12
Re: Bug random - by Abravanel - 21.10.2015, 15:49
Re: Bug random - by RafaelMau - 21.10.2015, 17:24
Re: Bug random - by Dr_Pawno - 23.10.2015, 02:07
Re: Bug random - by RafaelMau - 23.10.2015, 02:16
Re: Bug random - by Dr_Pawno - 23.10.2015, 02:20
Re: Bug random - by RafaelMau - 23.10.2015, 02:23
Re: Bug random - by Dr_Pawno - 23.10.2015, 03:58
Re: Bug random - by RafaelMau - 23.10.2015, 12:45
Re: Bug random - by Dr_Pawno - 23.10.2015, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)