Aller au contenu

Photo

How to spawn a death GUI without respawn button.


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I've never seen how to do this before, so I thought I'd post it.  The following code will call up the party death GUI without the respawn or wait for help buttons.

____________________________________

void main()
{
DisplayGuiScreen(OBJECT_SELF,"SCREEN_PARTY_DEATH",FALSE);
SetGUIObjectDisabled(OBJECT_SELF,"SCREEN_PARTY_DEATH","BUTTON_RESPAWN",TRUE);
SetGUIObjectHidden(OBJECT_SELF,"SCREEN_PARTY_DEATH","BUTTON_RESPAWN",TRUE);
SetGUIObjectDisabled(OBJECT_SELF,"SCREEN_PARTY_DEATH","BUTTON_WAIT_FOR_HELP",TRUE);
SetGUIObjectHidden(OBJECT_SELF,"SCREEN_PARTY_DEATH","BUTTON_WAIT_FOR_HELP",TRUE);
}

#2
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I'm not sure if you have to hide and disable each GUI button, but this is how I did it and it works.