Help Me With Invaild Vehicle Spawn
#2

add this to your cmd after this
if(!IsNumeric(tmp)) //and so on....
line
pawn Код:
if(!IsLegitVeh(car)) return SendClientMessage(playerid,red,"ERROR: Illegal vehicle-model");

//the function:
stock IsLegitVeh(d)
    {
        switch(d)
        {
            case 520,425,432,447: d=0;//add more model id's here if needed.
            default: d=1;
        }
        return d;
    }
Reply


Messages In This Thread
Help Me With Invaild Vehicle Spawn - by donhu789 - 03.01.2014, 09:16
AW: Help Me With Invaild Vehicle Spawn - by CutX - 03.01.2014, 09:56
Re: Help Me With Invaild Vehicle Spawn - by [EnErGyS]KING - 03.01.2014, 09:59

Forum Jump:


Users browsing this thread: 1 Guest(s)