This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menufunction onScriptLoad() {
dofile("scripts/LanguageSystem.nut");
}
function onScriptLoad() {
dofile("scripts/LanguageSystem.nut");
Language <- array(GetMaxPlayers(), 1);
}
function onPlayerCommand( player, cmd, text ) {
if ( cmd == "idioma" || cmd == "language" || cmd == "linguagem" ) {
if (!text) {
MessagePlayer( "/> [#08c5ff]" + cmd + " <pt/en/es>", player);
}
else if (text == "pt") {
if (Language[ player.ID ] == 0 ) {
MessagePlayer("> [#fc3932]O idioma ja esta definido como Portugues.", player);
}
else {
Language[ player.ID ] = 0;
MessagePlayer("> [#08c5ff]Idioma definido como Portugues.", player);
}
}
else if (text == "en") {
if (Language[ player.ID ] == 1 ) {
MessagePlayer("> [#fc3932]The language is already set to English.", player);
}
else {
Language[ player.ID ] = 1;
MessagePlayer("> [#08c5ff]Language set to English.", player);
}
}
else if (text == "es") {
if (Language[ player.ID ] == 2 ) {
MessagePlayer("> [#fc3932]El idioma ya esta configurado en espanol.", player);
}
else {
Language[ player.ID ] = 2;
MessagePlayer("> [#08c5ff]Idioma configurado en espanol.", player);
}
}
else MessagePlayer(getMsgByLanguage("> [#fc3932]Esse idioma nao esta na lista.", "> [#08c5ff]This language is not on the list.", "> [#08c5ff]Este idioma no esta en la lista.", player), player);
}
}
CreateRadioStream( 11, "Pop", "https://live.hunter.fm/pop_high", true );
CreateRadioStream( 12, "Pop2K", "https://live.hunter.fm/pop2k_high", true );
CreateRadioStream( 13, "Rock", "https://live.hunter.fm/rock_high", true );
CreateRadioStream( 14, "Tropical", "https://live.hunter.fm/tropical_high", true );
CreateRadioStream( 15, "80s", "https://live.hunter.fm/80s_high", true );
CreateRadioStream( 16, "Lofi", "https://live.hunter.fm/lofi_high", true );
CreateRadioStream( 17, "Smash!", "https://live.hunter.fm/smash_high", true );
CreateRadioStream( 18, "Sertanejo", "https://live.hunter.fm/sertanejo_high", true );
CreateRadioStream( 19, "Pisadinha", "https://live.hunter.fm/pisadinha_high", true );