Szerző Téma: Zene egy pontban  (Megtekintve 681 alkalommal)

quer

  • Vendég
Zene egy pontban
« Dátum: 2012. Április 13. - 19:43:30 »
0
Hallottam oylanrol hogy lehet oylat hogy egy pontba szól a zene...
ezt hogy lehet?
valaki leírná a scriptet?
kösszi elõre is

Nem elérhető RyDerBoy96

  • 2048
  • RyDerBoy96
    • Profil megtekintése
Zene egy pontban
« Válasz #1 Dátum: 2012. Április 13. - 20:11:08 »
0
Ilyen nekem is kéne már régóta..

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Zene egy pontban
« Válasz #2 Dátum: 2012. Április 13. - 20:15:20 »
+1
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(playerid, \"url\", X, Y, Z, 10.0, 1);

Esetleg.

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Zene egy pontban
« Válasz #3 Dátum: 2012. Április 13. - 20:58:30 »
0
Jelen esetben nem kell kordintát írni, mert lekéri a játékos pozicióját, és onnan szól a zene, de ha azt akarod, hogy egy kordinátán, akkor kitörlöd a \'new Float\'-okat, és kordit rakdsz az x, y, z helyére. Itt fs-ben.:
 
#include <a_samp>
#include <zcmd>
CMD:music(playerid, params[])
{
     new Float:X, Float:Y, Float:Z;
     GetPlayerPos(playerid, X, Y, Z);
     PlayAudioStreamForPlayer(playerid, \"url\", X, Y, Z, 10.0, 1);
     return 1;
}

Nem elérhető $uRí

  • 226
    • Profil megtekintése
Zene egy pontban
« Válasz #4 Dátum: 2012. Április 13. - 21:03:36 »
0
Tessék így probáld!
 

new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(playerid, \"http://somafm.com/tags.pls\", X, Y, Z, Distance, 1);

Nem elérhető RyDerBoy96

  • 2048
  • RyDerBoy96
    • Profil megtekintése
Zene egy pontban
« Válasz #5 Dátum: 2012. Április 13. - 21:17:17 »
0
Idézetet írta: $uRí date=1334343816\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20121\" data-ipsquote-contentclass=\"forums_Topic
Tessék így probáld!
 

new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(playerid, \"http://somafm.com/tags.pls\", X, Y, Z, Distance, 1);

 

olvasd el a hsz-eket, már rég kapott választ..

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Zene egy pontban
« Válasz #6 Dátum: 2012. Április 13. - 21:18:21 »
0
Idézetet írta: $uRí date=1334343816\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20121\" data-ipsquote-contentclass=\"forums_Topic
Tessék így probáld!
 

new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(playerid, \"http://somafm.com/tags.pls\", X, Y, Z, Distance, 1);

 

Leirtam már delay.....

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal