16.09.2012, 03:07
Quote:
i recommend you use this function, it's basically an anti team kill.
https://sampwiki.blast.hk/wiki/SetPlayerTeam |
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!"); }
}