Поставил свой урон, но при убийстве игрока не засчитывается убийство, подскажите что не так
PHP код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hittype == BULLET_HIT_TYPE_PLAYER)
{
new Float:health; GetPlayerHealth(hitid,health);
switch(weaponid)
{
case 22:
{
SetPlayerHealth(hitid, health-6); return false;
}
case 23:
{
SetPlayerHealth(hitid, health-9); return false;
}
default: return true;
}
}
return true;
}