[Ajuda] Comando com settimer
#7

Quote:
Originally Posted by Bruno13
Посмотреть сообщение
...
PHP код:
CMD:dialog(playeridparams[]) {
    new 
id;
    if(
sscanf(params"d"id))
        return 
SendClientMessage(playerid, -1," /dialog [id]");
    
ShowPlayerDialog(playerididDIALOG_STYLE_MSGBOX"Dialog""Vocк aceita os termos caso nгo concorde serб kikado.""Sim""Nгo");
    
    
SetTimerEx("RT"10000false"d"id);
    return 
1;

Funcionou obrigado, se nгo for pedir muito, eu fiz a funзгo do settimer mais mesmo ele concordando passando dos 10 seg ele kika oque pode ser ?
cуdigo da public do settimer e do ondialogresponse:

pawn Код:
forward RT();
public RT()
{
    new id, string[128];
    format(string,128,"O %s foi kikado por nгo concordar com as regras.", nome(id));
       SendClientMessageToAll(COR_AMARELO, string);
    Kick(id);
    return 1;
}
Ondialogresponse:
pawn Код:
if(dialogid == DIALOG_RT)
    {
        if(response)
        {
            new id, string[128];
            format(string, 128,"O %s concordou com as regras.", nome(id));
       SendClientMessageToAll(COR_AZUL, string);
            return 1;
        }
    }
Reply


Messages In This Thread
Comando com settimer - by FabioGTP - 15.09.2016, 00:35
Re: Comando com settimer - by ipsLuan - 15.09.2016, 00:37
Re: Comando com settimer - by Bruno13 - 15.09.2016, 00:39
Re: Comando com settimer - by FabioGTP - 15.09.2016, 00:47
Re: Comando com settimer - by FabioGTP - 15.09.2016, 00:50
Re: Comando com settimer - by Bruno13 - 15.09.2016, 00:52
Re: Comando com settimer - by FabioGTP - 15.09.2016, 01:08
Re: Comando com settimer - by ViDaLoKa1 - 15.09.2016, 02:28
Re: Comando com settimer - by JhowWatkins - 15.09.2016, 11:26
Re: Comando com settimer - by FabioGTP - 15.09.2016, 11:44

Forum Jump:


Users browsing this thread: 3 Guest(s)