13.10.2013, 06:50
(
Последний раз редактировалось iFiras; 11.09.2014 в 03:18.
)
Deleted.
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(pTeam[issuerid] == pTeam[playerid])
{
new Float:health,Float:Armour;
GetPlayerHealth(playerid,health);
GetPlayerArmour(playerid,Armour);
SetPlayerHealth(playerid,health);
SetPlayerArmour(playerid,Armour);
return 1;
}
}
public OnPlayerShootPlayer(shooter, target, damage)
{
new Float:heal;
GetPlayerHealth(target, heal);
if(gTeam[shooter] == TEAM_1 && gTeam[target] == TEAM_1)
SetPlayerHealth(target, heal+damage);
return 1;
}
new gTeam[MAX_PLAYERS];
#define blye 0
#define red 1
public OnPlayerSpawn
if(gTeam[playerid] == team1)
{
SetPlayerTeam(playerid,0);
}
else if(gTeam[playerid] == team2)
{
SetPlayerTeam(playerid,1);
}