help with login dialogue
#1

Hi again do anyone know how to make a delay for login box?? some like SetTimer untill login box show's? plz and ty !
Reply
#2

You have said it yourself make a timer for the desired delay and then create the dialog when the timer has finished.
Reply
#3

i know but idk to make im newb
Reply
#4

Right have a go your self mate and then you might actually get somewhere.

Check out SetTimerEx on the wiki.

When the timer is up show the dialog.

If you do get stuck I will help but you gotta learn some time if you are planning on making a gamemode.
Reply
#5

yeah i got stucked at this shit SetTimer
Reply
#6

pawn Код:
new SpawnedVariable = 0; // Top of script.
forward TestTimer(playerid); // Top of script.

public OnGameModeInit()
{
    SetTimerEx("TestTimer", 10000, true, "i", playerid); // Test timer.
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SpawnedVariable = 1;
    return 1;
}

public TestTimer(playerid)
{
    if(SpawnedVariable == 1)
    {
        SendClientMessage(playerid, COLOR_WHITE, "This is the Test Timer running as it should.");
        ShowPlayerDialog...
        SpawnedVariable = 0;
    }
    return 1;
}
Use this as an example.
Reply
#7

ohhhh niceee thats it thnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)