Texdraw simultaneos
#1

lo que quiero hacer es que el texdraw1 aparesca unos 10 segundos y despues desaparesca depues que pase 1 o 2 minutos vuelva a aparecer pero el otro texdraw2 y obviamente que tambien desaparecalos hice haci pero no me queda bien que estoy fallando??

pawn Код:
new Timer;
forward AutoAnuncios();
new Text:anuncios;
new TextAnuncios[][] =
{
    "hey el mensaje mas largo mostar1",
    "hey el mensaje mas largo mostar2",
    "hey el mensaje mas largo mostar3"
};
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, anuncios);
    return 1;
}
public OnGameModeInit()
{
    anuncios = TextDrawCreate(230.000000, 303.000000, " ");
    TextDrawAlignment(anuncios,0);
    TextDrawBackgroundColor(anuncios, 255);
    TextDrawFont(anuncios, 3);//1
    TextDrawLetterSize(anuncios, 0.4998, 2.1500000);
    TextDrawColor(anuncios, -1677961);//-1
    TextDrawSetOutline(anuncios, 1);
    TextDrawSetProportional(anuncios, 1);
    SetTimer("AutoAnuncios",60000,1);
Timer = SetTimer("ShowMessage",61000,1);
    return 1;
}
public OnFilterScriptExit()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
        TextDrawHideForPlayer(i, anuncios);
    TextDrawHideForAll(anuncios);
    TextDrawDestroy(anuncios);
    KillTimer(Timer);
    return 1;
}
public AutoAnuncios()
{
    TextDrawSetString(anuncios, TextAnuncios[random(sizeof(TextAnuncios))]);
    return 1;
}


forward ShowMessage( );
public ShowMessage( )
{
    TextDrawShowForAll(anuncios);

    SetTimer("HideMessage",30000,1);

forward HideMessage( );
public HideMessage( )
{
    TextDrawHideForAll(anuncios);

}
Reply
#2

Doble post mmm... https://sampforum.blast.hk/showthread.php?tid=273760
Reply
#3

Lee las reglas chucho xD. https://sampforum.blast.hk/showthread.php?tid=114080
Reply
#4

si ya me di cuenta y cometi el error creeme que con la primera respuesta entendi o que no viste la primera respuesta!
Reply
#5

Disculpa si te moleste chucho.
Reply
#6

Quote:
Originally Posted by chucho
Посмотреть сообщение
si ya me di cuenta y cometi el error creeme que con la primera respuesta entendi o que no viste la primera respuesta!
Perdona, pero no es la primera respuesta en que te lo dicen normalmente posteas ayuda aqui y en pedidos tambiйn, bueno ojala leas las reglas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)