Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- // HOOK and functions
- new VehicleCol[MAX_VEHICLES][2];
- ChangeVehColour(vehicleid, color1, color2) {
- ChangeVehicleColor(vehicleid, color2, color2);
- VehicleCol[vehicleid][0] = color1;
- VehicleCol[vehicleid][1] = color2;
- }
- GetVehicleColour(vehicleid, &colorz1, &colorz2) {
- colorz1 = VehicleCol[vehicleid][0];
- colorz2 = VehicleCol[vehicleid][1];
- }
- #define ChangeVehicleColor ChangeVehColour
- // Example if usage:
- public OnVehicleSpawn(vehicleid) {
- ChangeVehicleColor(vehicleid, 0, 6);
- new col1, col2;
- GetVehicleColour(vehicleid, col1, col2);
- printf("%d %d",col1, col2);
- }
Advertisement
Add Comment
Please, Sign In to add comment