[HELP]Tutorial Filterscript - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Tutorial Filterscript (
/showthread.php?tid=108045)
[HELP]Tutorial Filterscript -
Camacorn - 12.11.2009
[b]
Hello, do you know where i can find an Tutorial "FilterScript" , i want to have an tutorial for my server but dont want one integrated in an gamemode
Re: [HELP]Make Music Stop On Spawn -
retart441 - 12.11.2009
Put it under OnPlayerRequestClass
Re: [HELP]Make Music Stop On Spawn -
Camacorn - 12.11.2009
Quote:
Originally Posted by retart441
Put it under OnPlayerRequestClass
|
ill try that, i thought i had to put it under "OnPlayerRequestSpawn" guess im wrong.
Re: [HELP]Make Music Stop On Spawn -
Camacorn - 12.11.2009
Quote:
Originally Posted by retart441
Put it under OnPlayerRequestClass
|
![sad](images/smilies/sad.gif)
didnt help, still continues playing after spawn. this is now what i have:
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerWeather(playerid, 1);
SetPlayerPos(playerid, 2939.0447,-2051.4888,3.5480);
SetPlayerCameraPos(playerid, 2934.0447,-2051.4886,4.5480);
SetPlayerCameraLookAt(playerid, 2939.0447,-2051.4888,3.5480);
PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0); <---------- MUSIC START
SetPlayerFacingAngle(playerid, 91.9195);
switch(classid)
Re: [HELP]Make Music Stop On Spawn -
retart441 - 12.11.2009
Quote:
SOUND_GOGO_TRACK_START 1062 (music)
SOUND_GOGO_TRACK_STOP 1063 (music)
|
See if that works, try playing 1063 OnPlayerSpawn.
Re: [HELP]Make Music Stop On Spawn -
Camacorn - 12.11.2009
Quote:
Originally Posted by retart441
Quote:
SOUND_GOGO_TRACK_START 1062 (music)
SOUND_GOGO_TRACK_STOP 1063 (music)
|
See if that works, try playing 1063 OnPlayerSpawn.
|
WORKED!!! THANK YOU!!
Re: [HELP]Make Music Stop On Spawn -
retart441 - 12.11.2009
Anytime.
Re: [HELP]Make Music Stop On Spawn -
Camacorn - 12.11.2009
another thing, do ya know where i can find an Tutorial "FilterScript" , i want to have an tutorial for my server but dont want one integrated in an gamemode.
Re: [HELP]Make Music Stop On Spawn -
retart441 - 12.11.2009
Quote:
Originally Posted by Camacorn_Leek
another thing, do ya know where i can find an Tutorial "FilterScript" , i want to have an tutorial for my server but dont want one integrated in an gamemode.
|
Why not? It's a very simple thing to make.
Re: [HELP]Tutorial Filterscript -
Camacorn - 12.11.2009
can you show me how? like make the script i have to add to my gamemode? please.