Raised This Month: $ Target: $400
 0% 

Playing sounds via player voicecomm (RawAudio)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
javalia
Senior Member
Join Date: May 2009
Location: korea, republic of
Old 11-07-2010 , 13:07   Re: Playing sounds via player voicecomm (RawAudio)
Reply With Quote #1

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
__________________
javalia is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode