hii all, i need some good suggestions & better way or new idea.... as i m wanted to give points as per specific weapon kills...
sooo is there any new idea to detect weapons....soo plugin can use low cpu usage...
if simple lang i dont want to use if that attacker has this or that weapon..
PHP Code:
public Event_Dead()
{
new iKiller = read_data(1);
new iVictim = read_data(2);
new iHskill = read_data(3);
new weapon, HitPoint = get_user_attacker(iVictim, weapon, HitPoint);
if(weapon == CSW_KNIFE)
{
// my points
}
if(weapon == CSW_M4A1)
{
if(iHskill)
{
// my points
}
else
{
// my points
}
}
if(weapon == CSW_AK47)
{
if(iHskill)
{
// my points
}
else
{
// my points
}
}
if(weapon == CSW_AWP)
{
if(iHskill)
{
// my points
}
else
{
// my points
}
}
if(weapon == CSW_SCOUT)
{
if(iHskill)
{
// my points
}
else
{
// my points
}
}
if(weapon == CSW_DEAGLE)
{
if(iHskill)
{
// my points
}
else
{
// my points
}
}
}
__________________