this will not print any radio text msg in chat, so u will need to do it in manual
(this is not bad thing, it is good thing)
and, u can hear voice of enemy by this.
and, emitter has no need to be a client, it is enough by a entity. even world entity can make voice, and a prop can, but no voicemark will shown.
this is my version of functions
Code:
stock bool:sendRawAudioMsgTo(client, target, const String:sSound[255], iVoicePitch = 100, Float:fVoiceMarkShowTime = 1.0){
//Peace-Maker has found how to use this usermsg, well, i helped him lol
new Handle:buffer = StartMessageOne("RawAudio", target);
if (buffer != INVALID_HANDLE) {
BfWriteByte(buffer, iVoicePitch);
BfWriteByte(buffer, client);
BfWriteFloat(buffer, fVoiceMarkShowTime);
BfWriteString(buffer, sSound);
EndMessage();
return true;
}
return false;
}
it will only send msg to certain player, not so differnt from original one of first thread
__________________