[Pedido] Anti Fake-Kill
#8

Tenta ai manolo das dorgas:
pawn Код:
#include <a_samp>
#include <foreach>

new PlayerShotPlayer[MAX_PLAYERS][MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
        if(!PlayerShotPlayer[killerid][playerid])
        {
            Ban(playerid);
        }
    }
    foreach(Player,i)
    {
        PlayerShotPlayer[i][playerid] = 0;
    }
    return 1;
}

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    PlayerShotPlayer[issuerid][playerid] = 1;
    return 0;
}
Reply


Messages In This Thread
[Pedido] Anti Fake-Kill - by @Riichard - 25.04.2012, 16:52
Re: [Pedido] Anti Fake-Kill - by ViniBorn - 25.04.2012, 16:54
Re: [Pedido] Anti Fake-Kill - by @Riichard - 25.04.2012, 17:00
Re: [Pedido] Anti Fake-Kill - by ViniBorn - 25.04.2012, 17:02
Re: [Pedido] Anti Fake-Kill - by dPlaYer_ - 25.04.2012, 17:16
Re: [Pedido] Anti Fake-Kill - by @Riichard - 25.04.2012, 17:18
Re: [Pedido] Anti Fake-Kill - by RoacH` - 25.04.2012, 17:22
Re: [Pedido] Anti Fake-Kill - by dPlaYer_ - 25.04.2012, 17:28
Re: [Pedido] Anti Fake-Kill - by @Riichard - 25.04.2012, 17:30
Re: [Pedido] Anti Fake-Kill - by Gabriel10101 - 25.07.2012, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)