Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SuYaNw - Garfield xD
- new
- Veiculos = -1
- ;
- stock sDestroyVehicle(vehicleid)
- {
- if(GetVehicleModel(vehicleid)) return false;
- Veiculos--;
- return CallRemoteFunction("DestroyVehicle", "i", vehicleid);
- }
- stock sAddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2)
- {
- Veiculos++;
- return AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);
- }
- stock sAddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay)
- {
- Veiculos++;
- return AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay);
- }
- stock sCreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
- {
- Veiculos++;
- return CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
- }
- #define DestroyVehicle sDestroyVehicle
- #define AddStaticVehicle sAddStaticVehicle
- #define AddStaticVehicleEx sAddStaticVehicleEx
- #define CreateVehicle sCreateVehicle
- #define GetMaxVehicles() Veiculos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement