[Help] Public IsAPlane
#1

I constantly update my server and add cars to it. Well, for faction reasons I have it set which car belongs to which faction. Example:

public IsAPlane(carid)
{
if(carid == 38 || carid == 55 || carid == 73 || carid == 168 || (carid >= 476) && (carid <= 480) || (carid >= 494) && (carid <= 500) || (carid == 505) || (carid >= 359) && (carid <= 363) || (carid == 365) || (carid == 369))
{
return 1;
}
return 0;
}

Well, when I add new cars it gives it an ID and it throws everything out of balance. Is it possible to use some other method instead of using the car ID's?
Reply


Messages In This Thread
[Help] Public IsAPlane - by Rosco_Rich - 28.05.2010, 17:53
Re: [Help] Public IsAPlane - by DeathOnaStick - 28.05.2010, 17:59
Re: [Help] Public IsAPlane - by LTomi - 28.05.2010, 18:05
Re: [Help] Public IsAPlane - by Rosco_Rich - 28.05.2010, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)