16.09.2013, 00:46
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
if(gTeam[issuerid]==gTeam[playerid])
{
GameTextForPlayer(issuerid, " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~r~~h~Don't shoot your team mates!", 600, 6);
}
else if(gTeam[issuerid]==gTeam[playerid] && dueling[issuerid] == 1 || gPlayerInfo[ issuerid ][ joined ] == 1 || gPlayerInfo[ issuerid ][ ingg ] == true)
{
BloodHits[playerid] ++;
if(BloodHits[playerid] == 3)
{
TextDrawShowForPlayer(playerid, BloodTD[playerid]);
}
PlayerPlaySound(issuerid, 17802, 0, 0, 0);
}
return 1;
}