Help for Anti-Dgun
#1

Hello, as what the title says.

I'm making my own Anti Dgun System which blocks SendDeathMessage. The only thing I want to block is that FISTS and block the use of FISTS as weapon.

If this would be done, it will happen like this:
When a player kills a player using Fists, it will automatically kicks him.

How to do that?

Thank you for fast reply.
Reply
#2

here it is
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
        if(GetPlayerWeapon(killerid) == 0) return Kick(killerid);  // 0 is the id of fist you can get other ids here https://sampwiki.blast.hk/wiki/Weapons
    }
    return 1;
}
hope i helped you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)