Undamage-able
#3

Quote:
Originally Posted by JaydenJason
Посмотреть сообщение
Код:
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!");
        }
}
Should I add return 0; under SendClientMessage function ?
Reply


Messages In This Thread
Undamage-able - by aCloudy - 12.05.2015, 11:24
Re: Undamage-able - by JaydenJason - 12.05.2015, 11:31
Re: Undamage-able - by aCloudy - 12.05.2015, 11:34
Re: Undamage-able - by JaydenJason - 12.05.2015, 11:36
Re: Undamage-able - by shadowdog - 12.05.2015, 12:03

Forum Jump:


Users browsing this thread: 1 Guest(s)