class selection music and animation problem - 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: class selection music and animation problem (
/showthread.php?tid=92095)
class selection music and animation problem -
sandisk125 - 18.08.2009
i have putted a music and animation to dance on OnPlayerRequestSpawn,i enter my server the music works and the skin dances,but when i selected a skin,i was go to spawnpoint,and the skin won't stop to dance and the music won't stop,why this happening to me?
Re: class selection music and animation problem -
Mr_Finnigan - 18.08.2009
For music try adding
Top of mode
Код:
#define SOUND_OFF 1184
Then under
Код:
public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid,SOUND_OFF,-1421.1034,1488.5735,11.8084);
return 1;
}
Re: class selection music and animation problem -
sandisk125 - 18.08.2009
Quote:
Originally Posted by Mr_FinnigaN
For music try adding
Top of mode
Код:
#define SOUND_OFF 1184
Then under
Код:
public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid,SOUND_OFF,-1421.1034,1488.5735,11.8084);
return 1;
}
|
thanks!
the music stops,but the skin keep dancing in the spawnpoint.
Re: class selection music and animation problem -
JaTochNietDan - 18.08.2009
Just add ClearAnimations(playerid); to OnPlayerSpawn
Re: class selection music and animation problem -
sandisk125 - 18.08.2009
Quote:
Originally Posted by JaTochNietDan
Just add ClearAnimations(playerid); to OnPlayerSpawn 
|
the skin keep dancing
Re: class selection music and animation problem -
Sergei - 18.08.2009
Dancing is special action not animation ....
Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
This will solve it
Re: class selection music and animation problem -
sandisk125 - 18.08.2009
Quote:
Originally Posted by Sergiy
Dancing is special action not animation ....
Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
This will solve it 
|
RIGHT!!,haaa,right is special aciton,so someoone can give me them in ApplyAnimation?
Re: class selection music and animation problem -
Sfinx_17 - 18.08.2009
lol how i can put a music when server start

please tell me to

please
Re: class selection music and animation problem -
Sergei - 18.08.2009
Quote:
Originally Posted by sandisk125
Quote:
Originally Posted by Sergiy
Dancing is special action not animation ....
Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
This will solve it 
|
RIGHT!!,haaa,right is special aciton,so someoone can give me them in ApplyAnimation?
|
Special actions are different than animations, so you can't compare these two.