01.04.2018, 02:21
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...
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(playerid, 999);
SetTimerEx("Login", 3000, false, "i", playerid);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{E0FFFF}* %s 进服!",pName);
PlayerPlaySound(playerid,1185,0,0,0);//this
SendClientMessageToAll(playerid, string);
return 1;
}
PHP код:
public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid, 0, 0.0, 0.0, 0.0);
return 1;
}