/*
______________________________________________________________________
| _ _ ________ |
| ( \ ( \ ( _____ \ |
| | | | | ______ | | \ \ |
| | |____| | ( ___\ | | \ \ |
| | ____ | \ \ (_) | | ) ) |
| | | | | _ \ \ | | / / |
| | ) | ) ( )__\ \ | |_____/ / |
| |_/ |_/ \_______/ |_________/ |
| |
| [HSD] High Speed Drivers |
| |
| [HSD] Company Clan of Programmers, Scripters, and Mappers |
|______________________________________________________________________|
http://forum.sa-mp.com/member.php?u=211939
Updated Date: 10/19/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 Bomb System v2.0
Updated Date: 10/19/2013 - (MM/DD/YYYY)
Thanks To:
SA-MP Team - a_samp
ZeeX - zcmd
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 :)
//----------------------------------------------------------------------------// */
#include <a_samp> // Credits: SA-MP Team
#include <zcmd> // Credits: ZeeX
new BombObject;
new Float:x, Float:y, Float:z, Float:ang;
public OnFilterScriptInit()
{
print("<|---------------------------[Loaded]---------------------------|>");
print(" | Simple Bomb System v2.0 (/plantc4) Made By: SAMProductions |");
print("<|---------------------------[Loaded]---------------------------|>");
return 1;
}
public OnFilterScriptExit()
{
print("<|--------------------------[UnLoaded]--------------------------|>");
print(" | Simple Bomb System v2.0 (/plantc4) Made By: SAMProductions |");
print("<|--------------------------[UnLoaded]--------------------------|>");
return 1;
}
CMD:plantc4(playerid, params[]) // COMMAND: plantc4(playerid, params[])
{
ClearAnimations(playerid);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Bomb Plant Animation
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, ang);
BombObject = CreateObject(3052, x, y, z - 0.9, 0, 0, ang, 500); // Bomb Object [3052]
SetTimer("BombTimer", 16000, false); // 16000 = 16 Seconds (Change it if you want).
SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}You've Planted a C4 ({FF0000}Exploding in: 15 Seconds{EEEEEE}), Go Far Away into the C4.");
SetTimer("fifteen", 1000, 0);
SetTimer("fourteen", 2000, 0);
SetTimer("thirteen", 3000, 0);
SetTimer("twelve", 4000, 0);
SetTimer("eleven", 5000, 0);
SetTimer("ten", 6000, 0);
SetTimer("nine", 7000, 0);
SetTimer("eight", 8000, 0);
SetTimer("seven", 9000, 0);
SetTimer("six", 10000, 0);
SetTimer("five", 11000, 0);
SetTimer("four", 12000, 0);
SetTimer("three", 13000, 0);
SetTimer("two", 14000, 0);
SetTimer("one", 15000, 0);
return 1;
}
forward PlaySoundForAll(soundid);
public PlaySoundForAll(soundid)
{
for(new i; i<MAX_PLAYERS; i++)
if(IsPlayerConnected(i))PlayerPlaySound(i,soundid, 0.0, 0.0, 0.0);
}
forward fifteen(playerid);
public fifteen(playerid)
{
GameTextForAll("~g~15",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward fourteen(playerid);
public fourteen(playerid)
{
GameTextForAll("~g~14",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward thirteen(playerid);
public thirteen(playerid)
{
GameTextForAll("~g~13",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward twelve(playerid);
public twelve(playerid)
{
GameTextForAll("~g~12",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward eleven(playerid);
public eleven(playerid)
{
GameTextForAll("~g~11",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward ten(playerid);
public ten(playerid)
{
GameTextForAll("~g~10",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward eight(playerid);
public eight(playerid)
{
GameTextForAll("~g~9",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward nine(playerid);
public nine(playerid)
{
GameTextForAll("~g~8",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward seven(playerid);
public seven(playerid)
{
GameTextForAll("~g~7",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward six(playerid);
public six(playerid)
{
GameTextForAll("~g~6",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward five(playerid);
public five(playerid)
{
GameTextForAll("~g~5",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward four(playerid);
public four(playerid)
{
GameTextForAll("~y~4",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward three(playerid);
public three(playerid)
{
GameTextForAll("~p~3",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward two(playerid);
public two(playerid)
{
GameTextForAll("~b~2",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward one(playerid);
public one(playerid)
{
GameTextForAll("~w~1",2000,3);
PlaySoundForAll(1138);
return 1;
}
forward BombTimer();
public BombTimer() // Bomb Timer [16 Seconds] = Explode !
{
GameTextForAll("~b~Explode (Boom) !",2000,3);
CreateExplosion(x, y, z, 6, 10);
DestroyObject(BombObject);
}