Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ______________________________________________________________________
- | _ _ ________ |
- | ( \ ( \ ( _____ \ |
- | | | | | ______ | | \ \ |
- | | |____| | ( ___\ | | \ \ |
- | | ____ | \ \ (_) | | ) ) |
- | | | | | _ \ \ | | / / |
- | | ) | ) ( )__\ \ | |_____/ / |
- | |_/ |_/ \_______/ |_________/ |
- | |
- | [HSD] High Speed Drivers |
- | |
- | [HSD] Company Clan of Programmers, Scripters, and Mappers |
- |______________________________________________________________________|
- http://forum.sa-mp.com/member.php?u=211939
- Updated Date: 10/16/2013 (MM/DD/YYYY)
- Visit Me on SA-MP Forum for More Updates
- Let the Credits !
- • Super Fast System
- • [1] Command(s)
- • Fast Commands to Enable or Disable System
- • http://forum.sa-mp.com/member.php?u=211939 | Visit Me on SA-MP Forum |.
- ~ Do: ~
- - Must have Permission if you want to Share this on another Website.
- - etc.
- ~ Do Not: ~
- - Remove Credits.
- - Change Author Name / Information.
- - Stealing Filterscript.
- - No Permission but Sharing on another Website.
- - etc.
- [ Information ] :-
- Author: SAMProductions
- FilterScript Name: Simple Car Bomb System v1.0
- Updated Date: 10/16/2013 - (MM/DD/YYYY)
- Thanks To:
- SA-MP Team - a_samp
- You - For Supporting and Downloading
- and to Whoever i forgot to Mention
- -: [ End Information ]
- • Do not Remove the Credits.
- • Do not Change the Author Name / Information.
- • Do not Steal the Filterscript.
- • Disrespecting Any of These, You will Die.
- • Disrespecting Any of These, I'll Rape You.
- • Disrespecting Any of These, I'll Report You.
- • Thanks For Using, Enjoy :)
- //----------------------------------------------------------------------------// */
- #define FILTERSCRIPT
- #include <a_samp>
- new Bomb[MAX_VEHICLES];
- new BombExplodeegem[MAX_PLAYERS];
- new VehicleLo[MAX_PLAYERS];
- new BombExplodeja[MAX_VEHICLES];
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- // AntiDeAMX: Start - "Unarmed (Fist) & Brass Knuckles"
- AntiDeAMX();
- // AntiDeAXM: End
- print("<|--------------------------[Loaded]--------------------------|>");
- print(" | Simple CarBomb System (/makeabomb) Made By: SAMProductions |");
- print("<|--------------------------[Loaded]--------------------------|>");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("<|-------------------------[UnLoaded]-------------------------|>");
- print(" | Simple CarBomb System (/makeabomb) Made By: SAMProductions |");
- print("<|-------------------------[UnLoaded]-------------------------|>");
- return 1;
- }
- #else
- #endif
- stock randomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/makeabomb", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(Bomb[GetPlayerVehicleID(playerid)] == 0)
- {
- SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}Bomb has been Created !");
- BombExplodeegem[playerid] = 1;
- }
- else
- {
- }
- SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}This Car has a Bomb already !");
- }
- else
- {
- SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}You must be in a Vehicle !");
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(BombExplodeegem[playerid] == 1)
- {
- VehicleLo[playerid] = GetPlayerVehicleID(playerid);
- SetTimer("BombVeh", 5000, false);
- BombExplodeegem[playerid] = 0;
- SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}Bomb will be activated in 5 Seconds !");
- new rexp = randomEx(1, 100);
- BombExplodeja[vehicleid] = rexp;
- }
- if(Bomb[vehicleid] == 1)
- {
- if(BombExplodeja[vehicleid] != 16)
- {
- new Float:x, Float:y, Float:z;
- GetVehiclePos(vehicleid, x, y, z);
- CreateExplosion(x, y, z, 5, 10.0);
- SetPlayerHealth(playerid, 0);
- SetPlayerArmour(playerid, 0);
- Bomb[vehicleid] = 0;
- }
- }
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(Bomb[vehicleid] == 1)
- {
- GameTextForPlayer(playerid, "{FF0000}<!> {EEEEEE}This Car has a Bomb already (Chat Introductions).", 2, 1);
- SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}Do not press Space (Handbrake) or Do not exit the Vehicle !");
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(IsPlayerInAnyVehicle(playerid) && Bomb[GetPlayerVehicleID(playerid)] == 1)
- {
- if(newkeys & KEY_HANDBRAKE)
- {
- if(BombExplodeja[GetPlayerVehicleID(playerid)] != 16)
- {
- new Float:x, Float:y, Float:z;
- GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
- CreateExplosion(x, y, z, 5, 10.0);
- SetPlayerHealth(playerid, 0);
- SetPlayerArmour(playerid, 0);
- Bomb[GetPlayerVehicleID(playerid)] = 0;
- }
- }
- }
- return 1;
- }
- forward BombVeh(playerid);
- public BombVeh(playerid)
- {
- Bomb[VehicleLo[playerid]] = 1;
- return 1;
- }
- forward BombCount(playerid);
- public BombCount(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
- CreateExplosion(x, y, z, 5, 10.0);
- SetPlayerHealth(playerid, 0);
- SetPlayerArmour(playerid, 0);
- Bomb[GetPlayerVehicleID(playerid)] = 0;
- return 1;
- }
- AntiDeAMX()
- {
- new a[][] =
- {
- "Unarmed (Fist)",
- "Brass Knuckles"
- };
- #pragma unused a
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement