16.08.2009, 20:14
That has been suggested before, but it would require client-side hooks and possibly other modifications, which would technically violate SA-MP's license agreement. This client, apart from reading a few memory addresses to see if the game has focus, does nothing but communicate with the TCP server created by the plugin to play back audio files.
v0.3.2 has been released:
Note that in this version, you can keep track of handle IDs and sequence IDs like this:
v0.3.2 has been released:
Quote:
- Fixed bug related to stopping and starting audio files in the client; handle IDs and sequence IDs are now automatically assigned by the plugin - Fixed bug in the client that caused some track changes in online stations to print incorrectly - Made the text block in the client auto-clear after reaching a set limit (committed in v0.3.1, but lowered limit in v0.3.2) |
pawn Код:
new
handleid,
sequenceid;
handleid = Audio_Play(0, 1, 0, 0, 0);
sequenceid = Audio_CreateSequence();
Audio_Stop(0, handleid);
Audio_DestroySequence(sequenceid);