class selection music and animation problem
#1

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?
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

Just add ClearAnimations(playerid); to OnPlayerSpawn
Reply
#5

Quote:
Originally Posted by JaTochNietDan
Just add ClearAnimations(playerid); to OnPlayerSpawn
the skin keep dancing
Reply
#6

Dancing is special action not animation ....


Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
This will solve it
Reply
#7

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?
Reply
#8

lol how i can put a music when server start please tell me to please
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)