public OnPlayerConnect(playerid)
{
RandomZene(playerid);
SendClientMessage(playerid, -1, \"Lejátszuk a random zenét\");
return 1;
}
stock RandomZene(playerid)
{
if(IsPlayerConnected(playerid))
{
new rand = random(4);
switch(rand)
{
case 0:
{
PlayAudioStreamForPlayer(playerid, \"elsõ link\");
}
case 1:
{
PlayAudioStreamForPlayer(playerid, \"második link\");
}
case 2:
{
PlayAudioStreamForPlayer(playerid, \"harmadik link\");
}
case 3:
{
PlayAudioStreamForPlayer(playerid, \"negyedik link\");
}
case 4:
{
PlayAudioStreamForPlayer(playerid, \"ötödik link\");
}
}
}
return 1;
}