Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using GTA;
- namespace GTAModCSHARP {
- class AutoBomba {
- private Vehicle auto;
- private Blip icono;
- public AutoBomba(Vehicle v, Blip b) {
- auto = v;
- icono = b;
- }
- public AutoBomba() {
- }
- public void setAuto(Vehicle auto) {
- this.auto = auto;
- }
- public void setBlip(Blip b) {
- icono = b;
- }
- public Blip getBlip() {
- return icono;
- }
- public Vehicle getAuto() {
- return auto;
- }
- public void explode(Vector3 pos) {
- if (auto.Position.DistanceTo(pos) <= 100) {
- auto.Explode();
- icono.Delete();
- } else {
- //Translation: Bomb car out of range (basically the car is too far away for being detonated)
- Game.DisplayText("Auto bomba fuera de rango");
- }
- }
- public void Delete() {
- icono.Delete();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment