12.05.2015, 11:34
Quote:
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart) { if(GetPlayerTeam(playerid) == GetPlayerTeam(damagedid)) // Little check to see if both players are on the same team { new Float:hp; GetPlayerHealth(playerid, hp); SetPlayerHealth(playerid, hp-10.0); SendClientMessage(playerid, 0xFF6347AA, "You've shot your own teammate and therefore you have lost health!"); } } |