SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

SAPE ERROR: Не могу подключиться к серверу: dispenser-02.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

StopSound » AmxModX
| |
 RSS
  • OnLine

    : 7
    : 3
    : -
    : crawl Bot, Google Bot, Yandex Bot, Google Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 23-03-2012, 01:06 : 4068

    StopSound

    , , .

    :
    #define STOP_SOUND_WAV  0
    #define STOP_SOUND_MP3  1
    #define STOP_SOUND_ALL  2

    stock StopSound(pId, iType = STOP_SOUND_ALL)
    {
            switch (iType)
            {
                    case STOP_SOUND_WAV: client_cmd(pId, "stopsound");
                    case STOP_SOUND_MP3: client_cmd(pId, "mp3 stop");
                    case STOP_SOUND_ALL: client_cmd(pId, "stopsound;mp3 stop");
            }
            
            return 1;

    }
    :PRoSToTeM@

    :
    StopSound(pId, iType = STOP_SOUND_ALL)

    • pId - id
    • iType = STOP_SOUND_ALL - :
      #define STOP_SOUND_WAV  0
      #define STOP_SOUND_MP3  1
      #define STOP_SOUND_ALL  2



    :
    stock

    :
    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "[stock function] Stop"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    #define STOP_SOUND_WAV  0
    #define STOP_SOUND_MP3  1
    #define STOP_SOUND_ALL  2

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        // stop_sd
        register_event("SendAudio", "stop_sd", "a", "2&%!MRAD_terwin")
        register_event("SendAudio", "stop_sd", "a", "2&%!MRAD_ctwin")
        register_event("SendAudio", "stop_sd", "a", "2&%!MRAD_rounddraw")
    }

    public stop_sd(){
        
        new Players[32]
        new playerCount, i, id
        get_players(Players, playerCount, "ch")
        
        for (i=0; i<playerCount; i++) {
            id = Players[i]
            //
            StopSound(id,2)
        }
        
    }
    stock StopSound(pId, iType = STOP_SOUND_ALL)
    {
            switch (iType)
            {
                    case STOP_SOUND_WAV: client_cmd(pId, "stopsound");
                    case STOP_SOUND_MP3: client_cmd(pId, "mp3 stop");
                    case STOP_SOUND_ALL: client_cmd(pId, "stopsound;mp3 stop");
            }
            
            return 1;
    }


    :
    , .
    id
    , .
    .
    StopSound