10.05.2011, 14:52
Hello guys.
How do i make random music playing on my server?
I did the following:
At the top of script:
In "OnPlayerConnect":
But it doesn't work.
And by the way; How do i stop a playing sound?
Hope someone can help me. Thank you.
How do i make random music playing on my server?
I did the following:
At the top of script:
pawn Код:
new RandomSound[][4] =
{
{1097}, // Those are sound IDs
{1183},
{1185},
{1187}
};
pawn Код:
new rand = random(sizeof(RandomSound));
PlayerPlaySound(playerid, RandomSound[rand][3], 0.0, 0.0, 0.0);
And by the way; How do i stop a playing sound?
Hope someone can help me. Thank you.