Szerző Téma: Vehicle Killer (Unoccupied Vehicle damage)  (Megtekintve 985 alkalommal)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Vehicle Killer (Unoccupied Vehicle damage)
« Dátum: 2011. december 16. - 23:14:22 »
0 Show voters
Üdv áthoztam az angol forumrol 1 fst amit
KoczkaHUN készitett
Script:
[pawn]
#define FILTERSCRIPT
#include <a_samp>
#define VEHICLE_DMG_DEFAULT 25.0
#define VEHICLE_DMG_COLT45 50.0
#define VEHICLE_DMG_SILENCED 50.0
#define VEHICLE_DMG_DEAGLE 75.0
#define VEHICLE_DMG_SHOTGUN 75.0
#define VEHICLE_DMG_SAWEDOFF 78.0
#define VEHICLE_DMG_SHOTGSPA 80.0
#define VEHICLE_DMG_UZI 35.0
#define VEHICLE_DMG_MP5 60.0
#define VEHICLE_DMG_AK47 80.0
#define VEHICLE_DMG_M4 80.0
#define VEHICLE_DMG_TEC9 40.0
#define VEHICLE_DMG_RIFLE 75.0
#define VEHICLE_DMG_ROCKETLAUNCHER 150.0
#define VEHICLE_DMG_HEATSEEKER 150.0
#define VEHICLE_DMG_MINIGUN 200.0
#define DecreaseVehHP(%1) if (vhp > %1) SetVehicleHealth(vehicleid, vhp - %1)
public OnFilterScriptInit()
{
    print(\"\\n- Vehicle Killer Filterscript loaded -\");
    return 1;
}
public OnFilterScriptExit()
{
    print(\"\\n- Vehicle Killer Filterscript unloaded -\");
    return 1;
}
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat)
{
    if (passenger_seat != 0) return;
    new cm = GetPlayerCameraMode(playerid);
    if (cm != 53 && cm != 51) return;
    new keys, tmp;
    GetPlayerKeys(playerid, keys, tmp, tmp);
    if (!(keys & KEY_FIRE)) return;
    new Float:vhp; GetVehicleHealth(vehicleid, vhp);
    switch (GetPlayerWeapon(playerid))
    {
        case WEAPON_COLT45: DecreaseVehHP(VEHICLE_DMG_COLT45);
        case WEAPON_SILENCED: DecreaseVehHP(VEHICLE_DMG_SILENCED);
        case WEAPON_DEAGLE: DecreaseVehHP(VEHICLE_DMG_DEAGLE);
        case WEAPON_SHOTGUN: DecreaseVehHP(VEHICLE_DMG_SHOTGUN);
        case WEAPON_SAWEDOFF: DecreaseVehHP(VEHICLE_DMG_SAWEDOFF);
        case WEAPON_SHOTGSPA: DecreaseVehHP(VEHICLE_DMG_SHOTGSPA);
        case WEAPON_UZI: DecreaseVehHP(VEHICLE_DMG_UZI);
        case WEAPON_MP5: DecreaseVehHP(VEHICLE_DMG_MP5);
        case WEAPON_AK47: DecreaseVehHP(VEHICLE_DMG_AK47);
        case WEAPON_M4: DecreaseVehHP(VEHICLE_DMG_M4);
        case WEAPON_TEC9: DecreaseVehHP(VEHICLE_DMG_TEC9);
        case WEAPON_RIFLE: DecreaseVehHP(VEHICLE_DMG_RIFLE);
        case WEAPON_ROCKETLAUNCHER: DecreaseVehHP(VEHICLE_DMG_ROCKETLAUNCHER);
        case WEAPON_HEATSEEKER: DecreaseVehHP(VEHICLE_DMG_HEATSEEKER);
        case WEAPON_MINIGUN: DecreaseVehHP(VEHICLE_DMG_MINIGUN);
        default: DecreaseVehHP(VEHICLE_DMG_DEFAULT);
    }
}
[/pawn]
eredeti link:http://forum.sa-mp.com/showthread.php?t=274402
Video:
 
« Utoljára szerkesztve: 2011. december 17. - 09:23:48 írta WebSite »

Nem elérhető kurta999

  • 2759
  • Éllő fédisznó
    • Profil megtekintése
Vehicle Killer (Unoccupied Vehicle damage)
« Válasz #1 Dátum: 2011. december 17. - 00:44:45 »
0 Show voters
Hát nem tudom, hogy ezt honnan másoldtad ki így O_o
Egyébként ez csak 0.3c R3/R4/R5-el megy, mivel 0.3d-ben már nem mozdulnak meg a kocsik ha rálõsz. ( Sajnos )

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal