help with login dialogue - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with login dialogue (
/showthread.php?tid=212373)
help with login dialogue -
StyleR - 17.01.2011
Hi again

do anyone know how to make a delay for login box?? some like SetTimer untill login box show's? plz and ty !
Re: help with login dialogue -
Infamous - 17.01.2011
You have said it yourself make a timer for the desired delay and then create the dialog when the timer has finished.
Re: help with login dialogue -
StyleR - 17.01.2011
i know but idk to make

im newb
Re: help with login dialogue -
Infamous - 17.01.2011
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.
Re: help with login dialogue -
StyleR - 17.01.2011
yeah i got stucked at this shit SetTimer
Re: help with login dialogue -
Infamous - 17.01.2011
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.
Re: help with login dialogue -
StyleR - 17.01.2011
ohhhh niceee thats it thnx