17.10.2017, 21:55
From what I understand, I think you're after a function which checks whether a vehicle is a helicopter. In order to use the function "IsAHelicopter", you'll have to ensure there is an actual function with that name such as:
Код:
new bool:MyVariable; IsAHelicopter(vehicleid) { new vehicle = GetVehicleModel(vehicleid); if(vehicle == 417 || vehicle == 425 || vehicle == 447 || vehicle == 469 || vehicle == 487 || vehicle == 488 || vehicle == 497 || vehicle == 548 || vehicle == 563) { // The vehicle IDs above in the 'if statement' are all the helicopter models in GTA SA, do not remove them. MyVariable = true; } else { MyVariable = false; } return 1; }