need help with carshop
#4

Added a few things
I've set the 'vehid' to 400 (model id starts with 400)
Added a check to see if the model id is more than 400 and less than 611 (model id ends at 611)

pawn Code:
/* new vehid; // at top of the script if you are using it global */

if(!strcmp(cmdtext, "/pirmyn", true))
{
        new vehid;
        if(vehid >= 400 && vehid <= 611)
        {
            vehid = 400;
            DestroyVehicle(vehic[vehid]);
            vehid++;
            vehic[vehid] = CreateVehicle(400,-1954.6177,260.2105,35.5101,33.9648,0,0,-1); // vehicles start with 400
        }
        else
        {
            vehid = 400;
        }
        return 1;
}
Reply


Messages In This Thread
need help with carshop - by ancezas - 31.08.2011, 13:41
Re: need help with carshop - by TouR - 31.08.2011, 13:44
Re: need help with carshop - by ancezas - 31.08.2011, 14:55
Re: need help with carshop - by Pinguinn - 31.08.2011, 15:29
Re: need help with carshop - by ancezas - 31.08.2011, 15:32
Re: need help with carshop - by Pinguinn - 31.08.2011, 15:35

Forum Jump:


Users browsing this thread: 3 Guest(s)