


Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!It is also possible to have the Jukebox start with a limited amount of songs, and then by calling the add_song() function at any time during gameplay you could add a song to the menu, since it is dynamic. For instance, you could create an objective system for finding CD's scattered around the map - each CD unlocks a new song in the Jukebox! It's up to you to code these events, obviously.
--------------------------------------------------------------------------------------------------------------------
También es posible tener el inicio Jukebox con una cantidad limitada de canciones, y luego mediante una llamada a la función add_song() en cualquier momento durante el juego podría agregar una canción al menú, ya que es dinámica. Por ejemplo, podría crear un sistema objetivo para encontrar CD repartidos por todo el mapa - cada CD desbloquea una nueva canción en la rockola. Depende de usted para codificar estos eventos, obviamente.
//***********************************************************************/
// JUKEBOX STUFF
//***********************************************************************/
song1_trig = getentarray( "song1","targetname" );
array_thread( song1_trig,::song1_buy );
//***********************************************************************/
// JUKEBOX STUFF END
//***********************************************************************/
song1_buy()
{
cd1 = getEnt("song1_cd","targetname");
user = undefined;
cost = 1000; //change to cost that you want/cambiar precio
self setCursorHint("HINT_NOICON");
self UseTriggerRequireLookAt();
self setHintString("press &&1 to buy a song [Cost: "+cost+"]"); //text hint trigger/texto del trigger
while(1)
{
self waittill("trigger", user);
if( is_player_valid(user) && user.score >= cost )
{
play_sound_at_pos( "cha_ching", self.origin );
user thread maps\_zombiemode_score::minus_to_player_score( cost );
self delete();
thread mapsugx_jukebox::add_song("SONG NAME", "soundaliasname");
wait(0.1);
cd1 delete();
}
else
{
play_sound_at_pos( "no_cha_ching", self.origin );
wait(0.1);
}
wait(0.1);
}
}
thread mapsugx_jukebox::add_song("Destroy it", "Destroy_it");
lol

Gracias amigo!
Knowin' by name... SHEPERD OF FIRAAAAAHH
*Know me by name... SHEPERD OF FIRAAAAAHH

So, who's this Firah you guys are talking about? i mean, it is someone's name.