[Pedido] comando /setempo e time
#10

Sуmente para o player que digitar
PHP код:
CMD:sethoras(playerid,params[])
{
    new 
Horas,Minutos;
    if(
sscanf(params,"ii",Horas,Minutos)) return SendClientMessage(playerid,-1,"USE: /horas [Horas] [Minutos]");
    
SetPlayerTime(playerid,Horas,Minutos);
    return 
1;

DIALOG LIST

PHP код:
//Topo do gm
#define DIALOG_HORARIOS 444
CMD:horas(playerid,params[])
{
    
ShowPlayerDialog(playerid,DIALOG_HORARIOSDIALOG_STYLE_LIST,
    
"Selecione a Hora",
    
"03:00  (Madrugada)\n\
    06:00  (Amanhecer)\n\
    09:00  (Manhг)\n\
    12:00  (Meio - Dia)\n\
    15:00  (Tarde)\n\
    18:00  (Anoitecendo)\n\
    21:00  (Noite)\n\
    00:00  (Meia - Noite)\n\
     Hora Personalizada \n\\tDigite /SetHoras [Horas] [Minutos]"
,
    
"Selecionar""Cancelar");
    return 
1;
}
/*      OnDialogResponse*/
    
if(dialogid == DIALOG_HORARIOS)
    {
        switch(
response)
        {
            case 
0:
            {
            
//se clicar em cancelar
            
}
            case 
1:
            {
                switch(
listitem)
                {
                    case 
0:{SetPlayerTime(playerid,3,0);}
                    case 
1:{SetPlayerTime(playerid,6,0);}
                    case 
2:{SetPlayerTime(playerid,9,0);}
                    case 
3:{SetPlayerTime(playerid,12,0);}
                    case 
4:{SetPlayerTime(playerid,15,0);}
                    case 
5:{SetPlayerTime(playerid,18,0);}
                    case 
6:{SetPlayerTime(playerid,21,0);}
                    case 
7:{SetPlayerTime(playerid,23,59);}
                }
            }
        }
    } 
Reply


Messages In This Thread
comando /setempo e time - by lucaskill66 - 07.10.2012, 03:51
Re: comando /setempo e time - by Kon_BR - 07.10.2012, 04:18
Re: comando /setempo e time - by Life Advanced - 07.10.2012, 04:37
Re: comando /setempo e time - by Kon_BR - 07.10.2012, 04:40
Re: comando /setempo e time - by Life Advanced - 07.10.2012, 04:43
Re: comando /setempo e time - by Kon_BR - 07.10.2012, 04:46
Re: comando /setempo e time - by lucaskill66 - 07.10.2012, 04:54
Respuesta: comando /setempo e time - by Luciano* - 07.10.2012, 12:20
Re: comando /setempo e time - by lucaskill66 - 07.10.2012, 20:51
Re: comando /setempo e time - by Schocc - 07.10.2012, 21:15

Forum Jump:


Users browsing this thread: 7 Guest(s)