01.05.2011, 22:57
So what I need to play a music?
I pasted the audiopacks folder on the server folder, and created the audio.ini into default_pack, and pasted on the default_pack folder the sound I want, and put on audio.ini that:
On gamemode:
It's not playing the audio. What's wrong?
How should that be? thanks,
I pasted the audiopacks folder on the server folder, and created the audio.ini into default_pack, and pasted on the default_pack folder the sound I want, and put on audio.ini that:
Код:
[default_pack] 1 = [asian+nation] high and mighty color - 12 tokyo nights.mp3
pawn Код:
}
public OnGameModeInit()
{
UsePlayerPedAnims();
DisableInteriorEnterExits();
SetGameModeText("High definition");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
LoadTexts();
LoadPickups();
FileCheck();
LoadMaps();
LoadGZ();
Audio_SetPack("default_pack", true);
return 1;
}
public Audio_OnClientConnect(playerid)
{
// Transfer the audio pack when the player connects
Audio_TransferPack(playerid);
}
public Audio_OnSetPack(audiopack[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
// Transfer the audio pack to all players when it is set
Audio_TransferPack(i);
}
}
public OnPlayerConnect(playerid)
{
new ip[16];
GetPlayerIp(playerid,ip,sizeof(ip));
if(!strcmp(ip, "127.0.0.1", true))
{
ip="182.22.102.75";
}
AllNull(playerid);
new announce[250];
format(announce,sizeof(announce),""#red"| [SERVER]: "#blue"%s (id: %d) "#green"has "#gold"connected "#red"to "#ice"the "#pink"server | "#gold"(%s)",GetMyName(playerid),playerid,ip);
MsgForAll(color,announce);
GangZoneShowForPlayer(playerid, GangZones[0], 0x00DF0096);
Audio_Play(playerid, 1, false, false, false);
return 1;
}
How should that be? thanks,