How can I detect if the player is shooting an admin onduty?
#2

Код:
public OnPlayerGiveDamage(playerid, damageid, Float:amount, weaponid)
{
	if(PlayerInfo[damageid][Level] >= 1 && PlayerInfo[damageid][OnDuty] == 1)
	{
	    Your code
	}
	return 1;
}
you need to repalce the "PlayerInfo[damageid][Level]" and the "PlayerInfo[damageid][OnDuty]" with your variables that define the player's level and the on-duty-status
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)