[DUV] Como fasso para parar uma musica ?
#1

exemplo
Код:
public OnPlayerRequestClass(playerid, classid)
{
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, -2341.3979,-1619.9023,483.6915);
  SetPlayerFacingAngle(playerid, 730.0);
  PlayerPlaySound(playerid,1062 ,0, 0, 0)
  SetPlayerCameraPos(playerid, -2339.3979,-1619.9023,483.6915);
  SetPlayerCameraLookAt(playerid, -2341.3979,-1619.9023,483.6915);
  ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
     return 1;
}
ok
qual e o codigo onde eu coloco para parar essa musica ?
Reply
#2

no topo do GM

#define OFF 1184

em onplayerspawn
PlayerPlaySound(playerid,OFF,0.0, 0.0, 0.0);
Reply
#3

Para que o define OFF?
Reply
#4

coloca isso
pawn Код:
PlayerPlaySound(playerid,0 ,0, 0, 0)
Reply
#5

Era bem mais simples siplesmente deletar o PlayerPlaySound(playerid,1062 ,0, 0, 0);.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)