[HELP] I need help about Onplayerrequestclass . +REP1 -
VenomMancer - 22.10.2013
Hello all
I need help OnplayerRequestClass ..
I want player listen music.
i know how to make it, but i dont know how to make player listen music like "Harlem Shake,Titanium etc."
If you understand please help me for make it
Thanks be4 +REP1.
Re: [HELP] I need help about Onplayerrequestclass . +REP1 -
]Rafaellos[ - 22.10.2013
You can use
THIS.
Re: [HELP] I need help about Onplayerrequestclass . +REP1 -
VenomMancer - 22.10.2013
Quote:
Originally Posted by ]Rafaellos[
|
How to make the music is of when player spawn ?
Re: [HELP] I need help about Onplayerrequestclass . +REP1 -
newbie scripter - 22.10.2013
When A Player Spawns, here
Код:
public OnPlayerSpawn(playerid)
{
// The Code LIke PlayAudioStreamForPlayer(blablabla);
return 1;
}
On Request Class
Код:
public OnPlayerRequestClass(playerid, classid)
{
// code
return 1;
}
and more!
Re: [HELP] I need help about Onplayerrequestclass . +REP1 -
VenomMancer - 23.10.2013
anyone can make for me ?
i am a newbe scripter
Re: [HELP] I need help about Onplayerrequestclass . +REP1 -
[CG]Milito - 23.10.2013
pawn Код:
OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid, YOUR URL);
return 1;
}
OnPlayerSpawn(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
I don't recommend you using OnPlayerRequestClass callback because it gets called when a player changes the skin so the song will repeat and repeat whenever they just choose the skin.
That's why I made the code using OnPlayerConnect and OnPlayerSpawn callbacks
Re: [HELP] I need help about Onplayerrequestclass . +REP1 -
newbie scripter - 23.10.2013
where do you want to play the music? and also tell us the URL we will or i will make 1 for u or PM me
Re: [HELP] I need help about Onplayerrequestclass . +REP1 -
mahardika - 24.10.2013
Respuesta: Re: [HELP] I need help about Onplayerrequestclass . +REP1 -
[CG]Milito - 24.10.2013
Quote:
Originally Posted by mahardika
|
Did you just copy my code?
Re: Respuesta: Re: [HELP] I need help about Onplayerrequestclass . +REP1 -
mahardika - 24.10.2013
Quote:
Originally Posted by [CG]Milito
Did you just copy my code?
|
a little... just add the music...
Quote:
Originally Posted by VenomMancer
i know how to make it, but i dont know how to make player listen music like "Harlem Shake,Titanium etc."
|