Guest User

FireHell(eksplozija)

a guest
Sep 1st, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.79 KB | None | 0 0
  1.       /////////////////////////////////////////////////////////
  2.      /*                                                     */
  3.     /*             FireHell filterscript by iRage          */
  4.    /*                  www.zGaming.org                    */
  5.   /* Feel free to use this filterscript for any purpose. */
  6.  /*                Preveo Marchelo                      */
  7. /////////////////////////////////////////////////////////
  8.  
  9. #include <a_samp>
  10. #include <zcmd>
  11. #include <sscanf>
  12.  
  13. public OnFilterScriptInit()
  14. {
  15.     print(" ");print(" ");print(" ");print(" ");
  16.         print("=---------------------------------");
  17.         print("| FireHell filterscript by iRage |");
  18.         print("|        www.zGaming.org         |");
  19.         print("|        Preveo:Marchelo         |");
  20.         print("----------------------------------");
  21.         return 1;
  22. }
  23.  
  24. CMD:firehell(playerid, params[])
  25. {
  26.         new amount, string[128], Float:Pos[4];
  27.         if(sscanf(params, "i", amount)) return SendClientMessage(playerid, 0xFFFFFFFF, "Koristi: /eksplozija [broj eksplozija]");
  28.         if(amount < 1) return SendClientMessage(playerid, 0xFFFFFFFF, "Broj eksplozija ne moze biti manji od 1.");
  29.         GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  30.         if(IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), Pos[3]);
  31.         else GetPlayerFacingAngle(playerid, Pos[3]);
  32.         for(new i=1; i<amount+1; i++)
  33.         {
  34.                 Pos[0] = Pos[0] + 15*floatcos(90+Pos[3], degrees);
  35.                 Pos[1] = Pos[1]+ 15*floatsin(90-Pos[3], degrees);
  36.                 CreateExplosion(Pos[0], Pos[1], Pos[2], 0, 5.0);
  37.         }
  38.         format(string, sizeof(string), "Napravio si %d eksploziju/a.", amount);
  39.         SendClientMessage(playerid, 0xFFFFFFFF, string);
  40.         return 1;
Advertisement
Add Comment
Please, Sign In to add comment