Cerere plugin

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
gFa
Membru, skill 0
Membru, skill 0
Posts: 53
Joined: 03 Dec 2012, 09:38
Detinator Steam: Da
CS Status: I'm junkie !
Detinator server CS: Nu
SteamID: naghipaul
Location: Bistrita
Has thanked: 7 times
Been thanked: 1 time
Contact:

28 Feb 2013, 16:48

As dorii pluginul acela care atunci cand intri pe server se aude o voce de femeie care spune ceva de genul "Cei cu lag mai mare de 70 vor primii kick".Il caut de 2 zile....Multumesc!
RoyalServer
User avatar
Hades Ownage
Membru eXtream
Membru eXtream
Posts: 3182
Joined: 22 Oct 2008, 10:12
Detinator Steam: Da
Detinator server CS: jb.clutch.ro
SteamID: hades-source
Reputatie: Fost Super Moderator
Fost Scripter eXtreamCS
Nume anterior: hadesownage
Location: Iasi
Has thanked: 324 times
Been thanked: 406 times

28 Feb 2013, 19:25

Code: Select all

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "0.0.1"
#define AUTHOR "hadesownage"

#pragma semicolon 1

new szSoundname;

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR);
    
    szSoundname = register_cvar("sound_name", "sunet.wav");
}

public client_putinserver(id) {
    set_task(1.0, "speak_sound", 100 + id);
}

public speak_sound(id) {
    client_cmd(id, "spk ^"%s^"", szSoundname);
} 
Editezi sunet.wav cu sunetul tau, atentie sa fie format .wav !
User avatar
CryWolf
Administrator
Administrator
Posts: 6505
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

28 Feb 2013, 21:32

hades

Code: Select all

public plugin_precache ( )
{
    precache_sound ( szSoundname );
} 
Ca dupa spune ca nu ii functioneaza pluginul :)

EDIT: sz , i, nu ar trebui sa le folosesti in asemenea circumstante.

Mai simplu si mai OK

Code: Select all

#include < amxmodx > 

#define PLUGIN        "plug-in"
#define VERSION        "0.0.1"
#define AUTHOR        "AzaZeL"

#define DELAY        2

// Numele sunetului .wav situat in Sounds
new g_sound [ ] = { "sunet.wav" };


public plugin_precache ( )
{
    register_plugin ( PLUGIN, VERSION, AUTHOR );
    precache_sound ( g_sound );
}

public client_putinserver ( id ) {
    set_task ( float ( DELAY ), "TaskSound", id );
}

public TaskSound ( id )
{
    if ( is_user_connected ( id ) )
    {
        client_cmd ( id, "spk %s", g_sound );
    }
    
    return 0;
} 
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

28 Feb 2013, 21:45

CryWolf wrote:hades

Code: Select all

public plugin_precache ( )
{
    precache_sound ( szSoundname );
} 
Ca dupa spune ca nu ii functioneaza pluginul :)

EDIT: sz , i, nu ar trebui sa le folosesti in asemenea circumstante.
CryWolf, scuzama ca postez, cum zic uni 'inutil / +1'. Dar vreau sa te intreb, am vazut la multe pluginuri, ce inseamna:

Code: Select all

sz_X
De ce se pune sz ? Cineva mi-a spus ca inseamna, sz - size..
[/b]
Retras
compaq
Fost moderator
Fost moderator
Posts: 2598
Joined: 01 Dec 2008, 15:32
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS
Has thanked: 15 times
Been thanked: 152 times

28 Feb 2013, 21:50

-ModeR- wrote:
CryWolf wrote:hades

Code: Select all

public plugin_precache ( )
{
    precache_sound ( szSoundname );
}
Ca dupa spune ca nu ii functioneaza pluginul :)

EDIT: sz , i, nu ar trebui sa le folosesti in asemenea circumstante.
CryWolf, scuzama ca postez, cum zic uni 'inutil / +1'. Dar vreau sa te intreb, am vazut la multe pluginuri, ce inseamna:

Code: Select all

sz_X
De ce se pune sz ? Cineva mi-a spus ca inseamna, sz - size..
[/b]
https://forums.alliedmods.net/showthrea ... ost1420083
User avatar
CryWolf
Administrator
Administrator
Posts: 6505
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

28 Feb 2013, 21:53

Mai exact quote tot de la compaq :)
compaq wrote: Cand ai prefixul i, e vorba de integer; cand ai prefixul sz e vorba de zero-terminated strings. Nu poti sa le combini.
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

28 Feb 2013, 22:01

CryWolf wrote:Mai exact quote tot de la compaq :)
compaq wrote: Cand ai prefixul i, e vorba de integer; cand ai prefixul sz e vorba de zero-terminated strings. Nu poti sa le combini.
Mersi. Acum inteleg :-?
Retras
User avatar
CryWolf
Administrator
Administrator
Posts: 6505
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

28 Feb 2013, 22:03

Vezi ca te articulez ;))
Image
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

28 Feb 2013, 22:07

CryWolf wrote:Vezi ca te articulez ;))
Image
Lol =)) chiar acum reintrasem, sa va dau multumesc, fara sa vad postul tau :))
Last edited by CryWolf on 28 Feb 2013, 22:08, edited 1 time in total.
Reason: :))
Retras
gFa
Membru, skill 0
Membru, skill 0
Posts: 53
Joined: 03 Dec 2012, 09:38
Detinator Steam: Da
CS Status: I'm junkie !
Detinator server CS: Nu
SteamID: naghipaul
Location: Bistrita
Has thanked: 7 times
Been thanked: 1 time
Contact:

28 Feb 2013, 23:08

Thx All !
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests