Uzzi25Adev Posted July 17, 2019 Share Posted July 17, 2019 VOICE PLUGIN Salut, acesta este un plugin care va permite sa adaugati un voice chat in SA-MP, este complet luat din rusia (www.pawno-info.ru). Description:The plugin will allow Pawn-developers to create voice systems on their servers. Descriere: Pluginul va permite dezvoltatorilor de pawn să creeze sisteme de voce pe serverele lor. Download: https://github.com/CyberMor/sampvoice Key Features: The player's microphone is monitored by the server Receiving incoming voice packets Sending voice packets is controlled by Pawn-mod Caracteristici cheie: Microfonul jucătorului este monitorizat de server Primirea pachetelor vocale primite Trimiterea pachetelor de voce este controlată de pawno UN EXEMPLU SIMPLU #include <a_samp> #include <voice> #undef MAX_PLAYERS #define MAX_PLAYERS 100 // PRESSED(keys) #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) // RELEASED(keys) #define RELEASED(%0) \ (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0))) public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { // Apăsați pe Y if(PRESSED(KEY_YES)) StartVoice(playerid); // Lăsați-l pe Y if(RELEASED(KEY_YES)) StopVoice(playerid); // return 1; } public OnPlayerVoice(playerid, BitStream:bs) { // Adăugați text deasupra capului jucătorului vorbitor SetPlayerChatBubble(playerid, "Speaker", COLOR_WHITE, 10.00, 1000); // Obțineți poziția jucătorului vorbitor new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); for(new i = 0; i < MAX_PLAYERS; i++) { if(playerid == i) continue; if(!IsPlayerConnected(i)) continue; //Trimiteți un pachet de voce tuturor jucătorilor pe o rază de 10 metri if(IsPlayerInRangeOfPoint(i, 10.00, pos[0], pos[1], pos[2])) { SendVoice(i, bs); // Trimiterea unui pachet de voce } } return 1; } Link to comment Share on other sites More sharing options...
AleXw0w Posted July 17, 2019 Share Posted July 17, 2019 multumesc, >3 W0W Link to comment Share on other sites More sharing options...
DarkWind Posted July 17, 2019 Share Posted July 17, 2019 stiu pluginu' dar e cam buguit.. Link to comment Share on other sites More sharing options...
AleXw0w Posted July 17, 2019 Share Posted July 17, 2019 Acum 1 minut, Unkn0wNADV a spus: stiu pluginu' dar e cam buguit.. Cam ce buguri are? W0W Link to comment Share on other sites More sharing options...
DarkWind Posted July 17, 2019 Share Posted July 17, 2019 Acum 3 minute, AlexRoRp a spus: Cam ce buguri are? nu mai stiu sigur, l-am folosit acum un an, nu-mi mai aduc aminte. Link to comment Share on other sites More sharing options...
AleXw0w Posted July 18, 2019 Share Posted July 18, 2019 Putin ajutor plz? W0W Link to comment Share on other sites More sharing options...
AleXw0w Posted July 18, 2019 Share Posted July 18, 2019 (edited) Imi da si crash programul... Edited July 18, 2019 by AlexRoRp W0W Link to comment Share on other sites More sharing options...
Dani3l. Posted July 18, 2019 Share Posted July 18, 2019 si vrei sa-mi spui ca nu ai nevoie de un program anume? Sunt de moda veche | Inca mai cred in respect Link to comment Share on other sites More sharing options...
AleXw0w Posted July 18, 2019 Share Posted July 18, 2019 Acum 1 oră, Dani3l. a spus: si vrei sa-mi spui ca nu ai nevoie de un program anume? Este un client care se instaleaza in sa:mp, dar imi da crash... W0W Link to comment Share on other sites More sharing options...
xMasterADV Posted January 21, 2021 Share Posted January 21, 2021 La 18.07.2019 la 13:57, AlexRoRp a spus: Este un client care se instaleaza in sa:mp, dar imi da crash... de unde se ia clientu? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now