Jump to content

Voice Plugin (Din RUSIA)


Criaz40k

Recommended Posts

VOICE PLUGIN

(RUS)

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.

 

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;
}  

WEBSITE OFFICIAL

https://sampvoice.com/

Binary: 
https://github.com/*****Mor/sampvoice 

(DIN NOU, ACEST PLUGIN VINE DE PE FORUM-UL WWW.PAWNO-INFO.RO, SPER SA VA FIE DE AJUTOR, SUCCES)

Edited by Criaz40k
Link to comment
Share on other sites

L-as fi testat eu pentru mi-ar putea fi de folosc la serv trucking dar partea de client e detectata ca trojan si malware si chiar daca nu-mi pasa atat de mult de virusi, daca distribui ceva de genul trebuie sa te asiguri ca nu are virusi(mai ales ca e pus si pe github)

Link to comment
Share on other sites

9 minutes ago, Banditul said:

L-as fi testat eu pentru mi-ar putea fi de folosc la serv trucking dar partea de client e detectata ca trojan si malware si chiar daca nu-mi pasa atat de mult de virusi, daca distribui ceva de genul trebuie sa te asiguri ca nu are virusi(mai ales ca e pus si pe github)

L-am descarcat eu, si contine tot, voice.dll / voice.so / voice.inc, cat si partea de client.exe, chiar functioneaza.

Link to comment
Share on other sites

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 2 weeks later...
On 2/5/2018 at 6:50 PM, RazvaN. said:

Ahh, fix la ceea ce lucram si eu :( Daca stiam ca e facuta deja, nu ma mai apucam.. :| i hate life.

:)):)):)):)):)) :)) :))  :))

Ai nevoie de ajutor in scripting si nu ai bani? Te pot ajuta cu mare drag. Dar asta nu inseamna sa iti lucrez un Sistem de joc complet, daca ai nevoie de ajutor ma poti contacta pe Discord.ezgif-2-3a38433e2465.gif.9283810e304f5e405309769455e5e14b.gif

Link to comment
Share on other sites

  • 3 weeks later...
La 03.02.2018 la 19:44, DrooM. a spus:

Chiar functioneaza :D L-am bagat pe gamemode-ul meu. Dar e nasol ca daca nu instalezi sv_client.exe, nu poti vorbii pe joc 

salut droom eu tot am pus pe gm tot si in include si pwn dar se compileaza bine nu da error sau warning dar dupa nu mrg sa dau samp-server imi da 0 vehicles dc? 

Link to comment
Share on other sites

6 minutes ago, Exaton said:

salut droom eu tot am pus pe gm tot si in include si pwn dar se compileaza bine nu da error sau warning dar dupa nu mrg sa dau samp-server imi da 0 vehicles dc? 

Sttii ca tre sa adaugi voice.dll in server.cfg la Plugins?

Link to comment
Share on other sites

3 hours ago, Exaton said:

am rezolvat 

Ma bucur ca ai rezolvat ;) Bafta cu serverul!

https://sampvoice.com aici iti explica tot ce ai de facut.

Edited by razvanduciuc

Ai nevoie de ajutor in scripting si nu ai bani? Te pot ajuta cu mare drag. Dar asta nu inseamna sa iti lucrez un Sistem de joc complet, daca ai nevoie de ajutor ma poti contacta pe Discord.ezgif-2-3a38433e2465.gif.9283810e304f5e405309769455e5e14b.gif

Link to comment
Share on other sites

  • 2 weeks later...

Frumos plugin. Momentan din cate am inteles eu, este in perioada beta, o sa apara official-ul, cu un update mai mare.

                     

  Serverul meu de Discord: Click aici       a7DfKP7.gif                                                                      FGIfknL.gif

k35T5Nb.png                                                                                                                                                                                                                                                                                                I0aS856.gif

Link to comment
Share on other sites

  • 1 year later...
  • 8 months later...
La 04.02.2018 la 21:09, Mister a spus:

Vin si eu cu raspunsuri si pareri dupa 2 ani :))))

Banuiesc ca are aceste errori numai din cauza ca este facut de Rusi :))))

PS: Merge, dar dupa testare nu ar strica un reinstall la win ❤️

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.