public OnPlayerConnect(playerid)
{
InicioCuenta = SetTimerEx("Inicio",1000,1, "is",playerid);
TextDrawShowForPlayer(playerid, Iniciando);
TextDrawShowForPlayer(playerid, Fondo);
AccountInfo[playerid][aLogged] = 0;
AccountInfo[playerid][aAdmin] = 0;
AccountInfo[playerid][aBloqueado] = 0;
AccountInfo[playerid][aSilencio] = 0;
adminservicio[playerid] = 0;
Advertido[playerid] = 0;
new string[256];
GetPlayerName(playerid, string, sizeof(string));
format(string,sizeof(string), "{00FFFF}!>> %s {CCFFFF}se ah unido a Lunnatiic'z Freeroam!!", string);
SendClientMessageToAll(0xBBBBBBAA,string);
SetPVarInt(playerid, "laser", 0);
SetPVarInt(playerid, "color", 18643);
return 1;
}
public Inicio(playerid)
{
switch(Letras)
{
case 0: { Letras = 12, PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, L); }
case 1: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, U); }
case 2: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, N);}
case 3: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, N2); }
case 4: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, A); }
case 5: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, T); }
case 6: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, i1); }
case 7: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, i2); }
case 8: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, C); }
case 9: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, Acento); }
case 10:{ Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, Z1); }
case 11:{ Letras--; PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, Freeroam); }
case 12:{ Letras--; PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, VerdeB),TextDrawShowForPlayer(playerid, BlancoB), TextDrawShowForPlayer(playerid, RojoB), TextDrawShowForPlayer(playerid, SimboloB), ShowPlayerDialog(playerid, 500, DIALOG_STYLE_MSGBOX, "{FFFF33}Reglas del Servidor", reglas, "Continuar", ""), KillTimer(InicioCuenta);}
}
}
if (!strcmp( cmdtext, "/test", true))
{
InicioCuenta = SetTimer("Inicio",1000,1);
TextDrawShowForPlayer(playerid, Iniciando);
TextDrawShowForPlayer(playerid, Fondo);
return 1;
}
if (!strcmp( cmdtext, "/test", true))
{
InicioCuenta = SetTimerEx("Inicio",1000,1, "is", playerid);
TextDrawShowForPlayer(playerid, Iniciando);
TextDrawShowForPlayer(playerid, Fondo);
return 1;
}
i Stands for an integer parameter. d Exactly the same as i. a Passes an array, the next parameter must be an integer ("i") with the array's size. s Stands for a string parameter. f Stands for a float parameter. b Stands for a boolean parameter
Haber, si te puedo ayudar.
Ya que la funciуn tiene un parametro (playerid), utiliza SetTimerEx(..., "d", playerid); No sй porque pones "is". Y yo lo que harнa, es poner el Letras para cada jugador, Letras[playerid], porque se supone que depende el jugador serб diferente el orden. |
Prueba: InicioCuenta[playerid].
Cada jugador tiene que tener su propio timer. |
new InicioCuenta[MAX_PLAYERS];
InicioCuenta[playerid] = SetTimerEx("Inicio", 1000, 1, "d", playerid);
Mi pregunta es... їPor que le das un timer de 1 segundo?
Yo mis textdraw's los tengo normales, y perfectos pero sin ese timer. ![]() |