Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Plant Car Bomb
- // Made By Avi Raj
- // Thanks for Using it.
- #include <a_samp>
- #include <zcmd>
- forward Explode(playerid);
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Plant Car Bomb - Loaded ");
- print("--------------------------------------\n");
- return 1;
- }
- CMD:plantbomb(playerid, params[])
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0x00FF00AA,"You need to be in a Car to Plant Bomb");
- {
- SendClientMessage(playerid,0x00FF00AA,"You Have Planted the Bomb, Dont Leave the Car.");
- GameTextForPlayer(playerid, "Bomb Planted", 3000, 1);
- SetTimerEx("Explode",5000,0,"i",playerid);
- return 1;
- }
- }
- public Explode(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateExplosion(x, y, z, 2, 10.0);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment