17.01.2011, 03:47
Hi again do anyone know how to make a delay for login box?? some like SetTimer untill login box show's? plz and ty !
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;
}