SA-MP Forums Archive
login Music Stream - 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: login Music Stream (/showthread.php?tid=516976)



login Music Stream - Hussain1Mustafa - 02.06.2014

Well alot of guys were asking for it,so decided to post it for you guys
I'm new so dont know much on how to use these forums.

Well on top of your script add this:
Код:
new bool:firstSpawn[ MAX_PLAYERS ];
Then Place this Below [public OnPlayerConnect]
Код:
PlayAudioStreamForPlayer( playerid, "Link" );
          firstSpawn[ playerid ] = true;
Then after this place This code Under [public OnPlayerSpawn]
Код:
StopAudioStreamForPlayer ( playerid );
         firstSpawn[ playerid ] = false;
After This Just compile it!
Got Questions i will be Happy to help

also visit my server(RP) 37.59.28.180:13053


Re: login Music Stream - Faisal_khan - 02.06.2014

Welcome to the forums. And yeah add this post in this section.

EDIT: And yeah I would use PVar for this. PVar are faster.


Re: login Music Stream - Aerotactics - 02.06.2014

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
Welcome to the forums. And yeah add this post in this section.

EDIT: And yeah I would use PVar for this. PVar are faster.
PVars should never be used unless you ABSOLUTELY need them. They are intended for cross-script variables.


Re: login Music Stream - Threshold - 02.06.2014

And I don't think they are 'faster' to be honest.