03.06.2017, 21:18
Код:
#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"); } } }