Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem]Roundsoundy i klasy .


domin3p

Rekomendowane odpowiedzi

Opublikowano

Siemka mam taki problem z roundsoundami bo wgrywałem 2 razy i nie działają ;/

 

np : podkładam pake jest 10 sekund to leci muzyka że wybuchnie bomba i potem już nic nie leci ;/ a miała przecież lecieć muzyka na wygranie tt ..

 

 

oto co robie :

 

plugins.ini ----> dodaje alt_end_round_sounds.amxx

 

cvars.ini ----> dodaje :

 

ers_enabled 1

ers_player_toggle 1

erc_time_ads 120

erc_random_precache 8

 

folder round_sound i roundsound.ini ----> do configs

 

 

tak wygląda roundsound.ini

 

; CT Sounds
"sound/misc/life1.mp3" "CT"
"sound/misc/life3.mp3" "CT"
"sound/misc/life5.mp3" "CT"
"sound/misc/life7.mp3" "CT"
"sound/misc/life9.mp3" "CT"
"sound/misc/life11.mp3" "CT"
"sound/misc/life13.mp3" "CT"
"sound/misc/life15.mp3" "CT"

; T Sounds
"sound/misc/life2.mp3" "T"
"sound/misc/life4.mp3" "T"
"sound/misc/life5.mp3" "T"
"sound/misc/life8.mp3" "T"
"sound/misc/life10.mp3" "T"
"sound/misc/life12.mp3" "T"
"sound/misc/life14.mp3" "T"
"sound/misc/life16.mp3" "T"

 

plik tekstowy end_roundsound ----> do data/lang

 

alt_end_round_sounds.amxx ---> do plugins i mam jeszcze alt_end_round_sounds[old] ( ale nie wiem o co chodzi więc nie dodawałem)

 

alt_end_round_sounds.sma --> do scripting

 

no i utwory life1 - life16 dodaje do sound/misc

 

 

I jeszcze nie wiem jak dodawać nowe klasy , co i jak gdzie dodać . Oraz jak edytować klasy np : nazwe zmienić , albo żeby premium była .

Opublikowano

Za 2min wstawię sry

#edit

 

sma

 

 

//RoundSound.amxx -by PaintLancer

#include <amxmodx>

public plugin_init()
{
   register_plugin("RoundSound MP3","1.0","Paintlancer & naven")
   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,"mp3 play sound/life1.mp3")
           case 1: client_cmd(0,"mp3 play sound/life2.mp3")
           case 2: client_cmd(0,"mp3 play sound/life3.mp3")
           case 3: client_cmd(0,"mp3 play sound/life4.mp3")
           case 4: client_cmd(0,"mp3 play sound/life5.mp3")
           case 5: client_cmd(0,"mp3 play sound/life6.mp3")
           case 6: client_cmd(0,"mp3 play sound/life7.mp3")
           case 7: client_cmd(0,"mp3 play sound/life8.mp3")
       }

   return PLUGIN_HANDLED
}

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

   client_cmd(0,"stopsound")

   switch(rand){
           case 0: client_cmd(0,"mp3 play sound/life9.mp3")
           case 1: client_cmd(0,"mp3 play sound/life10.mp3")
           case 2: client_cmd(0,"mp3 play sound/life11.mp3")
           case 3: client_cmd(0,"mp3 play sound/life12.mp3")
           case 4: client_cmd(0,"mp3 play sound/life13.mp3")
           case 5: client_cmd(0,"mp3 play sound/life14.mp3")
           case 6: client_cmd(0,"mp3 play sound/life15.mp3")
           case 7: client_cmd(0,"mp3 play sound/life16.mp3")
       }

   return PLUGIN_HANDLED
}

public plugin_precache()
{
   precache_sound("life1.mp3") 
   precache_sound("life2.mp3") 
   precache_sound("life3.mp3") 
   precache_sound("life4.mp3")
   precache_sound("life5.mp3")
   precache_sound("life6.mp3")
   precache_sound("life7.mp3") 
   precache_sound("life8.mp3") 
   precache_sound("life9.mp3") 
   precache_sound("life10.mp3")
   precache_sound("life11.mp3")
   precache_sound("life12.mp3")
   precache_sound("life13.mp3") 
   precache_sound("life14.mp3") 
   precache_sound("life15.mp3") 
   precache_sound("life16.mp3")

   return PLUGIN_CONTINUE
}  

 

Opublikowano

I co ja mam z tym zrobić ? :D , jestem zielony , kilka dni dopiero w cs pracuje

Opublikowano

2x UP

Sma nic tu nie da... Tu trzeba .amxx mu dać :D

 

Download .amxx:

http://amxx.pl/kompilator/?mode=dl&pid=1085465&fname=roundsound.sma

4770714280454741315510.png
Opublikowano

Logi

 

Enabling debug mode
Auto-restarting the server on crash

Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(10)/version(5787)
scandir failed:/home/userdata/S42326U/cstrike16350_42326/cstrike16350/SAVE
scandir failed:/home/userdata/S42326U/cstrike16350_42326/cstrike16350/./valve/SAVE
scandir failed:/home/userdata/S42326U/cstrike16350_42326/cstrike16350/./platform/SAVE
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 11:30:00 Aug 28 2012 (5787)
STEAM Auth Server
Server IP address 94.23.245.111:27141

  Metamod version 1.19p32 Copyright (c) 2001-2006 Will Day
    Patch: Metamod-P (mm-p) v32 Copyright (c) 2004-2007 Jussi Kivilinna
  Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
  This is free software, and you are welcome to redistribute it
  under certain conditions; type `meta gpl' for details.


Anti Dlfile v1.0.0 - by Arkshine.
Memory initialization started.
        Memory patch succeed in "SV_ParseStringCommand" at : 0xF70DA18F
Memory initialization ended.

Version 0.9.179 Linux
[DPROTO]:  Loading config './dproto.cfg'
[DPROTO]:  LoggingMode = 2
[DPROTO]:  Config sucessfully loaded.
[DPROTO]: Done.

  AMX Mod X version 1.8.1.3746 Copyright (c) 2004-2006 AMX Mod X Development Team
  AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
  This is free software and you are welcome to redistribute it under
  certain conditions; type 'amxx gpl' for details.

scandir failed:/home/userdata/S42326U/cstrike16350_42326/cstrike16350/SAVE
scandir failed:/home/userdata/S42326U/cstrike16350_42326/cstrike16350/./valve/SAVE
scandir failed:/home/userdata/S42326U/cstrike16350_42326/cstrike16350/./platform/SAVE
L 12/29/2012 - 15:30:37: -------- Mapchange to de_dust2 --------
stray key in process_key: item_getiteminfo 63
L 12/29/2012 - 15:30:37: [AMXX] Plugin file open error (plugin "codperk_adrenalina.amxx")
L 12/29/2012 - 15:30:37: [AMXX] Plugin file open error (plugin "codperk_apteczka.amxx")
L 12/29/2012 - 15:30:37: [AMXX] Plugin file open error (plugin "codperk_autodestrukcja.amxx")
L 12/29/2012 - 15:30:37: [AMXX] Plugin file open error (plugin "codperk_awpsnajper.amxx")
L 12/29/2012 - 15:30:37: [AMXX] Plugin file open error (plugin "codperk_butykomandosa.amxx")
L 12/29/2012 - 15:30:37: [AMXX] Plugin file open error (plugin "codperk_butysnajpera.amxx")
L 12/29/2012 - 15:30:37: [AMXX] Plugin file open error (plugin "Galileo.amxx")
L 12/29/2012 - 15:30:37: [AMXX] Plugin file open error (plugin "pokazuj.amxx")
[AMXX] Loaded 2 admins from file
L 12/29/2012 - 15:30:38: Function "ResetHUD" was not found
L 12/29/2012 - 15:30:38: [AMXX] Run time error 19 (plugin "codclass_partyzant.amxx") - debug not enabled!
L 12/29/2012 - 15:30:38: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

       Admin Spectator ESP v1.3, Copyright (C) 2006 by KoST

Executing AMX Mod X Configuration File
Scrolling message displaying frequency: 10:00 minutes
[PTB] Ptb.cfg is being executed
PTB: (limitjoin) WTJ prevention is ON.
PTB: (limitafter) Team limiting starts after 0 round(s).
PTB: (limitmin) Team limiting needs at least 0 player(s).
PTB: (maxsize) Maximum team size is 11 player(s).
PTB: (maxdiff) Maximum team size difference is 2.
PTB: (autorounds) First 3 rounds no free team choice.
PTB: (wtjauto) Auto-joining WTJ after 3 tr(y/ies).
PTB: (wtjauto) Auto-kicking WTJ after 5 tr(y/ies).
PTB: (kick) WTJ kicking is OFF.
PTB: (savewtj) Saving to wtj.log is OFF.
PTB: (switch) Team switching is ON.
PTB: (switchafter) Switching starts after 3 round(s).
PTB: (switchmin) Switching needs at least 5 player(s).
PTB: (switchfreq) Switch occurs every 1 round(s) at maximum.
PTB: (playerfreq) Individual players are switched every 7 round(s) at maximum.
PTB: (forceswitch) Forcing switch after 0 unsuccessful switch(es).
PTB: (deadonly) Switching dead only is OFF.
PTB: (tellwtj) Telling about WTJ tries is ON.
PTB: (announce) Announcements are ON.
PTB: (sayok) "OK" announcements are ON.
PTB: (typesay) typesay usage is OFF.
PTB: (maxstreak) Maximum accepted win streak is 3.
PTB: (maxscore) Maximum accepted team score difference is 2.
PTB: (minrating) Minimum critical strength rating is 1.49.
PTB: (maxrating) Maximum critical strength rating is 2.00.
PTB: (superrating) Super critical strength rating is 3.00.
PTB: (maxincidents) Maximum incidents before internal player score scale down is 50.
PTB: (scaledown) Integer scale down factor for player scores is 2.
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit

Menu item 17 added to Menus Front-End: "Plugin Cvars" from plugin "pluginmenu.amxx"
Menu item 18 added to Menus Front-End: "Plugin Commands" from plugin "pluginmenu.amxx"
Connection to Steam servers successful.
  VAC secure mode is activated.

Opublikowano

plugin wogole nie jest rozczytywany wejdz w amxmodx/logs i sprawdz logi z dzisijeszego dnia. i sprawdz czy jest tam coś o roudsoundzie.

 

co do dodawania klas, dodajesz jak plugin. czyli wrzucasz do plugins/ a potem wchodzisz do plugins-codmod.ini i dodajesz tam pod wszystkimi klasami

Oferta dot. MyBB, IPB, phpbb by przemo, phpbb3:

  • Instalacja, konfiguracja forum
  • Konwertowanie bazy do innych silników np. z MyBB do IPB lub IPB 3.4 do 4.x
  • Przenoszenie forum z jednego serwera na drugi
  • Podpinanie domen
  • Instalacja, konfiguracja pluginów, lekka modyfikacja
  • Instalacja stylów, modyfikacje wyglądu forum
  • Doradztwo
  • Zaproponuj coś.
  • Technik

Tworzenie stron WWW (HTML5+ CSS3+JS) BOOSTRAP

Opublikowano

Dla nexores2

 

; 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)
pluginmenu.amxx        ; Menus for commands/cvars organized by plugin

; 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

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...