How to stop sound id 1185
#1

Hi guys
I use PlayerPlaySound(playerid,1185,0,0,0); on public OnPlayerConnect(playerid)
It is login music.But I don`t know how to stop it. Always cycle...
I tried use PlayerPlaySound(playerid, 0, 0.0, 0.0, 0.0);. But it does not work...
PHP код:
public OnPlayerConnect(playerid)
{
    
SetPlayerVirtualWorld(playerid999);
    
SetTimerEx("Login"3000false"i"playerid);
    new 
string[128], pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
format(stringsizeof(string), "{E0FFFF}* %s 进服!",pName);
    
PlayerPlaySound(playerid,1185,0,0,0);//this
    
SendClientMessageToAll(playeridstring);
    return 
1;

PHP код:
public OnPlayerSpawn(playerid)
{
    
PlayerPlaySound(playerid00.00.00.0);
    return 
1;

Reply


Messages In This Thread
How to stop sound id 1185 - by 3417512908 - 01.04.2018, 02:21
Re: How to stop sound id 1185 - by kovac - 01.04.2018, 02:42
Re: How to stop sound id 1185 - by Maxandmov - 02.04.2018, 10:30

Forum Jump:


Users browsing this thread: 1 Guest(s)