07.08.2012, 18:47
Quote:
This stock functions will check if if vehicle is a boat or an airplane/helicopter
-code- |
pawn Код:
stock IsBoatVehicle( model )
{
static const
BoatVehicles[ ] = {
472, 473, 595, 493, 430, 453, 484, 446, 452, 454
}
;
for( new i; i < sizeof( BoatVehicles ); i++ ) {
if( BoatVehicles[ i ] == model ) return 1;
}
return 0;
}
stock IsAirVehicle( model )
{
static const
AirVehicles[ ] = {
577, 511, 592, 520, 593, 512, 476, 553, 460, 519, 548, 425, 488, 487, 417, 563, 497, 447, 469
}
;
for( new i; i < sizeof( AirVehicles ); i++ ) {
if( AirVehicles[ i ] == model ) return 1;
}
return 0;
}