06.10.2009, 22:09
How can i correctly identify a rocket kill? I've tried reason 35 (Rocket Launcher) and 51 (Explosion) but they still don't recognise being kill by a rocket. This is using if(reason == 35 / 51) on OnPlayerDeath.
if(reason == id) return bla bla
if(GetPlayerWeapon(playerid) == 35)
{
SendDeathMessage(killerid,playerid,35);
return 1;
}
new weaponid;
weaponid = GetPlayerWeapon(playerid);
SendDeathMessage(killerid,playerid,weaponid);
Originally Posted by BMUK
Rocket kill? Isnt that just an explosion icon?
Which works fine for me ![]() |