14.07.2011, 09:46
Quote:
Tutorial
Client: Installation and use of the client plugin is simple. Just run the installer and extract the files to your GTA: San Andreas directory. The ASI plugin detects when SA-MP is loaded and obtains your current player name, server address, and server port automatically. It will then attempt to connect to the TCP server (if there is one) some time after the game has started. By default, there will be a total of ten retry attempts with a delay of ten seconds each. To adjust these numbers, along with a few other settings, you need to edit audio.ini. To locate this file, go to Start, click Run, and type in the following: Code:
%APPDATA%\SA-MP Audio Plugin Server: First, create a folder called plugins in your server directory if it doesn't already exist. Place audio.dll in it if you're using Windows, or audio.so if you're using Linux. Add the following line to server.cfg so that the plugin will load the next time the server starts: Windows: Code:
plugins audio Code:
plugins audio.so pawn Code:
Ensure that both the audiopacks folder and the audio.ini file are in the root directory of the server. Open audio.ini and add a section for your audio pack name. For demonstration purposes, this will be called "default_pack": Code:
[default_pack] Code:
[default_pack] 1 = example.wav pawn Code:
Code:
[default_pack] 1 = example.wav 2 = http://www.website.com/file.mp3 pawn Code:
More detailed examples of nearly every native can be found in the filterscript. |