Jump to content

sand145

Membru
  • Posts

    9
  • Joined

  • Last visited

Posts posted by sand145

  1. Incearca asta:

    [pawn] if(strcmp(cmd, "/musicforall", true) == 0)

    {

        //tmp = strtok(cmdtext, idx);

    new length = strlen(cmdtext);

    while ((idx < length) && (cmdtext[idx] <= ' '))

    {

    idx++;

    }

    new offset = idx;

    new link[182];

    while ((idx < length) && ((idx - offset) < (sizeof(link) - 1)))

    {

    link[idx - offset] = cmdtext[idx];

    idx++;

    }

    link[idx - offset] = EOS;

    if(!strlen(link))

        {

            SendClientMessage(playerid, COLOR_GREY, "Foloseste: /musicforall [link-ul]");

            return 1;

    }

    if(PlayerData[playerid][pAdmin] >= 1338)

    {

        foreach(Player, i)

        {

            PlayAudioStreamForPlayer(i, link);

            Listening = true;

    }

    }

    return 1;

    }[/pawn]

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.