Team Kill Help +Rep
#5

Quote:
Originally Posted by YourLord
Посмотреть сообщение
i recommend you use this function, it's basically an anti team kill.

https://sampwiki.blast.hk/wiki/SetPlayerTeam
He is using this function, and an anti team killing function isn't what he's looking for if you'd read his post thoroughly. I'm getting a fix up, Deaglez, just a sec.

Edit: Try this out.
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    if(GetPlayerTeam(issuerid) == SOLDIER && GetPlayerTeam(playerid) == HUMAN) {
        new Float:health = GetPlayerHealth(playerid,health);
        SetPlayerHealth(playerid,health+amount);
        SendClientMessage(issuerid,COLOUR_RED,"You cannot shoot humans, aim for the zombies!"); }
}
Reply


Messages In This Thread
Team Kill Help +Rep - by Deaglez - 16.09.2012, 02:47
Re: Team Kill Help +Rep - by zDevon - 16.09.2012, 02:55
Re: Team Kill Help +Rep - by Deaglez - 16.09.2012, 03:00
Re: Team Kill Help +Rep - by YourLord - 16.09.2012, 03:03
Re: Team Kill Help +Rep - by zDevon - 16.09.2012, 03:07
Re: Team Kill Help +Rep - by Deaglez - 16.09.2012, 04:22
Re: Team Kill Help +Rep - by Deaglez - 16.09.2012, 04:26

Forum Jump:


Users browsing this thread: 1 Guest(s)