Author Topic: Plant Bomb System by me (Moby)  (Read 6172 times)

0 Members and 1 Guest are viewing this topic.

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Plant Bomb System by me (Moby)
« on: July 30, 2012, 12:34:17 am »
Plant Bomb System



Work 120% ! I tested it .

[FilterScript] Plant Bomb System:  Download

I made this for shaeel ahmed.

But you can take it
  ;)

Put this on your gm top:

Code: [Select]
new HaveBomb[MAX_PLAYERS];
new BombPlanted[MAX_VEHICLES];

OnPlayerDisconnect:

Code: [Select]
HaveBomb[playerid] = 0;
This on public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger) :

Code: [Select]
if(BombPlanted[vehicleid] == 1) {
                SendClientMessage(playerid,0xAA3333AA,"In this vehicle is a bomb planted ! You can't escape !");
                SetVehicleHealth(vehicleid,0);
                PutDirectlyInVehicle(playerid,vehicleid); // it keeps you in the car
                BombPlanted[vehicleid] = 0;
                }

Now, the commands :

Code: [Select]
else if(strcmp(cmd, "buybomb", true) == 0) {
new cash = GetPlayerMoney(playerid);
if(HaveBomb[playerid] == 1) {
    SendClientMessage(playerid,0xAA3333AA,"Already have a bomb !");
    }
if(HaveBomb[playerid] == 0) {
if(cash >= 3000) {
    SetPlayerMoney(playerid,cash - 3000);
    HaveBomb[playerid] = 1;
    SendClientMessage(playerid,0xFFFFFFAA,"You bought a bomb that has cost you $ 3,000");
    }
if(cash < 3000) {
    SendClientMessage(playerid,0xAA3333AA,"You do not have enough money to buy a bomb, need $ 3,000");
    }
    }
return 1;
}
else if(strcmp(cmd, "plantbomb", true) == 0) {
    if(IsPlayerInAnyVehicle(playerid)) {
new vehicleid = GetPlayerVehicleID(playerid);
        if(HaveBomb[playerid] == 1) {
            if(BombPlanted[vehicleid] == 1) {
                SendClientMessage(playerid,0xAA3333AA,"In this car is already planted a bomb !");
              }
if(BombPlanted[vehicleid] == 0) {
BombPlanted[vehicleid] = 1;
RemovePlayerFromVehicle(playerid);
HaveBomb[playerid] = 0;
SendClientMessage(playerid,0xFFFFFFAA,"The bomb was planted successfully");
SendClientMessage(playerid,0xFFFFFFAA,"The next player to enter the car as a driver will be stuck in the car and the bomb will be detonated!");
}
}
else {
    SendClientMessage(playerid,0xAA3333AA,"You must first buy a bomb !");
    }
}
else {
    SendClientMessage(playerid,0xAA3333AA,"You need to be in a vehicle !");
    }
return 1;
}

Have Fun !
« Last Edit: July 31, 2012, 11:36:16 pm by sseebbyy »

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: [FS] Plant Bomb System
« Reply #1 on: July 31, 2012, 02:23:31 am »
Nice work i used you filterscript jejeje but only one thing you create only one location to buy bomb? example 8 ball in astillero??

I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: [FS] Plant Bomb System
« Reply #2 on: July 31, 2012, 02:33:34 am »
Nice work i used you filterscript jejeje but only one thing you create only one location to buy bomb? example 8 ball in astillero??

no, you can buy a bomb from where you want. :P

Is more like an Simple Plant Bomb System  ;D

You can develop it.

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.