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