Guest User

Untitled

a guest
Jan 26th, 2014
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.36 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7. #include <streamer>
  8.  
  9. new Andromeda[MAX_PLAYERS];
  10.  
  11. stock Float: GetPointZPos(const Float: fX, const Float: fY, &Float: fZ = 0.0) {
  12.     if(!((-3000.0 < fX < 3000.0) && (-3000.0 < fY < 3000.0))) {
  13.         return 0.0;
  14.     }
  15.     static
  16.         File: s_hMap
  17.     ;
  18.     if(!s_hMap) {
  19.         s_hMap = fopen("SAfull.hmap", io_read);
  20.  
  21.         if(!s_hMap) {
  22.             return 0.0;
  23.         }
  24.     }
  25.     new
  26.         afZ[1]
  27.     ;
  28.     fseek(s_hMap, ((6000 * (-floatround(fY, floatround_tozero) + 3000) + (floatround(fX, floatround_tozero) + 3000)) << 1));
  29.     fblockread(s_hMap, afZ);
  30.  
  31.     return (fZ = ((afZ[0] >>> 16) * 0.01));
  32. }
  33.  
  34.  
  35.  
  36. #if defined FILTERSCRIPT
  37.  
  38. public OnFilterScriptInit()
  39. {
  40.     print("\n--------------------------------------");
  41.     print(" Simple Airstrike By Kn1Ght AKA Srinabh");
  42.     print("Checking For Updates.....");
  43.     print("Fetching Updates....");
  44.     print("Loading......");
  45.     print("Loading.........");
  46.     print("Loaded!!!!");
  47.     print("--------------------------------------\n");
  48.     return 1;
  49. }
  50.  
  51. public OnFilterScriptExit()
  52. {
  53.     return 1;
  54. }
  55.  
  56. #else
  57.  
  58.  
  59. main()
  60. {
  61.     print("\n----------------------------------");
  62.     print(" Blank Gamemode by your name here");
  63.     print("----------------------------------\n");
  64. }
  65.  
  66. #endif
  67.  
  68.  
  69.  
  70.  
  71.  
  72. CMD:airstrike(playerid, params[])
  73. {
  74.     new Float:x, Float:y, Float:z, Float:zpos;
  75.     GetPlayerPos(playerid, x, y, z);
  76.     GetPointZPos(x, y, zpos);
  77.     SetTimerEx("Airstrike", 5000, 0, "ifff", playerid, x,y,zpos);
  78.     return 1;
  79. }
  80.  
  81.  
  82. forward Airstrike(playerid, Float:x, Float:y, Float:z);
  83. public Airstrike(playerid, Float:x, Float:y, Float:z)
  84. {
  85.     Andromeda[playerid] = CreateDynamicObject(14553,x+10,y,z+40,0.000000,0.000000,90);
  86.     new time = MoveDynamicObject(Andromeda[playerid], x + 100, y, z+75, 15.0, 0, 0, 90);
  87.     CreateExplosion(x,y,z,6,5);
  88.     CreateExplosion(x+1,y,z,6,5);
  89.     CreateExplosion(x+3,y,z,6,5);
  90.     CreateExplosion(x,y,z,6,5);
  91.     CreateExplosion(x-26,y,z,6,50);
  92.     CreateExplosion(x-28,y,z,6,50);
  93.     CreateExplosion(x-30,y,z,6,50);
  94.     CreateExplosion(x-32,y,z,6,50);
  95.     CreateExplosion(x-34,y,z,6,50);
  96.     CreateExplosion(x-36,y,z,6,50);
  97.     CreateExplosion(x-38,y,z,6,50);
  98.     CreateExplosion(x-40,y,z,6,50);
  99.     CreateExplosion(x-42,y,z,6,50);
  100.     printf("%i", time);
  101.     SetTimerEx("DestroyAndrom", time, 0, "i", playerid);
  102. }
Advertisement
Add Comment
Please, Sign In to add comment