orward MOSTRAR_INV_TEXTO(playerid); public MOSTRAR_INV_TEXTO(playerid) { PlayerTextDrawShow(playerid, FUNDO_INV[playerid]); PlayerTextDrawShow(playerid, TAG_INV[playerid]); PlayerTextDrawShow(playerid, SLOT1[playerid]); PlayerTextDrawShow(playerid, SLOT2[playerid]); PlayerTextDrawShow(playerid, SLOT3[playerid]); PlayerTextDrawShow(playerid, SLOT4[playerid]); PlayerTextDrawShow(playerid, ITEM1[playerid]); PlayerTextDrawShow(playerid, ITEM2[playerid]); PlayerTextDrawShow(playerid, ITEM3[playerid]); PlayerTextDrawShow(playerid, ITEM4[playerid]); PlayerTextDrawShow(playerid, FECHAR_X[playerid]); SelectTextDraw(playerid, 0xFF0000FF);//ATIVA A SETA return true; } |
ATUALIZAR_INVENTORIO(playerid); if(MOSTRANDO_INVENTARIO[playerid] == 0) { MOSTRAR_INV_TEXTO(playerid);//public que mostra o inventorio ao player MOSTRANDO_INVENTARIO[playerid] = 1; } else if(MOSTRANDO_INVENTARIO[playerid] == 1) { ESCONDER_INV_TEXTO(playerid);//public que esconde o inventorio da tela do player MOSTRANDO_INVENTARIO[playerid] = 0; OPCAO_CLICADA[playerid] = 0; } return 1; } |