[AYUDA] Poner Dialog luego de Spawn
#2

Hola,

Код:
#define DIALOGO_CLASE
public OnPlayerSpawn(playerid)
{
	ShowPlayerDialog(playerid, DIALOGO_CLASE, DIALOG_STYLE_LIST, "Escoge tu clase", "Sniper\nAsalto\nOtra clase", "OK", "");
	return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOGO_CLASE)
	{
	    switch(listitem)
	    {
	        case 0:
	        {
	            // selecciуn sniper
            }
            case 1:
            {
                // selecciуn asalto
            }
            case 2:
            {
                // selecciуn "otra clase"
            }
        }
    }
    return 1;
 }
Reply


Messages In This Thread
[AYUDA] Poner Dialog luego de Spawn - by RobertinoColombo - 22.02.2015, 14:00
Respuesta: [AYUDA] Poner Dialog luego de Spawn - by admantis - 22.02.2015, 14:15

Forum Jump:


Users browsing this thread: 1 Guest(s)