28.05.2010, 17:53
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?
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?