Quote:
Originally Posted by antonio112
First of all, what's up with these functions:
If I'm not wrong, you're trying to see if a given vehicle model is a boat, correct? Then why do you get the ID of the vehicle? ID has nothing to do with model. So, let me give you an example:
pawn Код:
new newcar = GetVehicleModel(GetPlayerVehicleID(i))
// Now, what this function will do? Will get the model of the vehicle driven by the "i".
And now you'll be able to check if the model is a boat, bike or whatever.
|
IsModelABoat can be a custom callback, and if this is the case then it is not needed to define this again.