SA-MP Forums Archive
FS: When Someone connect play music - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: FS: When Someone connect play music (/showthread.php?tid=650371)



FS: When Someone connect play music - AdmiNi - 26.02.2018

Hey guys I need a filterscript that who will enter my server all will hear some music by link

Thanks For Helping Me!


Re: FS: When Someone connect play music - PepsiCola23 - 26.02.2018

PHP код:
PlayAudioStreamForPlayer 
at
PHP код:
OnPlayerConnect 
and
PHP код:
StopAudioStreamForPlayer 
to stop it whenever you want.


Re: FS: When Someone connect play music - PepsiCola23 - 26.02.2018

Quote:
Originally Posted by RxErT
Посмотреть сообщение
PHP код:
public OnPlayerConnect(playerid)//We will make it play a music when a player joins..

    
PlayAudioStreamForPlayer(playerid"the link here");//put a music link with .mp3 format, to start playing for player who joins.
    
return 1;
}
public 
OnPlayerSpawn(playerid)
{
     
StopAudioStreamForPlayer(playerid);//When player is spawned the music will be stoped.
     
return 1;

Can you just stop saying the same exact thing that has already been said ?