[PEDIDO] Anti-TeamKill
#14

Quote:
Originally Posted by Los
View Post
pawn Code:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    if(Team[playerid] == Team[damagedid])//Adapte.
    {
        new Float:L_VIDA; GetPlayerHealth(damagedid, L_VIDA);
        SetPlayerHealth(damagedid, L_VIDA+amount);
        SendClientMessage(playerid, -1, "Nгo ataque um colega seu!");
    }
    return 1;
}
Abraзos.
Й mais aplausнvel utilizar funзхes nativas prуprias para isto,
alguns players reclamariam de "Cheater/Hacker" porque perde
vida e ganha dinovo, famoso "Recovery".

Entгo aconselho usar funзхes prуprias para isto,
como AddPlayerClassEx e SetPlayerTeam.

Abs.
Reply


Messages In This Thread
[PEDIDO] Anti-TeamKill - by .FuneraL. - 16.03.2012, 16:14
Respuesta: [PEDIDO] Anti-TeamKill - by Luciano* - 29.04.2012, 19:23
Re: [PEDIDO] Anti-TeamKill - by Matheus_Ecko - 29.04.2012, 19:29
Re: [PEDIDO] Anti-TeamKill - by zbt - 29.04.2012, 19:32
Re: [PEDIDO] Anti-TeamKill - by zSuYaNw - 29.04.2012, 19:36
Respuesta: [PEDIDO] Anti-TeamKill - by Luciano* - 29.04.2012, 19:41
Re: [PEDIDO] Anti-TeamKill - by zSuYaNw - 29.04.2012, 19:44
Respuesta: [PEDIDO] Anti-TeamKill - by Luciano* - 29.04.2012, 19:47
Re: [PEDIDO] Anti-TeamKill - by zSuYaNw - 29.04.2012, 19:50
Respuesta: [PEDIDO] Anti-TeamKill - by Luciano* - 29.04.2012, 19:55
Re: [PEDIDO] Anti-TeamKill - by zSuYaNw - 29.04.2012, 19:58
Respuesta: [PEDIDO] Anti-TeamKill - by Luciano* - 29.04.2012, 20:00
Re: [PEDIDO] Anti-TeamKill - by Lуs - 29.04.2012, 20:01
Re: [PEDIDO] Anti-TeamKill - by zSuYaNw - 29.04.2012, 20:06

Forum Jump:


Users browsing this thread: 2 Guest(s)