Guest User

Untitled

a guest
Oct 22nd, 2010
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.23 KB | None | 0 0
  1. /* SA:MP Razzo V.2-
  2.  *
  3.  *  Rapgangsta
  4.  *  21/10/20010 # V 1.0; - 22/10/2010 # V 2.0;
  5. */
  6.  
  7. //==============================================================================
  8.  
  9. #include <a_samp>
  10.  
  11. #define MAX_OBJRAZZO 25
  12.  
  13. new ObjRazzo[MAX_OBJRAZZO];
  14.  
  15. public OnFilterScriptInit()
  16. {
  17.     print("\n  *********************\n  * SA:MP Launch Missile   *");
  18.     print("  * By Rapgangsta *\n  *********************");
  19.     print("  * -- LOADED         *\n  *********************\n");
  20.     CreateObjects();
  21. }
  22.  
  23. public OnFilterScriptExit()
  24. {
  25.     print("\n  *********************\n  * SA:MP Launch Missile   *");
  26.     print("  * -- TERMINATED       *\n  *********************\n");
  27. }
  28.  
  29. public OnPlayerCommandText(playerid, cmdtext[])
  30. {
  31.     if(strcmp("/Launch", cmdtext, true, 10) == 0)
  32.     {
  33.         new Float: ics,
  34.             Float: ipsi,
  35.             Float: zeta;
  36.         for(new z; z < MAX_OBJRAZZO; z++)
  37.         {
  38.             GetObjectPos(ObjRazzo[z],ics,ipsi,zeta);
  39.             MoveObject(ObjRazzo[z],ics,ipsi,zeta+1000,80);
  40.             CreateExplosion(ics,ipsi,zeta,6,7);
  41.         }
  42.         return 1;
  43.     }
  44.     if(strcmp("/ReloadLaunch", cmdtext, true, 10) == 0)
  45.     {
  46.         for(new z; z < MAX_OBJRAZZO; z++)
  47.         {
  48.             DestroyObject(ObjRazzo[z]);
  49.         }
  50.         CreateObjects();
  51.         return 1;
  52.     }
  53.     return 0;
  54. }
  55.  
  56. stock CreateObjects()
  57. {
  58.         ObjRazzo[0] = CreateObject(17050, 268.81646728516, 1883.2470703125, -30.943752288818, 0, 0, 0);
  59.         ObjRazzo[1] = CreateObject(2780, 268.31790161133, 1883.8327636719, -30.093765258789, 0, 180, 180);
  60.         ObjRazzo[2] = CreateObject(3461, 271.18411254883, 1881.9747314453, -29.815612792969, 0, 180, 180);
  61.         ObjRazzo[3] = CreateObject(3461, 270.84747314453, 1881.3690185547, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  62.         ObjRazzo[4] = CreateObject(3461, 270.24923706055, 1880.8601074219, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  63.         ObjRazzo[5] = CreateObject(3461, 269.78305053711, 1880.4891357422, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  64.         ObjRazzo[6] = CreateObject(3461, 269.091796875, 1880.2977294922, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  65.         ObjRazzo[7] = CreateObject(3461, 268.57189941406, 1880.3862304688, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  66.         ObjRazzo[8] = CreateObject(3461, 267.90567016602, 1880.7198486328, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  67.         ObjRazzo[9] = CreateObject(3461, 267.32711791992, 1880.9461669922, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  68.         ObjRazzo[10] = CreateObject(3461, 266.92922973633, 1881.4879150391, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  69.         ObjRazzo[11] = CreateObject(3461, 266.61187744141, 1881.8693847656, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  70.         ObjRazzo[12] = CreateObject(3461, 265.97131347656, 1882.4827880859, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  71.         ObjRazzo[13] = CreateObject(3461, 265.85067749023, 1883.5283203125, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  72.         ObjRazzo[14] = CreateObject(3461, 266.28009033203, 1884.5358886719, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  73.         ObjRazzo[15] = CreateObject(3461, 266.57830810547, 1885.2436523438, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  74.         ObjRazzo[16] = CreateObject(3461, 267.10888671875, 1885.6883544922, -29.815612792969, 0, 179.99450683594, 179.99450683594);
  75.         ObjRazzo[17] = CreateObject(3461, 267.82574462891, 1885.6286621094, -29.518737792969, 0, 179.99450683594, 179.99450683594);
  76.         ObjRazzo[18] = CreateObject(3461, 268.27474975586, 1885.3807373047, -29.179565429688, 0, 179.99450683594, 179.99450683594);
  77.         ObjRazzo[19] = CreateObject(3461, 269.05294799805, 1885.4799804688, -29.104499816895, 0, 179.99450683594, 179.99450683594);
  78.         ObjRazzo[20] = CreateObject(3461, 269.58438110352, 1885.5164794922, -29.518737792969, 0, 179.99450683594, 179.99450683594);
  79.         ObjRazzo[21] = CreateObject(3461, 270.53463745117, 1884.6219482422, -29.518737792969, 0, 179.99450683594, 179.99450683594);
  80.         ObjRazzo[22] = CreateObject(3461, 270.66384887695, 1883.8135986328, -29.518737792969, 0, 179.99450683594, 179.99450683594);
  81.         ObjRazzo[23] = CreateObject(3461, 270.63092041016, 1882.9683837891, -29.518737792969, 0, 179.99450683594, 179.99450683594);
  82.         ObjRazzo[24] = CreateObject(2780, 269.27267456055, 1882.9731445313, -30.19376373291, 0, 179.99450683594, 179.99450683594);
  83. }
Advertisement
Add Comment
Please, Sign In to add comment