10.12.2010, 19:32
Quote:
Please use this function with care and don't go assigning custom numberplates to vehicles that don't have plates (like planes/boats etc), as this would result in unneeded processing time on the client. |
Please use this function with care and don't go assigning custom numberplates to vehicles that don't have plates (like planes/boats etc), as this would result in unneeded processing time on the client. |
for(new v = 0; v < MAX_VEHICLES; v++)
{
if(IsAPlane(GetVehicleModel(v))) continue;
if(IsABoat(GetVehicleModel(v))) continue;
//do stuff
stock IsAPlane(modelid)
{
switch(modelid)
{
case 593,592,577,563,553,548,520,519,513,512,511,
497,488,487,476,469,460,447,425,417,493,484,453: return 1;
default: return 0;
}
return 0;
}
stock IsABoat(modelid)
{
switch(modelid)
{
case 472,473,595,493,430,453,484,446,452,454: return 1;
default: return 0;
}
return 0;
}