Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //GetVehicleInterior by [DOG]irinel1996 - Hook method by Y_Less
- native IsValidVehicle(vehicleid); //Esto no debería dar problemas, viene incluido en el SA-MP, pero no está definido (lo definimos aquí).
- static stock
- gvi_gInterior[MAX_VEHICLES];
- stock gvi_LinkVehicleToInterior(vehicleid, interiorid)
- {
- if (IsValidVehicle(vehicleid))
- {
- gvi_gInterior[vehicleid - 1] = interiorid;
- return LinkVehicleToInterior(vehicleid, interiorid);
- }
- return 0;
- }
- #if defined gvi_LinkVehicleToInterior
- #undef LinkVehicleToInterior
- #else
- #define _ALS_LinkVehicleToInterior
- #endif
- #define LinkVehicleToInterior gvi_LinkVehicleToInterior
- stock GetVehicleInterior(vehicleid)
- {
- if (IsValidVehicle(vehicleid))
- {
- return gvi_gInterior[vehicleid - 1];
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement