0 Members and 1 Guest are viewing this topic.
new HaveBomb[MAX_PLAYERS];new BombPlanted[MAX_VEHICLES];
HaveBomb[playerid] = 0;
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; }
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;}
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.
click here -> Seby's Tricks & Discoveries Showroom
Nice work i used you filterscript jejeje but only one thing you create only one location to buy bomb? example 8 ball in astillero??