Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Author: Zayan Imran
- // Copyright(c) - Author
- #include <a_samp>
- #include <zcmd>
- new Float:x, Float:y, Float:z, Float:ang;
- new Obj;
- forward timer();
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Bomb FS by Zayan Imran.");
- print("--------------------------------------\n");
- return 1;
- }
- CMD:setbomb(playerid, params[])
- {
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, ang);
- Obj = CreateObject(3052, x, y, z - 0.9, 0, 0, ang, 500);
- SendClientMessage(playerid, -1, "The bomb is ready and will explode in 10 seconds! RUN AWAY!");
- SetTimer("timer", 10000, false);
- return 1;
- }
- public timer()
- {
- CreateExplosion(x, y, z, 6, 10);
- DestroyObject(Obj);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement