Advertisement
Longibotti

Explosionsfunktion

Apr 27th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.71 KB | None | 0 0
  1. // gtaRL Funscript: Explofunktio
  2. #define FILTERSCRIPT
  3.  
  4. #include <a_samp>
  5.  
  6. #if defined FILTERSCRIPT
  7.  
  8. public OnFilterScriptInit()
  9. {
  10.         print("\n--------------------------------------");
  11.         print(" Explofunktio geladen");
  12.         print("--------------------------------------\n");
  13.         return 1;
  14. }
  15. #endif
  16.  
  17. public OnPlayerCommandText(playerid, cmdtext[])
  18. {
  19.         new Float:x,Float:y,Float:z;
  20.         new Float:xx2,Float:yy2,Float:az;
  21.         new Float:x3,Float:y3;
  22.         new Float:x4,Float:y4;
  23.         new Float:x5,Float:y5;
  24.         new Float:x6,Float:y6;
  25.         new Float:xi,Float:yi;
  26.         new Float:xi2,Float:yi2;
  27.         if( strcmp(cmdtext, "/exp", true) == 0)
  28.         {
  29.         GetPlayerPos(playerid,x,y,z);
  30.         GetPlayerFacingAngle(playerid, az);
  31.         xi = x + (5 * floatsin(-az, degrees));
  32.         yi = y + (5 * floatcos(-az, degrees));
  33.         xx2 = x + (10 * floatsin(-az, degrees));
  34.         yy2 = y + (10 * floatcos(-az, degrees));
  35.         x3 = x + (15 * floatsin(-az, degrees));
  36.         y3 = y + (15 * floatcos(-az, degrees));
  37.         x4 = x + (20 * floatsin(-az, degrees));
  38.         y4 = y + (20 * floatcos(-az, degrees));
  39.         x5 = x + (25 * floatsin(-az, degrees));
  40.         y5 = y + (25 * floatcos(-az, degrees));
  41.         x6 = x + (30 * floatsin(-az, degrees));
  42.         y6 = y + (30 * floatcos(-az, degrees));
  43.         CreateExplosion(xi2,yi2,z-1,11,0);
  44.         CreateExplosion(xi,yi,z-1,11,2.5);
  45.         CreateExplosion(xx2,yy2,z-1,11,2.5);
  46.         CreateExplosion(x3,y3,z-1,11,2.5);
  47.         CreateExplosion(x4,y4,z-1,11,2.5);
  48.         CreateExplosion(x5,y5,z-1,11,2.5);
  49.         CreateExplosion(x6,y6,z-1,11,10);
  50.         return 1;
  51. }
  52.         return 0;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement