Jump to content

Music system


NizaNNN

Recommended Posts

salut cum pot pune muzica sa se porneasca automat la tutorialul serverului?

 

adica dupa ce te inregistrezi si incepe tutorialul sa cante o muzica pe fundal !

TogglePlayerSpectating(i, 1);
                        for( new j = 0; j <= 50; j++) SendClientMessage(i, COLOR_WHITE, "");                        
                        PlayAudioStreamForPlayer(i, "http://www.youtubeinmp3.com/fetch/?video=https://www.youtube.com/watch?v=pk1YRxLu8n4");
                        SetPlayerVirtualWorld(i, 9999);
                        PlayerTextDrawHide(i, NameTD);

Edited by NizaNNN
Link to comment
Share on other sites

Pui la OnPlayerConnect:

public OnPlayerConnect(playerid)
{
	PlayAudioStreamForPlayer(playerid, "https://www.dl.dropboxusercontent.com/s/lxyq2qxobpidimj/Akcent%20-%20My%20Passion.mp3");
	return 1;
}

Eu am incarcat pe dropbox la mine melodia aia.

si la OnPlayerSpawn:

public OnPlayerSpawn(playerid)
{
	StopAudioStreamForPlayer(playerid);
	return 1;
}

Ori pui PlayAudioStreamForPlayer sa se acceseze atunci cand incepe tutorialul.

Urmezi sirul actiunilor in fiserul tau .pwn ( Inregistrare, Logare, Varsta etc etc pana ajungi la inceperea tutorialului ).

Edited by andy47
Link to comment
Share on other sites

3 hours ago, andy47 said:

Pui la OnPlayerConnect:


public OnPlayerConnect(playerid)
{
	PlayAudioStreamForPlayer(playerid, "https://www.dl.dropboxusercontent.com/s/lxyq2qxobpidimj/Akcent%20-%20My%20Passion.mp3");
	return 1;
}

Eu am incarcat pe dropbox la mine melodia aia.

si la OnPlayerSpawn:


public OnPlayerSpawn(playerid)
{
	StopAudioStreamForPlayer(playerid);
	return 1;
}

Ori pui PlayAudioStreamForPlayer sa se acceseze atunci cand incepe tutorialul.

Urmezi sirul actiunilor in fiserul tau .pwn ( Inregistrare, Logare, Varsta etc etc pana ajungi la inceperea tutorialului ).

Man , ma poti ajuta cu un mic system de Bullhorn ? 

Link to comment
Share on other sites

3 minutes ago, Adrian FW said:

Man , ma poti ajuta cu un mic system de Bullhorn 

Salutari!

Acele coarne sunt niste obiecte, mai exact id 19314.

Idee ar sta in faptul ca trebuie sa creezi obiectul si sa-l atasezi pe masina. Foloseste functiile:

http://wiki.sa-mp.com/wiki/CreateObject

http://wiki.sa-mp.com/wiki/AttachObjectToVehicle

Si pentru ca sa nu te chinui cu setarea coordonatelor foloseste un editor gen: http://forum.sa-mp.com/showthread.php?t=282883

Link to comment
Share on other sites

1 minute ago, andy47 said:

Salutari!

Acele coarne sunt niste obiecte, mai exact id 19314.

Idee ar sta in faptul ca trebuie sa creezi obiectul si sa-l atasezi pe masina. Foloseste functiile:

http://wiki.sa-mp.com/wiki/CreateObject

http://wiki.sa-mp.com/wiki/AttachObjectToVehicle

Si pentru ca sa nu te chinui cu setarea coordonatelor foloseste un editor gen: http://forum.sa-mp.com/showthread.php?t=282883

Imi poti da fb-ul tau in privat ? sa discutam ceva

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.