SA-MP Forums Archive
Minigun dmg - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Minigun dmg (/showthread.php?tid=448921)



Minigun dmg - SampzzonE - 06.07.2013

how can i make the miniguns dmg to be like the ak47's dmg?


Re: Minigun dmg - nickyW - 06.07.2013

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new Float:Health;
    GetPlayerHealth(playerid, Health);

    if( weaponid == 38 ) { //38 - Minigun
    SetPlayerHealth(playerid, Health-10);
    }
    return 1;
}



Re: Minigun dmg - SampzzonE - 06.07.2013

thanks