[Cerere] plugin welcome

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 .
kRoM #wEst
Membru, skill 0
Membru, skill 0
Posts: 48
Joined: 23 Sep 2013, 19:02
Detinator Steam: Nu
Has thanked: 18 times

17 Dec 2013, 00:16

am pus pluginul asta pe sv dar nu aud sunetul.

sunetul e asta: http://www.girlshare.ro/33075807.6

va rog sa imi ziceti cum il pun sa se auda cand intru pe sv

Code: Select all

#include <amxmodx>

new const sSound[] = "sound/misc/welcome.wav"

public plugin_init() {
	register_plugin("WelcomeSounds", "0.1", "C0sm1N")
}
public plugin_precache()
{
	precache_sound(sSound)
}
public client_putinserver( )
{
	set_task(2.0,"cmdSound",0)
}
public cmdSound()
{
	client_cmd(0,"spk %s",sSound)
Rapidserver
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

17 Dec 2013, 00:21

Code: Select all

#include <amxmodx>

new const sSound[] = "sound/misc/welcome.wav"

public plugin_init() {
   register_plugin("WelcomeSounds", "0.1", "C0sm1N")
}
public plugin_precache()
{
   precache_sound(sSound)
}
public client_putinserver( )
{
   set_task(2.0,"cmdSound",0)
}
public cmdSound()
{
   client_cmd(0,"spk %s",sSound)
}
Merge sigur,l-a testat si csn^ si zicea ca merge . .
kRoM #wEst
Membru, skill 0
Membru, skill 0
Posts: 48
Joined: 23 Sep 2013, 19:02
Detinator Steam: Nu
Has thanked: 18 times

17 Dec 2013, 00:25

pluginul merge dar nu aud sunetul cand intru pe sv,unde bag sunetul ala in sv ca sa se auda
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

17 Dec 2013, 00:43

sound/misc/welcome.wav

in sound/misc si trebuie sa fie de extensie .wav :)
kRoM #wEst
Membru, skill 0
Membru, skill 0
Posts: 48
Joined: 23 Sep 2013, 19:02
Detinator Steam: Nu
Has thanked: 18 times

17 Dec 2013, 20:40

dar daca e format mp3 sunetu nu merge?
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

17 Dec 2013, 20:42

Nu
kRoM #wEst
Membru, skill 0
Membru, skill 0
Posts: 48
Joined: 23 Sep 2013, 19:02
Detinator Steam: Nu
Has thanked: 18 times

17 Dec 2013, 21:32

am modificat sunetul in wav si tot nu merge ma poate ajuta cineva
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1771
Joined: 16 Jul 2011, 20:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Location: Bacău
Has thanked: 145 times
Been thanked: 388 times
Contact:

17 Dec 2013, 22:16

Incearca | Afiseaza codul
#include <amxmodx>

new const sSound[] = "sound/misc/welcome"

public plugin_init() 
{
	register_plugin("WelcomeSounds", "0.1", "C0sm1N")
}

public plugin_precache()
{
	new zabalos[40];
	formatex(zabalos, charsmax(zabalos) - 1, "%s.mp3", sSound)
	precache_generic(zabalos)
}

public client_putinserver(id)
{
	set_task(2.0, "cmdSound", id)
}

public cmdSound(id)
{
	if(is_user_connected(id))
		client_cmd(id, "mp3 play %s", sSound)
}
89.34.25.17:27015 - XMAS MOD
89.34.25.38:27015 - XMAS MOD
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

17 Dec 2013, 22:51

cyby imi explici si mie ce sunt functiile astea?

Code: Select all

	new zabalos[40];
	formatex(zabalos, charsmax(zabalos) - 1, "%s.mp3", sSound)
	precache_generic(zabalos)
adica ele sunt folosite pentru .mp3 dar ce reprezinta ele?
kRoM #wEst
Membru, skill 0
Membru, skill 0
Posts: 48
Joined: 23 Sep 2013, 19:02
Detinator Steam: Nu
Has thanked: 18 times

17 Dec 2013, 23:00

imi mai puteti spune ce nume ii pun la sunet
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

17 Dec 2013, 23:02

welcome.mp3 Ti-a facut un plugin cyby care suporta si alte tipuri de sunete.

Code: Select all

#include <amxmodx>

new const sSound[] = "sound/misc/welcome"

public plugin_init() 
{
	register_plugin("WelcomeSounds", "0.1", "C0sm1N")
}

public plugin_precache()
{
	new zabalos[40];
	formatex(zabalos, charsmax(zabalos) - 1, "%s.mp3", sSound)
	precache_generic(zabalos)
}

public client_putinserver(id)
{
	set_task(2.0, "cmdSound", id)
}

public cmdSound(id)
{
	if(is_user_connected(id))
		client_cmd(id, "mp3 play %s", sSound)
}
new const sSound[] = "sound/misc/welcome" -> de aici modifici numele la sunet din welcome in ce vrei tu.
kRoM #wEst
Membru, skill 0
Membru, skill 0
Posts: 48
Joined: 23 Sep 2013, 19:02
Detinator Steam: Nu
Has thanked: 18 times

18 Dec 2013, 21:49

tot nu imi merge, pluginul este on pe sv dar tot nu sa aude sunetu nu stiu ce sa ii mai fac,am pus numele la sunet welcome.wav l-am pus in sound /misc dar nu se aude
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 11 guests