Jump to content

pomoc Je to možné ?


stonersvojta

Recommended Posts

Nevím jestli to půjde na 100% ale za pokus to stojí ;)

 

 

CMD:hudba(playerid, params[])
{
    new pisnicka[350];
    if(sscanf(params, "s", pisnicka)) return SendClientMessage(playerid, -1, "Použití: /hudba [url]");
    else
    {
        new str[300];
        new name[64];
        GetPlayerName(playerid, name, sizeof(name));
        format(str, sizeof(str), "Hráč %s spustil vlastní písničku pro všechny hráče.", name);
        for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
        {
            PlayAudioStreamForPlayer(i, pisnicka);
        }
    }
    return 1;
}
Link to comment
Share on other sites

Má to být takhle ??

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/sacz", cmdtext, true, 10) == 0)
	{
		for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)   {
		PlayAudioStreamForPlayer(i, "https://www.youtube.com/watch?v=MnqYwcuIjPM");
		}
		return 1;
	}
	return 0;
}

Link to comment
Share on other sites

~> Písničku z YouTube tam určitě nespustíš. Odkaz musí končit .mp3 a nebo .pls.

 

 

 

~> No sakra. Ty tu paměť tedy rozhodně nešetříš...

What ? To už ti vadí že poradí někdo jinej než ty ? o.O

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...