Guest User

FireHell by iRage

a guest
May 14th, 2012
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.57 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.  /*                                                     */
  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("----------------------------------");
  20.     return 1;
  21. }
  22.  
  23. CMD:firehell(playerid, params[])
  24. {
  25.     new amount, string[128], Float:Pos[4];
  26.     if(sscanf(params, "i", amount)) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /firehell [explosions]");
  27.     if(amount < 1) return SendClientMessage(playerid, 0xFFFFFFFF, "Amount of explosions can't be below 1.");
  28.     GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  29.     if(IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), Pos[3]);
  30.     else GetPlayerFacingAngle(playerid, Pos[3]);
  31.     for(new i=1; i<amount+1; i++)
  32.     {
  33.         Pos[0] = Pos[0] + 15*floatcos(90+Pos[3], degrees);
  34.         Pos[1] = Pos[1]+ 15*floatsin(90-Pos[3], degrees);
  35.         CreateExplosion(Pos[0], Pos[1], Pos[2], 0, 5.0);
  36.     }
  37.     format(string, sizeof(string), "You have created %d explosions.", amount);
  38.     SendClientMessage(playerid, 0xFFFFFFFF, string);
  39.     return 1;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment