[Pedido] Anti Fake-Kill eficaz.
#2

algo assim?

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetDistanceBetweenPlayers(killerid, playerid) > 130)
    {
        Kick(killerid); // ou Ban(killerid);
    }
    return 1;
}

stock GetDistanceBetweenPlayers(playerid, playerid2)
{
    new Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2;
    new Float:tmpdis;
    GetPlayerPos(playerid, x1, y1, z1);
    GetPlayerPos(playerid2, x2, y2, z2);
    tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2, x1)), 2) +floatpower(floatabs(floatsub(y2, y1)), 2)+floatpower(floatabs(floatsub(z2, z1)), 2));
    return floatround(tmpdis);
}
Reply


Messages In This Thread
Anti Fake-Kill eficaz. - by Ley - 16.08.2013, 16:09
Re: Anti Fake-Kill eficaz. - by PT - 16.08.2013, 20:17
Re: Anti Fake-Kill eficaz. - by darkxdll - 16.08.2013, 20:21
Re: Anti Fake-Kill eficaz. - by PT - 16.08.2013, 20:27
Re: Anti Fake-Kill eficaz. - by Ley - 16.08.2013, 20:57
Re: Anti Fake-Kill eficaz. - by darkxdll - 16.08.2013, 20:58
Re: Anti Fake-Kill eficaz. - by Ley - 16.08.2013, 21:17
Re: Anti Fake-Kill eficaz. - by PT - 16.08.2013, 21:21
Re: Anti Fake-Kill eficaz. - by darkxdll - 16.08.2013, 21:21
Re: Anti Fake-Kill eficaz. - by Ley - 16.08.2013, 21:23

Forum Jump:


Users browsing this thread: 1 Guest(s)