26.09.2009, 12:02
Код:
IsPlayerInInvalidNosVehicle(playerid,vehicleid){ new InvalidNosVehicles[MAX_INVALID_NOS_VEHICLES] ={ 581,523,462,521,463,522,461,448,468,586, 509,481,510,472,473,493,595,484,430,453, 452,446,454,590,569,537,538,570,449, }; 806 vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInVehicle(playerid,vehicleid)){ for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++){ if(GetVehicleModel(vehicleid) == InvalidNosVehicles[i]){ return true; } } } return false; }