PDA

View Full Version : grenade kill



malyczolg
15th October 2013, 15:39
How make Grenade killl ?


Messages(sMeansOfDeath, sHitLoc, attacker, sWeapon)
{
if(sMeansOfDeath == "MOD_HEAD_SHOT")
{
attacker.money+=60*dm;
attacker.xp+=60*dx;
attacker.score += 10;
attacker thread czolk\scripts::earnedplus(60*dm);
attacker.mapHeads += 1;
attacker.head += 1;
}
else if(sMeansOfDeath == "MOD_MELEE")
{
attacker.money+=70*dm;
attacker.xp+=70*dx;
attacker.score += 10;
attacker thread czolk\scripts::earnedplus(70*dm);
attacker.mapBash += 1;
attacker.bash += 1;
}
else if(sMeansOfDeath != "MOD_MELEE" && attacker != self)
{
attacker.money+=50*dm;
attacker.xp+=50*dx;
attacker.score += 10;
attacker thread czolk\scripts::earnedplus(50*dm);
}
attacker.killed += 1;
attacker.mapKilled += 1;
}

Ni3ls
15th October 2013, 15:53
MOD_EXPLOSIVE

IzNoGoD
15th October 2013, 18:23
check sWeapon.