#1

Guys i am mapping and scripting a nightclub i need to knoiw how to add music when spawn and it should be like cmd
ex - /music thn it will stream a audio in nightclub and when i exit /exitclub it should stop music how to make
Reply
#2

Use ******
Reply
#3

Quote:
Originally Posted by SupperRobin6394
Посмотреть сообщение
Use ******
Ok ik thx
Reply
#4

@SupperRobin6394 - no comment.

Use PlayAudioStreamForPlayer and StopAudioStreamForPlayer. Optionally, you can also create a zone and check if the player is in the zone so the music will be on/off depending on player's location.
Reply
#5

Try this
PHP код:
CMD:music(playerid,params[])// if used zcmd.inc
{
    
PlayAudioStreamForPlayer(playerid,"urldownloadlink");//Place your url download link of the song
    
SendClientMessage(playerid,"You have play Music ! Enjoy ");
    return 
1;

When you want to stop music

PHP код:
CMD:stopmusic(playerid,params[])// if used zcmd.inc
{
    
StopAudioStreamForPlayer(playerid);
    
SendClientMessage(playerid,"You have stoped the music ! ");
    return 
1;

Reply
#6

Thx u guys i have made it with

/on /off thx once more
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)