Detach the player from the global stream if the 'Z' key is released If (keyid = 0x42 & lstream) SvDetachSpeakerFromStream(lstream, playerid) Detach the player from the local stream if the 'B' key is released Public SV_VOID:OnPlayerActivationKeyRelease(SV_UINT:playerid, SV_UINT:keyid)
If (keyid = 0x5A & gstream) SvAttachSpeakerToStream(gstream, playerid) Attach the player to the global stream as a speaker if the 'Z' key is pressed If (keyid = 0x42 & lstream) SvAttachSpeakerToStream(lstream, playerid) Attach player to local stream as speaker if 'B' key is pressed Public SV_VOID:OnPlayerActivationKeyPress(SV_UINT:playerid, SV_UINT:keyid) The public OnPlayerActivationKeyPress and OnPlayerActivationKeyReleaseĪre needed in order to redirect the player's audio traffic to theĬorresponding streams when the corresponding keys are pressed. Thus, players will be able to communicate through the global (heard equally at any point on the map) and local (heard only near the player) chats. Below we will create a server that will bind all connected players to the global stream, and also create a local stream for each player. Let's take a look at some of the plugin's features with a practical example. In this case, the player's audio traffic will not be forwarded to him. Players can be both speakers and listeners at the same time.
(If the documentation does not open, right-click on the documentation file, then Properties -> Unblock -> OK) To do this, open the sampvoice.chm file using the Windows reference. To get started using the plugin, read the documentation that comes with the server side. (If you have a Pawn.RakNet plugin be sure to place SampVoice after it)
#SAMP 0.3.7 R1 ARCHIVE#
#SAMP 0.3.7 R1 DOWNLOAD#
#SAMP 0.3.7 R1 MANUAL#
Players have access to 2 installation options: automatic (via the installer) and manual (via the archive). There is a client and server part of the plugin for this. Version supportįor the plugin to work, it must be installed by the players and on the server.
#SAMP 0.3.7 R1 SOFTWARE#
SAMPVOICE - is a Software Development Kit (SDK) for implementing voice communication systems in the Pawn language for open.mp servers.