When a player connect 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: When a player connect music (
/showthread.php?tid=447355)
When a player connect music -
ParadiseRP - 29.06.2013
Hey can any one show me how to do when a player connect to the server it will play this "
http://k002.kiwi6.com/hotlink/d6x42m65a0/paradise.mp3 "
And when he login so it will stop
Re: When a player connect music -
gurmani11 - 29.06.2013
Ok in onplayerconnect
Quote:
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/d6x42m65a0/paradise.mp3");
return 1;
}
|
add it on player spawn
Quote:
public OnPlayerSpawn(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
|
AW: When a player connect music -
Blackazur - 29.06.2013
Код:
PlayAudioStreamForPlayer
https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
on OnPlayerConnect
Re: When a player connect music -
ParadiseRP - 29.06.2013
Quote:
Originally Posted by gurmani11
Ok in onplayerconnect
add it on player spawn
|
I did this compiled and the Pawn is just keep crashing.
Re: When a player connect music -
gurmani11 - 29.06.2013
well you might typing
2 times in onplayerconnect and onplayerspawn
Re: When a player connect music -
ParadiseRP - 29.06.2013
Okay ^^ Works but when i connect
I connect as CJ and on the sky cant move
Re: When a player connect music -
gurmani11 - 29.06.2013
you need to show the code
Re: When a player connect music -
ParadiseRP - 29.06.2013
Quote:
Originally Posted by gurmani11
you need to show the code
|
Код:
public OnPlayerConnect(playerid)
{
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/d6x42m65a0/paradise.mp3");
return 1;
}
public OnPlayerSpawn(playerid)
{
{
StopAudioStreamForPlayer(playerid);
return 1;
}
Re: When a player connect music -
gurmani11 - 29.06.2013
i was talking about class selection.....
Quote:
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/d6x42m65a0/paradise.mp3");
return 1;
}
public OnPlayerSpawn(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
|