• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] How to add music to skin selection menu?
#2
PHP Code:
public OnPlayerRequestClass(playeridclassid)

{

    
// your skin code...

    
if(GetPVarInt(playerid"playedSong") == 0)

    {

        
SetPVarInt(playerid"playedSong"1);

        
PlayAudioStreamForPlayer(playeridYOUR_AUDIO_STREAM);

    }

}



public 
OnPlayerSpawn(playerid)

{

    
// your spawn code...

    
StopAudioStreamForPlayer(playerid);

    
SetPVarInt(playerid"playedSong"0);

    return 
1;


  Reply


Messages In This Thread
RE: How to add music to skin selection menu? - by DandoRYx - 2021-03-25, 09:12 PM

Forum Jump: