SA-MP Forums Archive
[Ajuda] settimer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] settimer (/showthread.php?tid=526112)



settimer - _Play_ - 15.07.2014

tem como colocar um settimer que assim que acabesse o interpolate ai o dialog de login apareзeria?


Re: settimer - PT - 15.07.2014

sim, mas nesse caso teria de ser um SetTimerEx, para ser para um player especifico

https://sampwiki.blast.hk/wiki/SetTimerEx


Re: settimer - _Play_ - 15.07.2014

pt eu teria que colocar antes ou depois da camera de login

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    InterpolateCameraPos(playerid, 1780.705932, 662.235778, 22.94894, 1796.292724, 890.195678, 31.306097, 6000);
    InterpolateCameraLookAt(playerid, 1781.276489, 667.189636, 22.69244, 1796.121215, 885.378234, 29.978464, 6000);
    SetTimerEx("aguarde", 5000, false, "i", playerid);
    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_LIST, getPName(playerid), "Logar\nRegistrar\nSair", "Selecionar", "");

    return 1;
}



Re: settimer - PT - 15.07.2014

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    InterpolateCameraPos(playerid, 1780.705932, 662.235778, 22.94894, 1796.292724, 890.195678, 31.306097, 6000);
    InterpolateCameraLookAt(playerid, 1781.276489, 667.189636, 22.69244, 1796.121215, 885.378234, 29.978464, 6000);
    SetTimerEx("PraLogar", 6000, false, "i", playerid);
    return 1;
}

forward PraLogar(playerid);
public PraLogar(playerid)
{
    return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_LIST, getPName(playerid), "Logar\nRegistrar\nSair", "Selecionar", "");
}



Re: settimer - _Play_ - 15.07.2014

vlw pt vocк й mito