AOD - No damage
#6

Thank you pottus, i've managed to fix this,

Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{	
	if(aod[playerid] != Text3D:INVALID_3DTEXT_ID)
	{
		return 0;
	}
	return 1;
}
Checking if the player is on duty and if the player is, do not inflict damage.
and at OnPlayerGiveDamage im checking if the admin on duty is shooting a player, if he is.
Sending him a message not to do so.
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
	if(aod[playerid] != Text3D:INVALID_3DTEXT_ID)
	{
		SendClientMessage(playerid, COLOR_WHITE, "{ff0000}[Error]:{ffffff} You are On-Duty please refrain from damaging players.");
	}
	return 1;
}
Thanks you helped me out alot <3
Reply


Messages In This Thread
AOD - No damage - by yvoms - 21.01.2016, 21:28
Re: AOD - No damage - by Smileys - 21.01.2016, 21:33
Re: AOD - No damage - by yvoms - 21.01.2016, 21:49
Re: AOD - No damage - by Lucky13 - 21.01.2016, 22:02
Re: AOD - No damage - by Pottus - 21.01.2016, 22:16
Re: AOD - No damage - by yvoms - 22.01.2016, 09:12

Forum Jump:


Users browsing this thread: 1 Guest(s)