Raised This Month: $51 Target: $400
 12% 

roundsound


  
 
 
Thread Tools Display Modes
Author Message
The Tiger^^
Senior Member
Join Date: Apr 2007
Location: unbekannt :D
Old 10-04-2007 , 15:30   roundsound
#1

ich suche roundsound plugin nur mit ctwin und terwin sound ohne die anderen sounds hab paar gefunden aber da werden auch anderen sounds abgespielt
__________________
The Tiger^^ is offline
pwned.
Senior Member
Join Date: Jan 2007
Location: Germany
Old 10-04-2007 , 15:42   Re: roundsound
#2

Das kannst du einfach rausschneiden im code und neu compilen....
__________________
pwned. is offline
The Tiger^^
Senior Member
Join Date: Apr 2007
Location: unbekannt :D
Old 10-04-2007 , 16:27   Re: roundsound
#3

#include <amxmodx>
#include <amxmisc>
#define Plugin "End Round Sounds"
#define Version "1.2"
#define Author "Doombringer"
#define MAX_SOUNDS 132
#define T 0
#define CT 1
new t_sounds[MAX_SOUNDS][92], ct_sounds[MAX_SOUNDS][92], num_of_sounds[2]
new bool:is_wav[MAX_SOUNDS][2], bool:has_sounds_enabled[32]
new cvar, ads_time, toggle_allowed, message_mode
public plugin_init()
{
register_plugin(Plugin, Version, Author)

register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")

cvar = register_cvar("ES_enabled", "1")
ads_time = register_cvar("ES_ads_time", "145")
toggle_allowed = register_cvar("ES_toggle_allowed", "1")
message_mode = register_cvar("ES_message_mode", "2")

register_clcmd("say /sounds", "cmd_toggle")
register_clcmd("say_team /sounds", "cmd_toggle")

set_task(get_pcvar_float(ads_time), "show_ad")
}
public client_putinserver(id) has_sounds_enabled[id] = true
public print_client(id, arg[], { Float, Sql, Result, _ }:...)
{
new args[94]
vformat(args, 93, arg, 3)

if(get_pcvar_num(message_mode) == 2)
{
new message[94]
formatex(message, 93, "^x04[ERS] ^x01%s", args)

if(id)
{
message_begin(MSG_ONE, get_user_msgid("SayText"), _, id)
write_byte(id)
write_string(message)
message_end()
}
else
{
new players[32], num
get_players(players, num)

new player
for(new i = 0; i < num; i++)
{
player = players[i]

message_begin(MSG_ONE, get_user_msgid("SayText"), _, player)
write_byte(player)
write_string(message)
message_end()
}
}
}
else if(get_pcvar_num(message_mode) == 1)
{
set_hudmessage(170, 212, 255, -1.0, 0.32, 0, 2.0, 6.0)
show_hudmessage(id, "%s", args)
}
else
{
client_print(id, print_chat, "%s", args)
}
}
public show_ad()
{
if(!get_pcvar_num(ads_time))
return

print_client(0, "%L", LANG_SERVER, "AD")
set_task(get_pcvar_float(ads_time), "show_ad")
}
public cmd_toggle(id)
{
if(!get_pcvar_num(toggle_allowed))
{
print_client(id, "%L", id, "TOGGLE_DISABLED")
return PLUGIN_CONTINUE
}

has_sounds_enabled[id] = has_sounds_enabled[id] ? false:true
print_client(id, "%L", id, !has_sounds_enabled[id] ? "TOGGLE_OFF":"TOGGLE_ON", Plugin)

return PLUGIN_CONTINUE
}
stock sound_exists(file[])
{
new temp[92]
format(temp, 91, "sound/%s", file)

return file_exists(temp)
}
stock map_file_exists(path[])
{
new temp[92]

new map[32]
get_mapname(map, 31)

format(temp, 131, "%s/round_sounds/%s.ini", path, map)
return file_exists(temp)
}
public load_sounds()
{
new path[132]
get_configsdir(path, 131)

if(map_file_exists(path))
{
new map[32]
get_mapname(map, 31)

format(path, 131, "%s/round_sounds/%s.ini", path, map)
}
else
format(path, 131, "%s/sounds.ini", path)

new file = fopen(path, "rt")

if(!file)
{
server_print("%L", LANG_SERVER, "ERROR", Plugin)
return PLUGIN_CONTINUE
}

new text[95], t_team[3], t_path[92]
while(!feof(file))
{
fgets(file, text, 94)

if(!text[0] || text[0] == ';')
continue

parse(text, t_team, 2, t_path, 91)
if(!sound_exists(t_path))
{
server_print("%L", LANG_SERVER, "NOT_FOUND", Plugin, t_path)
continue
}

if(equali(t_team, "CT"))
{
ct_sounds[++num_of_sounds[CT]] = t_path
is_wav[num_of_sounds[CT]][CT] = containi(t_path, ".wav") != -1 ? true:false
}

else if(equali(t_team, "T"))
{
t_sounds[++num_of_sounds[T]] = t_path
is_wav[num_of_sounds[T]][T] = containi(t_path, ".wav") != -1 ? true:false
}

else
{
server_print("%L", LANG_SERVER, "INVALID_TAG", Plugin, t_path)
continue
}
}

fclose(file)
server_print("%L", LANG_SERVER, "LOAD_SUCCESS", Plugin, num_of_sounds[T], num_of_sounds[CT], num_of_sounds[T] + num_of_sounds[CT])

return PLUGIN_CONTINUE
}
play_sound(team)
{
new players[32], num
get_players(players, num, "c")

new player, sound_num = random_num(1, num_of_sounds[team])
for(new i = 0; i < num; i++)
{
player = players[i]

if(!has_sounds_enabled[player])
continue

client_cmd(player, "stopsound")
client_cmd(player, is_wav[sound_num][team] ? "spk %s" : "mp3 play sound/%s", team == T ? t_sounds[sound_num]:ct_sounds[sound_num])
}
}
public t_win()
{
if(!get_pcvar_num(cvar))
return

play_sound(T)
}
public ct_win()
{
if(!get_pcvar_num(cvar))
return

play_sound(CT)
}
public plugin_precache()
{
register_dictionary("roundsounds.txt")
load_sounds()

for(new i = 0; i < num_of_sounds[T] + num_of_sounds[CT]; ++i)
{
//precache_sound(strlen(sounds[i][CT]) ? sounds[i][CT]:sounds[i][T])

if(ct_sounds[i][0])
{
is_wav[i][CT] ? precache_sound(ct_sounds[i]) : precache_generic(ct_sounds[i])
server_print("%L", LANG_SERVER, "PRECACHED", Plugin, ct_sounds[i])
}

if(t_sounds[i][0])
{
is_wav[i][T] ? precache_sound(t_sounds[i]) : precache_generic(t_sounds[i])
server_print("%L", LANG_SERVER, "PRECACHED", Plugin, t_sounds[i])
}
}
}




und wie? hab das hier drauf http://forums.alliedmods.net/showthr...d+Round+Sounds
Attached Files
File Type: sma Get Plugin or Get Source (roundsounds.sma - 2507 views - 5.1 KB)
__________________

Last edited by The Tiger^^; 10-04-2007 at 16:29.
The Tiger^^ is offline
pwned.
Senior Member
Join Date: Jan 2007
Location: Germany
Old 10-04-2007 , 16:48   Re: roundsound
#4

http://forums.alliedmods.net/showthr...ght=Roundsound


Ist einfacher ...

Quote:
//RoundSound.amxx -by PaintLancer

#include <amxmodx>

public plugin_init()
{
register_plugin("RoundSound","1.0","PaintLanc er")
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")
}

public t_win()
{
new rand = random_num(0,2)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk misc/twinnar")
case 1: client_cmd(0,"spk misc/twinnar2")
case 2: client_cmd(0,"spk misc/twinnar3")
}

return PLUGIN_HANDLED
}

public ct_win()
{
new rand = random_num(0,2)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk misc/ctwinnar2")
case 1: client_cmd(0,"spk misc/ctwinnar3")
case 2: client_cmd(0,"spk misc/ctwinnar4")
}

return PLUGIN_HANDLED
}

public plugin_precache()
{
precache_sound("misc/ctwinnar2.wav")
precache_sound("misc/ctwinnar3.wav")
precache_sound("misc/ctwinnar4.wav")
precache_sound("misc/twinnar.wav")
precache_sound("misc/twinnar2.wav")
precache_sound("misc/twinnar3.wav")

return PLUGIN_CONTINUE
}
Denke mal ist selbsterklärennd .. kannst die sounds austauschen und verändern oder löschen !
__________________
pwned. is offline
Dagobert
Member
Join Date: Jan 2007
Old 08-13-2008 , 09:22   Re: roundsound
#5

HI sry das ich das alte thema wierder eröffne

und zwar habe ich bei mir das RoundSound 1.0 von PaintLancer drauf gemacht nun zu meinem prob. es werden nur ab und an sounds abgespielt aber von den 6 (3ct 3 t) immer nur 2 habe schon verschiedene probiert auch das von curry mit den 18 sounds aber immer mit dem selben ergebniss

meta list:

Code:
Currently loaded plugins:
               description      stat pend  file              vers      src  load  unlod
          [ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.8.0.3  ini  Start ANY  
          [ 2] HLGuard          RUN   -    hlguard_mm_i686.  v1.8      ini  Chlvl Chlvl
          [ 3] Fun              RUN   -    fun_amxx_i386.so  v1.8.0.3  pl1  ANY   ANY  
          [ 4] Engine           RUN   -    engine_amxx_i386  v1.8.0.3  pl1  ANY   ANY  
          [ 5] FakeMeta         RUN   -    fakemeta_amxx_i3  v1.8.0.3  pl1  ANY   ANY  
          [ 6] CStrike          RUN   -    cstrike_amxx_i38  v1.8.0.3  pl1  ANY   ANY  
          [ 7] CSX              RUN   -    csx_amxx_i386.so  v1.8.0.3  pl1  ANY   ANY  
         7 plugins, 7 running
amxx_plugins

Code:
Currently loaded plugins:
                name                    version     author            file             status   
          [  1] Admin Base              1.8.0.3660  AMXX Dev Team     admin.amxx       running  
          [  2] Admin Commands          1.8.0.3660  AMXX Dev Team     admincmd.amxx    running  
          [  3] Admin Help              1.8.0.3660  AMXX Dev Team     adminhelp.amxx   running  
          [  4] Slots Reservation       1.8.0.3660  AMXX Dev Team     adminslots.amxx  running  
          [  5] Multi-Lingual System    1.8.0.3660  AMXX Dev Team     multilingual.am  running  
          [  6] Menus Front-End         1.8.0.3660  AMXX Dev Team     menufront.amxx   running  
          [  7] Commands Menu           1.8.0.3660  AMXX Dev Team     cmdmenu.amxx     running  
          [  8] Players Menu            1.8.0.3660  AMXX Dev Team     plmenu.amxx      running  
          [  9] Maps Menu               1.8.0.3660  AMXX Dev Team     mapsmenu.amxx    running  
          [ 10] Admin Chat              1.8.0.3660  AMXX Dev Team     adminchat.amxx   running  
          [ 11] Anti Flood              1.8.0.3660  AMXX Dev Team     antiflood.amxx   running  
          [ 12] Scrolling Message       1.8.0.3660  AMXX Dev Team     scrollmsg.amxx   running  
          [ 13] Info. Messages          1.8.0.3660  AMXX Dev Team     imessage.amxx    running  
          [ 14] Admin Votes             1.8.0.3660  AMXX Dev Team     adminvote.amxx   running  
23:20:31  [ 15] NextMap                 1.8.0.3660  AMXX Dev Team     nextmap.amxx     running  
          [ 16] Nextmap Chooser         1.8.0.3660  AMXX Dev Team     mapchooser.amxx  running  
          [ 17] TimeLeft                1.8.0.3660  AMXX Dev Team     timeleft.amxx    running  
          [ 18] Pause Plugins           1.8.0.3660  AMXX Dev Team     pausecfg.amxx    running  
          [ 19] Stats Configuration     1.8.0.3660  AMXX Dev Team     statscfg.amxx    running  
          [ 20] Restrict Weapons        1.8.0.3660  AMXX Dev Team     restmenu.amxx    running  
          [ 21] StatsX                  1.8.0.3660  AMXX Dev Team     statsx.amxx      running  
          [ 22] CS Misc. Stats          1.8.0.3660  AMXX Dev Team     miscstats.amxx   running  
          [ 23] Loading Sound           1.0         Amxx User         loadingsound.am  running  
          [ 24] RoundSound              1.0         PaintLancer       roundsound.amxx  running  
          [ 25] AMXX Public server rul  1.20        Priski            public_rules.am  running  
          [ 26] Ultimate Gore           1.5         JTP10181          amx_gore_ultima  running  
          [ 27] AMX Super               3.7         Bmann_420 & Bo0m  amx_super.amxx   running  
          [ 28] High Ping Kicker        1.0         Shadow/Bo0m!      amx_hpk.amxx     running  
          [ 29] AMXX Piss               2.0         KRoTaL            amxx_piss_cs_cz  running  
23:20:31  [ 30] ATAC Config             1.1.09      f117bomb & T(+)r  amxx_atac_cfg.1  running  
          [ 31] ATAC                    2.5.5.5     T(+)rget/f117bom  atac.2.5.5.5.am  running  
          [ 32] Sank Sounds Plugin      1.6.0       White Panther, L  sank_sounds.amx  running  
          [ 33] Slots Reservation       0.9.7       f117bomb          slots_reservati  running  
          [ 34] Admin Weapon II         1.0         Mattcook          admin_weapon.am  running  
          [ 35] Automatic knife duel    0.3         JGHG              automatic_knife  running  
          [ 36] Admin Slash             1.2         mike_cao          admin_slash.amx  running  
         36 plugins, 36 running
plugin.ini

Code:
; AMX Mod X plugins
; Admin Base - Always one has to be activated
admin.amxx              ; admin base (required for any admin-related)
;admin_sql.amxx         ; admin base - SQL version (comment admin.amxx)
; Basic
admincmd.amxx           ; basic admin console commands
adminhelp.amxx          ; help command for admin console commands
adminslots.amxx         ; slot reservation
multilingual.amxx       ; Multi-Lingual management
; Menus
menufront.amxx          ; front-end for admin menus
cmdmenu.amxx            ; command menu (speech, settings)
plmenu.amxx             ; players menu (kick, ban, client cmds.)
;telemenu.amxx          ; teleport menu (Fun Module required!)
mapsmenu.amxx           ; maps menu (vote, changelevel)
; Chat / Messages
adminchat.amxx          ; console chat commands
antiflood.amxx          ; prevent clients from chat-flooding the server
scrollmsg.amxx          ; displays a scrolling message
imessage.amxx           ; displays information messages
adminvote.amxx          ; vote commands
; Map related
nextmap.amxx            ; displays next map in mapcycle
mapchooser.amxx         ; allows to vote for next map
timeleft.amxx           ; displays time left on map
; Configuration
pausecfg.amxx           ; allows to pause and unpause some plugins
statscfg.amxx           ; allows to manage stats plugins via menu and commands
; Counter-Strike
restmenu.amxx          ; restrict weapons menu
statsx.amxx             ; stats on death or round end (CSX Module required!)
miscstats.amxx         ; bunch of events announcement for Counter-Strike
;stats_logging.amxx     ; weapons stats logging (CSX Module required!)
; Enable to use AMX Mod plugins
;amxmod_compat.amxx     ; AMX Mod backwards compatibility layer
; Custom - Add 3rd party plugins here
loadingsound.amxx
roundsound.amxx
public_rules.amxx
amx_gore_ultimate.amxx
amx_super.amxx
amx_hpk.amxx
amxx_piss_cs_cz.amxx
amxx_atac_cfg.1.1.09.amxx
atac.2.5.5.5.amxx
sank_sounds.amxx
slots_reservation.amxx
admin_weapon.amxx
automatic_knife_duel.amxx
admin_slash.amxx
modul.ini

Code:
;;;
; To enable a module, remove the semi-colon (;) in front of its name.
; If it's not here, simply add it its name, one per line.
; You don't need to write the _amxx part or the file extension.
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SQL Modules usually need to be enabled manually ;;
;; You can have any number on at a time.  Use      ;;
;;  amx_sql_type in sql.cfg to specify the default ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;mysql
;sqlite
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Put third party modules below here.              ;;
;; You can just list their names, without the _amxx ;;
;;  or file extension.                              ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These modules will be auto-detected and loaded   ;;
;;  as needed.  You do not need to enable them here ;;
;;  unless you have problems.                       ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
fun
engine
fakemeta
;geoip
;sockets
;regex
;nvault
cstrike
csx
das komische ist ich bekomme keinerlei felhermeldung weder hlsw noch console auch net in den logs,
hoffe ihr könnt mir wieder einmal helfen
Danke im vorraus

PS: habe die sufu benutzt nur nix gefunden was mit diesen prob. zusammen hängen könnte.
__________________
CZ: 87.106.140.17:27215 -=The Red Eagles =- Biergarten
195.4.19.76:27015 -= The Red Eagles =- *Eckkneipe
CS 1.6 : 77.87.184.234:20015 #tre-gaming www.tre-clan.de [Fast Download]

Last edited by Dagobert; 08-13-2008 at 09:38.
Dagobert is offline
Dagobert
Member
Join Date: Jan 2007
Old 08-14-2008 , 13:08   Re: roundsound
#6

hi , hat keiner ne idee wo der fehler sein könnte ?
__________________
CZ: 87.106.140.17:27215 -=The Red Eagles =- Biergarten
195.4.19.76:27015 -= The Red Eagles =- *Eckkneipe
CS 1.6 : 77.87.184.234:20015 #tre-gaming www.tre-clan.de [Fast Download]
Dagobert is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode