Choosing a vehicle model ID
#5

I don't know if I'm right or if I misunderstood your idea:
PHP код:
stock IsACar(modelid)
{
    switch(
modelid)
    {
        case 
.. 400611 .. 1000,                                                                                         // Wrong vehicle ID
        
417425447460469476487488497511 .. 513519520548553563577592593,                    // Plane & Helicopters
        
430446452453454472473484483595,                                                                    // Boats
        
435441449450464465501537538539545564569 .. 572583584590591594606607608610 : return false// Others (RC, trailer, etc..)
        
default : return true;
    }
    return 
true;
}
GetRandomModelCar(vehicleid)
{
    static 
a;
    do
    {
        
random(211) + 400
    }
    while(!
IsACar(a));
    return 
a;

Reply


Messages In This Thread
Choosing a vehicle model ID - by JaKe Elite - 18.11.2016, 11:14
Re: Choosing a vehicle model ID - by TonyII - 18.11.2016, 12:33
Re: Choosing a vehicle model ID - by JaKe Elite - 18.11.2016, 12:54
Re: Choosing a vehicle model ID - by GoldenLion - 18.11.2016, 13:28
Re: Choosing a vehicle model ID - by Dayrion - 18.11.2016, 13:52
Re: Choosing a vehicle model ID - by JaKe Elite - 19.11.2016, 03:31
Re: Choosing a vehicle model ID - by JaKe Elite - 19.11.2016, 05:27
Re: Choosing a vehicle model ID - by BroZeus - 19.11.2016, 06:43
Re: Choosing a vehicle model ID - by Vince - 19.11.2016, 08:35
Re: Choosing a vehicle model ID - by GoldenLion - 19.11.2016, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)