26.09.2017, 20:35
Quote:
Yeah I did read that but only got it working copy pasting an example on page 50 something. Thx anyway. Gonna try to reduce cbug damage now, spend a day or so trying to make sense of something way out of my league, fail miserably, cry a little and then return here to ask for help.
|
PHP код:
new avg_rate = AverageShootRate(issuerid, 2);
// Lower rapid fire damage
if (avg_rate != -1) {
if (weapon == WEAPON_DEAGLE && avg_rate < 500)
amount *= 0.50;
else if (weapon == WEAPON_SHOTGSPA && avg_rate < 250)
amount *= 0.50;
}