How to make anti-teamkill ?
#5

if you are using gTeam. then put this to your gamemode
basically..
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{

    if (gTeam[playerid] == gTeam[damagedid] && amount > 5)
    {
     
         SetPlayerArmedWeapon(playerid, 0);
         GameTextForPlayer(playerid,"~W~TEAM KILL is NOT allowed",2000,3);
     
     
    }
   
    return 0;
}
improve this yourself
Reply


Messages In This Thread
How to make anti-teamkill ? - by maho422 - 22.01.2013, 13:32
Re: How to make anti-teamkill ? - by Jeffry - 22.01.2013, 13:34
Re: How to make anti-teamkill ? - by DaRk_RaiN - 22.01.2013, 13:34
Re: How to make anti-teamkill ? - by EpicNinja - 22.01.2013, 13:39
Re: How to make anti-teamkill ? - by Jewell - 22.01.2013, 13:51

Forum Jump:


Users browsing this thread: 1 Guest(s)