[Ajuda] OnPlayerKeyStateChange
#9

Код:
#define     PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
	if( PRESSED( KEY_SECONDARY_ATTACK ))
	{
	    if( IsPlayerInRangeOfPoint( playerid, 3.0, 395.7615,2462.4875,16.6809 ) || // BOCA DO PRZ
	    IsPlayerInRangeOfPoint( playerid, 3.0, 2889.5144,2804.2468,26.7554 ) || // BOCA DO ACR
	    IsPlayerInRangeOfPoint( playerid, 3.0, -227.7801,96.5845,2.0929 )) // BOCA DA PL
	    {
	        ShowPlayerDialog( playerid, DIALOG_ARMAZEM, DIALOG_STYLE_LIST, "{B22222}»{FFFFFF} Armazйm da Favela", "Equipar\nInformaзхes", "Selecionar", "Fechar");
	    }
	}
}
Reply


Messages In This Thread
OnPlayerKeyStateChange - by Dimbalada - 03.06.2017, 03:07
Re: OnPlayerKeyStateChange - by RazorGuigo - 03.06.2017, 13:21
Re: OnPlayerKeyStateChange - by Dimbalada - 03.06.2017, 16:37
Re: OnPlayerKeyStateChange - by Dimbalada - 03.06.2017, 16:59
Re: OnPlayerKeyStateChange - by TheCrazyy - 03.06.2017, 18:01
Re: OnPlayerKeyStateChange - by Dimbalada - 03.06.2017, 18:36
Re: OnPlayerKeyStateChange - by Dimbalada - 03.06.2017, 20:39
Re: OnPlayerKeyStateChange - by moura98 - 03.06.2017, 20:59
Re: OnPlayerKeyStateChange - by Showzs - 03.06.2017, 21:18
Re: OnPlayerKeyStateChange - by Dimbalada - 03.06.2017, 23:18

Forum Jump:


Users browsing this thread: 1 Guest(s)