Jump to content

Question

2 answers to this question

Recommended Posts

  • 0
Posted

Pune asta la Public Onplayerketstatechange

if(newkeys & KEY_FIRE || (newkeys & KEY_SPRINT && newkeys & KEY_SECONDARY_ATTACK) || (newkeys & 128  && newkeys & 16) || (newkeys & KEY_SPRINT && newkeys & KEY_FIRE ))
	{
		if(IsAAntidm(playerid))
		{
			if(!IsPlayerInAnyVehicle(playerid))
			{
				ShowPlayerDialog(playerid,1233, DIALOG_STYLE_MSGBOX, "Avertizare Anti-DM","{228B22}Safe Zone - {FFFFFF} Administratia interzice bataile sau focurile de arma in acest loc!", "Inchide", "");
				ApplyAnimation(playerid,"PED","IDLE_tired",4.1,0,1,1,0,4000,1);
				return true;
			}
		}
	}

Si la sfarsitul gm-ului pune stock-ul urmator.

stock IsAAntidm(playerid)
{
	if(PlayerToPoint(30.0,playerid,x,y,z)) { return true; } // Unde x,y,z sunt coordonatele unde nu vrei sa se faca dm.
	return false;
}

Respect acestei comunitati, dar mai presus respect membrilor ei !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.