2023-11-14, 05:22 PM
Hello, can you help me with the message system in non-random order, it doesn't work well, it doesn't respect the time between texts.
ptask AnunciosChat[50000]()
{
ServerInfo[AnuncioTexto] ++;
if(ServerInfo[AnuncioTexto] == 27) ServerInfo[AnuncioTexto] = 1;
switch(ServerInfo[AnuncioTexto])
{
case 1: SendClientMessageToAllEx(COLOR_ROJO, "[-]Derby "COL_BLANCO"test1");
case 2: SendClientMessageToAllEx(COLOR_NARANJA, "[DLF]Botz "COL_BLANCO""test2");
case 3: SendClientMessageToAllEx(COLOR_NARANJA, "[DLF]Botz "COL_BLANCO"test3");
case 4:
{
SendClientMessageToAllEx(-1, ""COL_AMARILLO"[-]CARRERA: "COL_BLANCO"Se ha inciado (Modo Carrera)"(/carreras)");
lrace = 1;
}
case 5:
{
SendClientMessageToAllEx(-1, ""COL_ROJO"[-]CARRERA: "COL_BLANCO"Se ha Cerrado");
lrace = 0;
}
case 6: SendClientMessageToAllEx(COLOR_NARANJA, "[DLF]Botz "COL_BLANCO"test4");
case 7: SendClientMessageToAllEx(COLOR_NARANJA, "[DLF]Botz "COL_BLANCO"test5.");
}
return 1;
}
ptask AnunciosChat[50000]()
{
ServerInfo[AnuncioTexto] ++;
if(ServerInfo[AnuncioTexto] == 27) ServerInfo[AnuncioTexto] = 1;
switch(ServerInfo[AnuncioTexto])
{
case 1: SendClientMessageToAllEx(COLOR_ROJO, "[-]Derby "COL_BLANCO"test1");
case 2: SendClientMessageToAllEx(COLOR_NARANJA, "[DLF]Botz "COL_BLANCO""test2");
case 3: SendClientMessageToAllEx(COLOR_NARANJA, "[DLF]Botz "COL_BLANCO"test3");
case 4:
{
SendClientMessageToAllEx(-1, ""COL_AMARILLO"[-]CARRERA: "COL_BLANCO"Se ha inciado (Modo Carrera)"(/carreras)");
lrace = 1;
}
case 5:
{
SendClientMessageToAllEx(-1, ""COL_ROJO"[-]CARRERA: "COL_BLANCO"Se ha Cerrado");
lrace = 0;
}
case 6: SendClientMessageToAllEx(COLOR_NARANJA, "[DLF]Botz "COL_BLANCO"test4");
case 7: SendClientMessageToAllEx(COLOR_NARANJA, "[DLF]Botz "COL_BLANCO"test5.");
}
return 1;
}