25.05.2015, 11:03
Ok, so my problem is that for normal vehicles, it works properly: ex "You're don't have a driving license", but If i create a private vehicle with my command even if it's a plane its says "You don't have a driving license" when it should say "You don't have a fly license"
I've checked and the problem is here:
But i just can't understand why....?
I've checked and the problem is here:
pawn Код:
stock IsVehicleBoat(vehicleid)
{
new yes = 0;
for(new i = 0; i < sizeof(ServerCarss[]); i++)
{
if(vehicleid == ServerCarss[i])
{
if( (GetVehicleModel(ServerCarss[i]) == 430) || (GetVehicleModel(ServerCarss[i]) == 446 ) || (GetVehicleModel(ServerCarss[i]) == 452) || (GetVehicleModel(ServerCarss[i]) == 453) || (GetVehicleModel(ServerCarss[i]) == 454) || (GetVehicleModel(ServerCarss[i]) == 472) || (GetVehicleModel(ServerCarss[i]) == 472) || (GetVehicleModel(ServerCarss[i]) == 473) || (GetVehicleModel(ServerCarss[i]) == 484 ) || (GetVehicleModel(ServerCarss[i]) == 493) || (GetVehicleModel(ServerCarss[i]) == 595) )
{ yes = 1; break; }
}
}
if(yes == 1) return 1;
if( (vehicleid == 430) || (vehicleid == 446 ) || (vehicleid == 452) || (vehicleid == 453) || (vehicleid == 454) || (vehicleid == 472) || (vehicleid == 472) || (vehicleid == 473) || (vehicleid == 484 ) || (vehicleid == 493) || (vehicleid == 595) )
return 1;
return 0;
}
stock IsVehicleBike(vehicleid)
{
new yes = 0;
for(new i = 0; i < sizeof(ServerCarss[]); i++)
{
if(vehicleid == ServerCarss[i])
{
if((GetVehicleModel(ServerCarss[i]) == 481) || (GetVehicleModel(ServerCarss[i]) == 509) )
{ yes=1; break; }
}
}
if(yes == 1) return 1;
if((vehicleid == 481) || (vehicleid == 509) )
return 1;
for(new i = 0; i < sizeof(BMXRent); i++)
if(vehicleid == BMXRent[i])
return 1;
return 0;
}
stock IsVehicleAircraft(vehicleid)
{
new yes = 0;
for(new i = 0; i < sizeof(ServerCarss[]); i++)
{
if(vehicleid == ServerCarss[i])
{
if( (GetVehicleModel(ServerCarss[i]) == 417) || (GetVehicleModel(ServerCarss[i]) == 425) || (GetVehicleModel(ServerCarss[i]) == 447) || (GetVehicleModel(ServerCarss[i]) == 460) || (GetVehicleModel(ServerCarss[i]) == 469) || (GetVehicleModel(ServerCarss[i]) == 476) || (GetVehicleModel(ServerCarss[i]) == 487) || (GetVehicleModel(ServerCarss[i]) == 488) || (GetVehicleModel(ServerCarss[i]) == 497) || (GetVehicleModel(ServerCarss[i]) == 511) )
{ yes = 1; break; }
if ( (GetVehicleModel(ServerCarss[i]) == 512) || (GetVehicleModel(ServerCarss[i]) == 513) || (GetVehicleModel(ServerCarss[i]) == 519) || (GetVehicleModel(ServerCarss[i]) == 520) || (GetVehicleModel(ServerCarss[i]) == 548) || (GetVehicleModel(ServerCarss[i]) == 553) || (GetVehicleModel(ServerCarss[i]) == 563) || (GetVehicleModel(ServerCarss[i]) == 577) || (GetVehicleModel(ServerCarss[i]) == 592) || (GetVehicleModel(ServerCarss[i]) == 593) )
{ yes = 1; break; }
}
}
if(yes == 1) return 1;
if( (vehicleid == 417) || (vehicleid == 425) || (vehicleid == 447) || (vehicleid == 460) || (vehicleid == 469) || (vehicleid == 476) || (vehicleid == 487) || (vehicleid == 488) || (vehicleid == 497) || (vehicleid == 511) )
return 1;
if ( (vehicleid == 512) || (vehicleid == 513) || (vehicleid == 519) || (vehicleid == 520) || (vehicleid == 548) || (vehicleid == 553) || (vehicleid == 563) || (vehicleid == 577) || (vehicleid == 592) || (vehicleid == 593) )
return 1;
return 0;
}