modificare resetscore [rezolvat]

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

20 Aug 2010, 10:58

salut...as dori o modificare la acest plugin cand scriu /reset /rs /resetscore /retry sa se auda un sunet (EX:scorul tau a fost resetat) sunetul il am eu..
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime	 600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

public plugin_init()
{
	register_plugin("Reset Score", "1.0", "Silenttt")
	
	//You may type /resetscore,/reset,/retry,/rs
	register_clcmd("say /reset", "reset_score")
	register_clcmd("say /retry", "reset_score")
        register_clcmd("say /resetscore", "reset_score")
         register_clcmd("say /rs", "reset_score")
	
	//This command by default will be set at 0
	//Change it to 1 in server.cfg if you want
	//A message to be shown to advertise this.
	pcvar_Advertise = register_cvar("sv_rsadvertise", "0")
	//This command by default is also 0
	//Change it to 1 in server.cfg if you want
	//It to show who reset their scores when they do it
	pcvar_Display = register_cvar("sv_rsdisplay", "0")
	
	if(get_cvar_num("sv_rsadvertise") == 1)
	{
		set_task(adtime, "advertise", _, _, _, "b")
	}
}

public reset_score(id)
{
	//These both NEED to be done twice, otherwise your frags wont
	//until the next round
	cs_set_user_deaths(id, 0)
	set_user_frags(id, 0)
	cs_set_user_deaths(id, 0)
	set_user_frags(id, 0)
	
	if(get_pcvar_num(pcvar_Display) == 1)
	{
		new name[33]
		get_user_name(id, name, 32)
		client_print(0, print_chat, "%s a resetat scorul...", name)
	}
	else
	{
		client_print(id, print_chat, "Scorul dvs a fost RESETAT!")
	}
}

public advertise()
{
	set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
	show_hudmessage(0, "By typing /resetscore you can restart your deaths and kills back to 0")
}

public client_putinserver(id)
{
	if(get_pcvar_num(pcvar_Advertise) == 1)
	{
		set_task(10.0, "connectmessage", id, _, _, "a", 1)
	}
}

public connectmessage(id)
{
	if(is_user_connected(id))
	{
	client_print(id, print_chat, "By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
	}
}
Last edited by Ciprian on 21 Aug 2010, 18:01, edited 2 times in total.
Reason: Foloseste sursa pt. texte lungi.
Nick: MiSteR D
Image
Reptile
Membru, skill +1
Membru, skill +1
Posts: 245
Joined: 12 Nov 2008, 14:11
Detinator Steam: Nu
Reputatie: Fost manager
Been thanked: 23 times

20 Aug 2010, 11:15

| Afiseaza codul
[code]#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime 600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

new const g_Sound[] = "misc/reset.mp3";

public plugin_init()
{
    register_plugin("Reset Score", "1.0", "Silenttt")

    //You may type /resetscore,/reset,/retry,/rs
    register_clcmd("say /reset", "reset_score")
    register_clcmd("say /retry", "reset_score")
    register_clcmd("say /resetscore", "reset_score")
    register_clcmd("say /rs", "reset_score")

    //This command by default will be set at 0
    //Change it to 1 in server.cfg if you want
    //A message to be shown to advertise this.
    pcvar_Advertise = register_cvar("sv_rsadvertise", "0")
    //This command by default is also 0
    //Change it to 1 in server.cfg if you want
    //It to show who reset their scores when they do it
    pcvar_Display = register_cvar("sv_rsdisplay", "0")

    if(get_cvar_num("sv_rsadvertise") == 1)
    {
        set_task(adtime, "advertise", _, _, _, "b")
    }
}

public plugin_precache()
{
    precache_sound( g_Sound );
}

public reset_score(id)
{
    //These both NEED to be done twice, otherwise your frags wont
    //until the next round
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)

    client_cmd( id, "mp3 loop %s", g_Sound );

    if(get_pcvar_num(pcvar_Display) == 1)
    {
        new name[33]
        get_user_name(id, name, 32)
        client_print(0, print_chat, "%s a resetat scorul...", name)
    }
    else
    {
        client_print(id, print_chat, "Scorul dvs a fost RESETAT!")
    }
}

public advertise()
{
    set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
    show_hudmessage(0, "By typing /resetscore you can restart your deaths and kills back to 0")
}

public client_putinserver(id)
{
    if(get_pcvar_num(pcvar_Advertise) == 1)
    {
        set_task(10.0, "connectmessage", id, _, _, "a", 1)
    }
}

public connectmessage(id)
{
    if(is_user_connected(id))
    {
        client_print(id, print_chat, "By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
    }
}[/code]
mp3
| Afiseaza codul
[code]#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime 600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

new const g_Sound[] = "reset.wav";

public plugin_init()
{
    register_plugin("Reset Score", "1.0", "Silenttt")

    //You may type /resetscore,/reset,/retry,/rs
    register_clcmd("say /reset", "reset_score")
    register_clcmd("say /retry", "reset_score")
    register_clcmd("say /resetscore", "reset_score")
    register_clcmd("say /rs", "reset_score")

    //This command by default will be set at 0
    //Change it to 1 in server.cfg if you want
    //A message to be shown to advertise this.
    pcvar_Advertise = register_cvar("sv_rsadvertise", "0")
    //This command by default is also 0
    //Change it to 1 in server.cfg if you want
    //It to show who reset their scores when they do it
    pcvar_Display = register_cvar("sv_rsdisplay", "0")

    if(get_cvar_num("sv_rsadvertise") == 1)
    {
        set_task(adtime, "advertise", _, _, _, "b")
    }
}

public plugin_precache()
{
    precache_sound( g_Sound );
}

public reset_score(id)
{
    //These both NEED to be done twice, otherwise your frags wont
    //until the next round
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)

    client_cmd( id, "spk %s", g_Sound );

    if(get_pcvar_num(pcvar_Display) == 1)
    {
        new name[33]
        get_user_name(id, name, 32)
        client_print(0, print_chat, "%s a resetat scorul...", name)
    }
    else
    {
        client_print(id, print_chat, "Scorul dvs a fost RESETAT!")
    }
}

public advertise()
{
    set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
    show_hudmessage(0, "By typing /resetscore you can restart your deaths and kills back to 0")
}

public client_putinserver(id)
{
    if(get_pcvar_num(pcvar_Advertise) == 1)
    {
        set_task(10.0, "connectmessage", id, _, _, "a", 1)
    }
}

public connectmessage(id)
{
    if(is_user_connected(id))
    {
        client_print(id, print_chat, "By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
    }
}[/code]
wav
Last edited by Ciprian on 21 Aug 2010, 18:02, edited 1 time in total.
Reason: Foloseste sursa in loc de code/quote pt. texte lungi.
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

20 Aug 2010, 11:34

multumesc ...ai avut o mica greseala dar am rezolvato :D inca odata multumesc
Nick: MiSteR D
Image
User avatar
cEsZaR.JnT
Membru, skill 0
Membru, skill 0
Posts: 34
Joined: 24 Oct 2009, 21:36
Detinator Steam: Nu
CS Status: Brasov.GamesZone.Ro
Detinator server CS: Brasov.GamesZone.Ro
Has thanked: 7 times
Contact:

20 Aug 2010, 11:34

Scuzama ca intervin .. sma-urile astea nu sunt bune

Eu mi la-m modificat singur si merge 100%
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

20 Aug 2010, 11:36

ba sunt bune sma-urile dar a fost o mica greseala care am rezolvato...deci subiect inchis :D
Nick: MiSteR D
Image
User avatar
Ciprian
Fost administrator
Fost administrator
Posts: 5172
Joined: 10 May 2008, 20:29
Detinator Steam: Da
CS Status: ^^
SteamID: crazycipry
Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry
Location: Baia Mare
Has thanked: 176 times
Been thanked: 401 times

21 Aug 2010, 18:02

Mutat in Programare CS - Pluginuri!
User avatar
PumaCs
Membru, skill +1
Membru, skill +1
Posts: 118
Joined: 25 Sep 2010, 11:16
Detinator Steam: Da
Detinator server CS: Da
SteamID: x_puma_cs
Location: Bucuresti
Has thanked: 12 times
Contact:

06 Dec 2010, 02:24

Reptile wrote:
| Afiseaza codul
[code]#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime 600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

new const g_Sound[] = "misc/reset.mp3";

public plugin_init()
{
    register_plugin("Reset Score", "1.0", "Silenttt")

    //You may type /resetscore,/reset,/retry,/rs
    register_clcmd("say /reset", "reset_score")
    register_clcmd("say /retry", "reset_score")
    register_clcmd("say /resetscore", "reset_score")
    register_clcmd("say /rs", "reset_score")

    //This command by default will be set at 0
    //Change it to 1 in server.cfg if you want
    //A message to be shown to advertise this.
    pcvar_Advertise = register_cvar("sv_rsadvertise", "0")
    //This command by default is also 0
    //Change it to 1 in server.cfg if you want
    //It to show who reset their scores when they do it
    pcvar_Display = register_cvar("sv_rsdisplay", "0")

    if(get_cvar_num("sv_rsadvertise") == 1)
    {
        set_task(adtime, "advertise", _, _, _, "b")
    }
}

public plugin_precache()
{
    precache_sound( g_Sound );
}

public reset_score(id)
{
    //These both NEED to be done twice, otherwise your frags wont
    //until the next round
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)

    client_cmd( id, "mp3 loop %s", g_Sound );

    if(get_pcvar_num(pcvar_Display) == 1)
    {
        new name[33]
        get_user_name(id, name, 32)
        client_print(0, print_chat, "%s a resetat scorul...", name)
    }
    else
    {
        client_print(id, print_chat, "Scorul dvs a fost RESETAT!")
    }
}

public advertise()
{
    set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
    show_hudmessage(0, "By typing /resetscore you can restart your deaths and kills back to 0")
}

public client_putinserver(id)
{
    if(get_pcvar_num(pcvar_Advertise) == 1)
    {
        set_task(10.0, "connectmessage", id, _, _, "a", 1)
    }
}

public connectmessage(id)
{
    if(is_user_connected(id))
    {
        client_print(id, print_chat, "By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
    }
}[/code]
mp3
| Afiseaza codul
[code]#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime 600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

new const g_Sound[] = "reset.wav";

public plugin_init()
{
    register_plugin("Reset Score", "1.0", "Silenttt")

    //You may type /resetscore,/reset,/retry,/rs
    register_clcmd("say /reset", "reset_score")
    register_clcmd("say /retry", "reset_score")
    register_clcmd("say /resetscore", "reset_score")
    register_clcmd("say /rs", "reset_score")

    //This command by default will be set at 0
    //Change it to 1 in server.cfg if you want
    //A message to be shown to advertise this.
    pcvar_Advertise = register_cvar("sv_rsadvertise", "0")
    //This command by default is also 0
    //Change it to 1 in server.cfg if you want
    //It to show who reset their scores when they do it
    pcvar_Display = register_cvar("sv_rsdisplay", "0")

    if(get_cvar_num("sv_rsadvertise") == 1)
    {
        set_task(adtime, "advertise", _, _, _, "b")
    }
}

public plugin_precache()
{
    precache_sound( g_Sound );
}

public reset_score(id)
{
    //These both NEED to be done twice, otherwise your frags wont
    //until the next round
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)

    client_cmd( id, "spk %s", g_Sound );

    if(get_pcvar_num(pcvar_Display) == 1)
    {
        new name[33]
        get_user_name(id, name, 32)
        client_print(0, print_chat, "%s a resetat scorul...", name)
    }
    else
    {
        client_print(id, print_chat, "Scorul dvs a fost RESETAT!")
    }
}

public advertise()
{
    set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
    show_hudmessage(0, "By typing /resetscore you can restart your deaths and kills back to 0")
}

public client_putinserver(id)
{
    if(get_pcvar_num(pcvar_Advertise) == 1)
    {
        set_task(10.0, "connectmessage", id, _, _, "a", 1)
    }
}

public connectmessage(id)
{
    if(is_user_connected(id))
    {
        client_print(id, print_chat, "By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
    }
}[/code]
wav

OK , toate bune pana acum ...dar unde bag sunetul ???? :-?? :-?? :-??
Ai primit un avertisment pentru reclama din semnatura.
User avatar
H3adShoT
Membru, skill +3
Membru, skill +3
Posts: 1254
Joined: 03 May 2009, 18:19
Detinator Steam: Da
CS Status: Nu mai incercati sa-mi furati contul!
Detinator server CS: Nimic
SteamID: PM
Reputatie: Restrictie moderator
Location: Hunedoara
Has thanked: 47 times
Been thanked: 92 times
Contact:

07 Dec 2010, 18:00

PumaCs wrote:
Reptile wrote:
| Afiseaza codul
[code]#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime 600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

new const g_Sound[] = "misc/reset.mp3";

public plugin_init()
{
    register_plugin("Reset Score", "1.0", "Silenttt")

    //You may type /resetscore,/reset,/retry,/rs
    register_clcmd("say /reset", "reset_score")
    register_clcmd("say /retry", "reset_score")
    register_clcmd("say /resetscore", "reset_score")
    register_clcmd("say /rs", "reset_score")

    //This command by default will be set at 0
    //Change it to 1 in server.cfg if you want
    //A message to be shown to advertise this.
    pcvar_Advertise = register_cvar("sv_rsadvertise", "0")
    //This command by default is also 0
    //Change it to 1 in server.cfg if you want
    //It to show who reset their scores when they do it
    pcvar_Display = register_cvar("sv_rsdisplay", "0")

    if(get_cvar_num("sv_rsadvertise") == 1)
    {
        set_task(adtime, "advertise", _, _, _, "b")
    }
}

public plugin_precache()
{
    precache_sound( g_Sound );
}

public reset_score(id)
{
    //These both NEED to be done twice, otherwise your frags wont
    //until the next round
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)

    client_cmd( id, "mp3 loop %s", g_Sound );

    if(get_pcvar_num(pcvar_Display) == 1)
    {
        new name[33]
        get_user_name(id, name, 32)
        client_print(0, print_chat, "%s a resetat scorul...", name)
    }
    else
    {
        client_print(id, print_chat, "Scorul dvs a fost RESETAT!")
    }
}

public advertise()
{
    set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
    show_hudmessage(0, "By typing /resetscore you can restart your deaths and kills back to 0")
}

public client_putinserver(id)
{
    if(get_pcvar_num(pcvar_Advertise) == 1)
    {
        set_task(10.0, "connectmessage", id, _, _, "a", 1)
    }
}

public connectmessage(id)
{
    if(is_user_connected(id))
    {
        client_print(id, print_chat, "By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
    }
}[/code]
mp3
| Afiseaza codul
[code]#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime 600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

new const g_Sound[] = "reset.wav";

public plugin_init()
{
    register_plugin("Reset Score", "1.0", "Silenttt")

    //You may type /resetscore,/reset,/retry,/rs
    register_clcmd("say /reset", "reset_score")
    register_clcmd("say /retry", "reset_score")
    register_clcmd("say /resetscore", "reset_score")
    register_clcmd("say /rs", "reset_score")

    //This command by default will be set at 0
    //Change it to 1 in server.cfg if you want
    //A message to be shown to advertise this.
    pcvar_Advertise = register_cvar("sv_rsadvertise", "0")
    //This command by default is also 0
    //Change it to 1 in server.cfg if you want
    //It to show who reset their scores when they do it
    pcvar_Display = register_cvar("sv_rsdisplay", "0")

    if(get_cvar_num("sv_rsadvertise") == 1)
    {
        set_task(adtime, "advertise", _, _, _, "b")
    }
}

public plugin_precache()
{
    precache_sound( g_Sound );
}

public reset_score(id)
{
    //These both NEED to be done twice, otherwise your frags wont
    //until the next round
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)

    client_cmd( id, "spk %s", g_Sound );

    if(get_pcvar_num(pcvar_Display) == 1)
    {
        new name[33]
        get_user_name(id, name, 32)
        client_print(0, print_chat, "%s a resetat scorul...", name)
    }
    else
    {
        client_print(id, print_chat, "Scorul dvs a fost RESETAT!")
    }
}

public advertise()
{
    set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
    show_hudmessage(0, "By typing /resetscore you can restart your deaths and kills back to 0")
}

public client_putinserver(id)
{
    if(get_pcvar_num(pcvar_Advertise) == 1)
    {
        set_task(10.0, "connectmessage", id, _, _, "a", 1)
    }
}

public connectmessage(id)
{
    if(is_user_connected(id))
    {
        client_print(id, print_chat, "By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
    }
}[/code]
wav

OK , toate bune pana acum ...dar unde bag sunetul ???? :-?? :-?? :-??
new const g_Sound[] = "misc/reset.mp3";
chiar nu sti sa citesti ?
Retras din activitate.
User avatar
PumaCs
Membru, skill +1
Membru, skill +1
Posts: 118
Joined: 25 Sep 2010, 11:16
Detinator Steam: Da
Detinator server CS: Da
SteamID: x_puma_cs
Location: Bucuresti
Has thanked: 12 times
Contact:

08 Dec 2010, 00:31

H3adShoT wrote:
PumaCs wrote:
Reptile wrote:
| Afiseaza codul
[code]#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime 600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

new const g_Sound[] = "misc/reset.mp3";

public plugin_init()
{
    register_plugin("Reset Score", "1.0", "Silenttt")

    //You may type /resetscore,/reset,/retry,/rs
    register_clcmd("say /reset", "reset_score")
    register_clcmd("say /retry", "reset_score")
    register_clcmd("say /resetscore", "reset_score")
    register_clcmd("say /rs", "reset_score")

    //This command by default will be set at 0
    //Change it to 1 in server.cfg if you want
    //A message to be shown to advertise this.
    pcvar_Advertise = register_cvar("sv_rsadvertise", "0")
    //This command by default is also 0
    //Change it to 1 in server.cfg if you want
    //It to show who reset their scores when they do it
    pcvar_Display = register_cvar("sv_rsdisplay", "0")

    if(get_cvar_num("sv_rsadvertise") == 1)
    {
        set_task(adtime, "advertise", _, _, _, "b")
    }
}

public plugin_precache()
{
    precache_sound( g_Sound );
}

public reset_score(id)
{
    //These both NEED to be done twice, otherwise your frags wont
    //until the next round
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)

    client_cmd( id, "mp3 loop %s", g_Sound );

    if(get_pcvar_num(pcvar_Display) == 1)
    {
        new name[33]
        get_user_name(id, name, 32)
        client_print(0, print_chat, "%s a resetat scorul...", name)
    }
    else
    {
        client_print(id, print_chat, "Scorul dvs a fost RESETAT!")
    }
}

public advertise()
{
    set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
    show_hudmessage(0, "By typing /resetscore you can restart your deaths and kills back to 0")
}

public client_putinserver(id)
{
    if(get_pcvar_num(pcvar_Advertise) == 1)
    {
        set_task(10.0, "connectmessage", id, _, _, "a", 1)
    }
}

public connectmessage(id)
{
    if(is_user_connected(id))
    {
        client_print(id, print_chat, "By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
    }
}[/code]
mp3
| Afiseaza codul
[code]#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime 600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

new const g_Sound[] = "reset.wav";

public plugin_init()
{
    register_plugin("Reset Score", "1.0", "Silenttt")

    //You may type /resetscore,/reset,/retry,/rs
    register_clcmd("say /reset", "reset_score")
    register_clcmd("say /retry", "reset_score")
    register_clcmd("say /resetscore", "reset_score")
    register_clcmd("say /rs", "reset_score")

    //This command by default will be set at 0
    //Change it to 1 in server.cfg if you want
    //A message to be shown to advertise this.
    pcvar_Advertise = register_cvar("sv_rsadvertise", "0")
    //This command by default is also 0
    //Change it to 1 in server.cfg if you want
    //It to show who reset their scores when they do it
    pcvar_Display = register_cvar("sv_rsdisplay", "0")

    if(get_cvar_num("sv_rsadvertise") == 1)
    {
        set_task(adtime, "advertise", _, _, _, "b")
    }
}

public plugin_precache()
{
    precache_sound( g_Sound );
}

public reset_score(id)
{
    //These both NEED to be done twice, otherwise your frags wont
    //until the next round
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)
    cs_set_user_deaths(id, 0)
    set_user_frags(id, 0)

    client_cmd( id, "spk %s", g_Sound );

    if(get_pcvar_num(pcvar_Display) == 1)
    {
        new name[33]
        get_user_name(id, name, 32)
        client_print(0, print_chat, "%s a resetat scorul...", name)
    }
    else
    {
        client_print(id, print_chat, "Scorul dvs a fost RESETAT!")
    }
}

public advertise()
{
    set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
    show_hudmessage(0, "By typing /resetscore you can restart your deaths and kills back to 0")
}

public client_putinserver(id)
{
    if(get_pcvar_num(pcvar_Advertise) == 1)
    {
        set_task(10.0, "connectmessage", id, _, _, "a", 1)
    }
}

public connectmessage(id)
{
    if(is_user_connected(id))
    {
        client_print(id, print_chat, "By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
    }
}[/code]
wav

OK , toate bune pana acum ...dar unde bag sunetul ???? :-?? :-?? :-??
new const g_Sound[] = "misc/reset.mp3";
chiar nu sti sa citesti ?
Esti cam chior ..am sunetul .wav :| mi`l poti da si mie pe cel .mp3
Ai primit un avertisment pentru reclama din semnatura.
User avatar
S3ekEr^
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3457
Joined: 06 Dec 2009, 12:47
Detinator Steam: Nu
Reputatie: Nume anterior: The Seeker , Reptyle
Fost Scripter
Fost super moderator
Utilizator neserios ( tepar )
Has thanked: 105 times
Been thanked: 326 times

10 Dec 2010, 18:44

PumaCs wrote:
H3adShoT wrote:
PumaCs wrote:

OK , toate bune pana acum ...dar unde bag sunetul ???? :-?? :-?? :-??
new const g_Sound[] = "misc/reset.mp3";
chiar nu sti sa citesti ?
Esti cam chior ..am sunetul .wav :| mi`l poti da si mie pe cel .mp3
Foloseste un convertor pentru a face extensia mp3
User avatar
H3adShoT
Membru, skill +3
Membru, skill +3
Posts: 1254
Joined: 03 May 2009, 18:19
Detinator Steam: Da
CS Status: Nu mai incercati sa-mi furati contul!
Detinator server CS: Nimic
SteamID: PM
Reputatie: Restrictie moderator
Location: Hunedoara
Has thanked: 47 times
Been thanked: 92 times
Contact:

10 Dec 2010, 20:00

PumaCs wrote:
H3adShoT wrote:
PumaCs wrote:

OK , toate bune pana acum ...dar unde bag sunetul ???? :-?? :-?? :-??
new const g_Sound[] = "misc/reset.mp3";
chiar nu sti sa citesti ?
Esti cam chior ..am sunetul .wav :| mi`l poti da si mie pe cel .mp3
nu ma fa chior ca nu ai specificat daca e .wav sau .mp3
vezi ca nu am mancat din aceeasi farfurie
Retras din activitate.
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests