21.03.2016, 13:46
Quote:
You can easily solve them. For instance, for job vehicles you can create an another column in database called cJob and define it's stable value as -1. That way script won't confuse vehicle's job type with job id 0. And then you can easily get that cJob variable from database when loading cars.
For example a player wants to ride a taxi without being a taxi driver. You can add a "if" section to OnPlayerEnterVehicle and check if player's job type and vehicle's cJob value matches. If they don't match, you can kick player out of vehicle. All you said can be simply done by using your brain. Cheers. |