Advertisement
S4T3K

UVD edited

Jun 15th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.33 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. public OnFilterScriptInit()
  4. {
  5.     printf("Unoccupied vehicle damage by Wallegi & Papawy");
  6.     printf("Édité par S4T3K");
  7.     return 1;
  8. }
  9.  
  10. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  11. {
  12.     if(hittype == 2)
  13.     {
  14.         new w1 = GetPlayerWeapon(playerid);
  15.         new Float:a; GetVehicleHealth(hitid, a);
  16.         foreach(new i : Player)
  17.         {
  18.             if((IsPlayerInVehicle(playerid, hitid)) && (GetPlayerVehicleSeat(playerid) == 0)) return 1;
  19.         }
  20.         switch(w1)
  21.         {
  22.             case 28: SetVehicleHealth(hitid, a-6.6);                 // Uzi
  23.             case 22: SetVehicleHealth(hitid, a-8.25);                // Colt
  24.             case 24: SetVehicleHealth(hitid, a-46.2);                // Eagle
  25.             case 23: SetVehicleHealth(hitid, a-13.2);                // Silenced
  26.             case 32: SetVehicleHealth(hitid, a-6.6);                 // Tec
  27.             case 29: SetVehicleHealth(hitid, a-8.25);                // MP5
  28.             case 30: SetVehicleHealth(hitid, a-9.9);                 // AK
  29.             case 31: SetVehicleHealth(hitid, a-9.9);                 // M4
  30.             case 33: SetVehicleHealth(hitid, a-24.75);               // Rifle
  31.             case 34: SetVehicleHealth(hitid, a-41.25);               // Sniper
  32.             case 25: SetVehicleHealth(hitid, a-49.5);                // Shotgun
  33.             case 26: SetVehicleHealth(hitid, a-49.5);                // Swan Off
  34.             case 27: SetVehicleHealth(hitid, a-39.6);                // Spas
  35.             case 1: SetVehicleHealth(hitid, a-1.32);                 // Poing américain
  36.             case 2: SetVehicleHealth(hitid, a-4.62);                 // Club de golf
  37.             case 3: SetVehicleHealth(hitid, a-4.62);                 // Matraque
  38.             case 4: SetVehicleHealth(hitid, a-2.64);                 // Couteau
  39.             case 5: SetVehicleHealth(hitid, a-4.62);                 // Batte de base-ball
  40.             case 6: SetVehicleHealth(hitid, a-4.62);                 // Pelle
  41.             case 7: SetVehicleHealth(hitid, a-4.62);                 // Queue de billard
  42.             case 8: SetVehicleHealth(hitid, a-2.64);                 // Katana
  43.             case 9: SetVehicleHealth(hitid, a-13.53);                // Tronçonneuse
  44.             case 10: SetVehicleHealth(hitid, a-4.62);                // Double dildo
  45.             case 11: SetVehicleHealth(hitid, a-2.64);                // Dildo simple
  46.             case 12: SetVehicleHealth(hitid, a-4.62);                // Vibromasseur
  47.             case 13: SetVehicleHealth(hitid, a-2.64);                // Silver vibromasseur
  48.             case 14: SetVehicleHealth(hitid, a-4.62);                // Fleurs
  49.             case 15: SetVehicleHealth(hitid, a-2.64);                // Canne
  50.             case 38: SetVehicleHealth(hitid, a-50);                  // Minigun
  51.             case 18: SetVehicleHealth(hitid, a-27.0);                // Molotov
  52.             case 16: SetVehicleHealth(hitid, a-50.0);                // Grenade
  53.             case 35, 36: SetVehicleHealth(hitid, a-600.0);           // RPG & Heat Steaker
  54.             case 37: SetVehicleHealth(hitid, a-21.0);                // Lance flammes
  55.             case 40: SetVehicleHealth(hitid, a-80.0);                // C4
  56.         }
  57.     }
  58.     return 1;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement