[PEDIDO] Novo Anti-God
#4

tente usar a nova callback do samp, OnPlayerGiveDamage ou OnPlayerTakeDamage

@edit
tente
pawn Код:
new god[MAX_PLAYERS];//topo
pawn Код:
public OnPlayerConnect(playerid)
{
    god[playerid] = 0;
    return 1;
}
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    new sangue;
    if(god[playerid] == 0)
    {
        god[playerid] ++;
        sangue = GetPlayerHealth(playerid);
        return 1;
    }
    else if(god[playerid] > 0)
    {
        if(sangue == GetPlayerHealth(playerid));
        {
            new msg[128], Nome[MAX_PLAYER_NAME];
            GetPlayerName(playerid, Nome, sizeof(Nome));
            SendClientMessage(playerid, -1, "Vocк foi kickado por suspeita de xiter!");
            format(msg, sizeof(msg), "%s foi kickado automaticamente por suspeita de xiter", Nome);
            SendClientMessageToAll(-1, msg);
            Kick(playerid);
            return 1;
        }
        else
        {
            god[playerid] --;
            return 1;
        }
    }
    return 1;
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    god[playerid] = 0;
    return 1;
}
@edit
agora funfa
Reply


Messages In This Thread
[PEDIDO] Novo Anti-God - by Marshall_Elite - 18.12.2011, 11:20
Re: [PEDIDO] Novo Anti-God - by euclaro - 18.12.2011, 12:13
Re: [PEDIDO] Novo Anti-God - by Marshall_Elite - 18.12.2011, 12:20
Re: [PEDIDO] Novo Anti-God - by Cristhian - 18.12.2011, 12:57
Re: [PEDIDO] Novo Anti-God - by ReDKiiL - 18.12.2011, 13:12
Re: [PEDIDO] Novo Anti-God - by Cristhian - 18.12.2011, 13:13
Re: [PEDIDO] Novo Anti-God - by Allanrokeiro - 19.12.2011, 23:08

Forum Jump:


Users browsing this thread: 2 Guest(s)