17.06.2020, 19:15
Tenta assim:
PHP Code:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) //topo da gm
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_YES))
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1363.65234, -1749.96948, 13.05720) && !IsPlayerInAnyVehicle(playerid))
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "{FFFFFF}ATM", "Saldo bancбrio \nDepositar dinheiro\nSacar dinheiro\nTransferencia bancбria", "Selecionar", "Cancelar");
return 1;
}