[Ajuda] Dano das Armas
#7

Quote:
Originally Posted by StreetGT
Посмотреть сообщение
Nгo estб funcionando, serб que й meu sistema de Atirar na Skin ?! Porйm nгo achei nada...

Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
	new Float:Life, Float:Coleete, Float:Dano;
	GetPlayerArmour(damagedid, Coleete);
	GetPlayerHealth(damagedid, Life);
	if(Coleete > 0)
	{

		if(amount > Coleete)
		{

			Dano = amount - Coleete;
			Life = Life - Dano;
			SetPlayerArmour(damagedid, 0.0);
			SetPlayerHealth(damagedid, Life);
			return 1;
		}
		Coleete = Coleete - amount;
		SetPlayerArmour(damagedid, Coleete);
	}
	if(Coleete < 1)
	{

		Life = Life - amount;
		SetPlayerHealth(damagedid, Life);
	}
	if(damagedid == INVALID_PLAYER_ID) return true;
	if(IsPlayerInAnyVehicle(playerid) && !IsPlayerInAnyVehicle(damagedid))
	{

		SendClientMessage(playerid, COR_PR, "Nгo podes atirar de seu veiculo!");
		RemovePlayerFromVehicle(playerid);
		return false;
	}
	return true;
}
Reply


Messages In This Thread
@Resolvido - by NuTShoT - 23.12.2012, 22:50
Re: [Ajuda] Dano das Armas - by DrTHE - 23.12.2012, 22:52
Respuesta: [Ajuda] Dano das Armas - by NuTShoT - 23.12.2012, 22:53
Re: [Ajuda] Dano das Armas - by StreetGT - 23.12.2012, 22:56
Respuesta: [Ajuda] Dano das Armas - by NuTShoT - 23.12.2012, 23:07
Re: [Ajuda] Dano das Armas - by StreetGT - 23.12.2012, 23:09
Respuesta: Re: [Ajuda] Dano das Armas - by NuTShoT - 24.12.2012, 12:05
Re: [Ajuda] Dano das Armas - by JonathanFeitosa - 24.12.2012, 12:21
Respuesta: Re: [Ajuda] Dano das Armas - by NuTShoT - 24.12.2012, 12:27
Re: [Ajuda] Dano das Armas - by NuTShoT - 24.12.2012, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)