05.05.2009, 23:41
Quote:
Originally Posted by 0rb
Donny you don't need the new v because the switch statement is evaluated only once :P
|
Revised code:
pawn Код:
IsPlayerInPlane( playerid )
{
// no need for the first check now as the case will be 0 so it will return false, single instruction ftw :)
switch ( GetVehicleModel( GetPlayerVehicleID( playerid ) ) )
{
case 548, 469, 447, 563, 497, 488, 487, 417, 425 : return true;
}
return false;
}