Czy można zrobić takie coś, aby nagrywany był czysty dźwięk z serwera, a nie takie nie wiadomo jakie szumy?
Tak samo, czy można rejestrować również to, co piszą gracze żywi, a nie jedynie martwi?
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Julia
Rejestracja: 04.09.2010Aktualnie: Nieaktywny
Poza forum Ostatnio: 06.01.2012 12:37
Statystyki
- Grupa: Girl
- Całość postów: 163
- Odwiedzin: 6 243
- Tytuł: Profesjonalista
- Wiek: 29 lat
- Urodziny: Kwiecień 22, 1995
-
Imię
Julia
-
Płeć
Kobieta
-
Lokalizacja
Gdynia
Moje tematy
Pytania związane z HLTV
30.08.2011 14:30
Native error - cs_get_user_team/strip_user_weapons
22.08.2011 17:44
Logi:
Spoiler
L 08/22/2011 - 13:48:46: [CSTRIKE] Invalid player 16
L 08/22/2011 - 13:48:46: [AMXX] Displaying debug trace (plugin "menu_bron.amxx")
L 08/22/2011 - 13:48:46: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 08/22/2011 - 13:48:46: [AMXX] [0] menu_bron.sma::menu (line 21)
L 08/22/2011 - 14:26:03: [FUN] Invalid player 4
L 08/22/2011 - 14:26:03: [AMXX] Displaying debug trace (plugin "menu_bron.amxx")
L 08/22/2011 - 14:26:03: [AMXX] Run time error 10: native error (native "strip_user_weapons")
L 08/22/2011 - 14:26:03: [AMXX] [0] menu_bron.sma::czysc (line 40)
L 08/22/2011 - 14:26:03: [AMXX] [1] menu_bron.sma::wybor_menu (line 45)
L 08/22/2011 - 13:48:46: [CSTRIKE] Invalid player 16
L 08/22/2011 - 13:48:46: [AMXX] Displaying debug trace (plugin "menu_bron.amxx")
L 08/22/2011 - 13:48:46: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 08/22/2011 - 13:48:46: [AMXX] [0] menu_bron.sma::menu (line 21)
L 08/22/2011 - 14:26:03: [FUN] Invalid player 4
L 08/22/2011 - 14:26:03: [AMXX] Displaying debug trace (plugin "menu_bron.amxx")
L 08/22/2011 - 14:26:03: [AMXX] Run time error 10: native error (native "strip_user_weapons")
L 08/22/2011 - 14:26:03: [AMXX] [0] menu_bron.sma::czysc (line 40)
L 08/22/2011 - 14:26:03: [AMXX] [1] menu_bron.sma::wybor_menu (line 45)
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "Bronie"
#define VERSION "1.0"
#define AUTHOR "Naven"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "runda", 1);
}
public runda(id)
{
set_task(0.1, "menu", id)
}
public menu(id)
{
if (cs_get_user_team(id) == CS_TEAM_CT)
{
new menu = menu_create("\yBron podstawowa","wybor_menu")
menu_additem(menu,"\wAK47","1",0)
menu_additem(menu,"\wM4A1","2",0)
menu_additem(menu,"\wTMP","3",0)
menu_additem(menu,"\wMAC10","4",0)
menu_additem(menu,"\wXM1014","5",0)
menu_additem(menu,"\wSG552","6",0)
menu_additem(menu,"\wAWP","7",0)
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_setprop(menu,MPROP_EXITNAME,"\wWyjscie");
menu_display(id,menu,0)
}
return PLUGIN_HANDLED;
}
public czysc(id)
{
strip_user_weapons(id);
give_item(id, "weapon_knife")
}
public wybor_menu(id,menu,item)
{
czysc(id)
switch(item)
{
case 0:
{
give_item(id, "weapon_ak47")
cs_set_user_bpammo(id, CSW_AK47, 90)
give_item(id, "item_kevlar")
menupizdolce(id)
}
case 1:
{
give_item(id, "weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 90)
give_item(id, "item_kevlar")
menupizdolce(id)
}
case 2:
{
give_item(id, "weapon_tmp")
cs_set_user_bpammo(id, CSW_TMP, 120)
give_item(id, "item_kevlar")
menupizdolce(id)
}
case 3:
{
give_item(id, "weapon_mac10")
cs_set_user_bpammo(id, CSW_MAC10, 100)
give_item(id, "item_kevlar")
menupizdolce(id)
}
case 4:
{
give_item(id, "weapon_xm1014")
cs_set_user_bpammo(id, CSW_XM1014, 32)
give_item(id, "item_kevlar")
menupizdolce(id)
}
case 5:
{
give_item(id, "weapon_sg552")
cs_set_user_bpammo(id, CSW_SG552, 90)
give_item(id, "item_kevlar")
menupizdolce(id)
}
case 6:
{
give_item(id, "weapon_awp")
cs_set_user_bpammo(id, CSW_AWP, 90)
give_item(id, "item_kevlar")
menupizdolce(id)
}
}
menu_destroy(menu);
return PLUGIN_HANDLED
}
public menupizdolce(id)
{
if (cs_get_user_team(id) == CS_TEAM_CT)
{
new menu = menu_create("\yPistolety", "wybor_menupizdolce")
menu_additem(menu,"\wGLOCK18","1",0)
menu_additem(menu,"\wUSP","2",0)
menu_additem(menu,"\wP228","3",0)
menu_additem(menu,"\wDUAL ELITES","4",0)
menu_additem(menu,"\wFIVE SEVEN","5",0)
menu_additem(menu,"\wDEAGLE","6",0)
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_setprop(menu,MPROP_EXITNAME,"\yWyjscie");
menu_display(id,menu,0)
}
return PLUGIN_HANDLED;
}
public wybor_menupizdolce(id, menu, item)
{
switch(item)
{
case 0:
{
give_item(id, "weapon_glock18")
cs_set_user_bpammo(id, CSW_GLOCK18, 120)
}
case 1:
{
give_item(id, "weapon_usp")
cs_set_user_bpammo(id, CSW_USP, 100)
}
case 2:
{
give_item(id, "weapon_p228")
cs_set_user_bpammo(id, CSW_P228, 52)
}
case 3:
{
give_item(id, "weapon_elite")
cs_set_user_bpammo(id, CSW_ELITE, 120)
}
case 4:
{
give_item(id, "weapon_fiveseven")
cs_set_user_bpammo(id, CSW_FIVESEVEN, 120)
}
case 5:
{
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 35)
}
}
menu_destroy(menu);
return PLUGIN_HANDLED
}
Native error - get_user_weapon
22.08.2011 10:25
Error logi:
Kod pluginu:
Spoiler
L 08/22/2011 - 11:14:23: Start of error session.
L 08/22/2011 - 11:14:23: Info (map "jb_xtremer") (file "addons/amxmodx/logs/error_20110822.log")
L 08/22/2011 - 11:14:23: Invalid player id 0
L 08/22/2011 - 11:14:23: [AMXX] Displaying debug trace (plugin "dmg.amxx")
L 08/22/2011 - 11:14:23: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 08/22/2011 - 11:14:23: [AMXX] [0] dmg.sma::hamTakeDamage (line 16)
L 08/22/2011 - 11:14:49: Invalid player id 0
L 08/22/2011 - 11:14:49: [AMXX] Displaying debug trace (plugin "dmg.amxx")
L 08/22/2011 - 11:14:49: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 08/22/2011 - 11:14:49: [AMXX] [0] dmg.sma::hamTakeDamage (line 16)
L 08/22/2011 - 11:17:19: Invalid player id 0
L 08/22/2011 - 11:17:19: [AMXX] Displaying debug trace (plugin "dmg.amxx")
L 08/22/2011 - 11:17:19: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 08/22/2011 - 11:17:19: [AMXX] [0] dmg.sma::hamTakeDamage (line 16)
L 08/22/2011 - 11:14:23: Info (map "jb_xtremer") (file "addons/amxmodx/logs/error_20110822.log")
L 08/22/2011 - 11:14:23: Invalid player id 0
L 08/22/2011 - 11:14:23: [AMXX] Displaying debug trace (plugin "dmg.amxx")
L 08/22/2011 - 11:14:23: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 08/22/2011 - 11:14:23: [AMXX] [0] dmg.sma::hamTakeDamage (line 16)
L 08/22/2011 - 11:14:49: Invalid player id 0
L 08/22/2011 - 11:14:49: [AMXX] Displaying debug trace (plugin "dmg.amxx")
L 08/22/2011 - 11:14:49: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 08/22/2011 - 11:14:49: [AMXX] [0] dmg.sma::hamTakeDamage (line 16)
L 08/22/2011 - 11:17:19: Invalid player id 0
L 08/22/2011 - 11:17:19: [AMXX] Displaying debug trace (plugin "dmg.amxx")
L 08/22/2011 - 11:17:19: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 08/22/2011 - 11:17:19: [AMXX] [0] dmg.sma::hamTakeDamage (line 16)
Kod pluginu:
#include <amxmodx>
#include <hamsandwich>
new gCvarDmgMulti;
public plugin_init(){
register_plugin( "Obrazenia" , "0.1", "amxx.pl" );
RegisterHam(Ham_TakeDamage, "player", "hamTakeDamage");
gCvarDmgMulti = register_cvar( "amx_knifedmg", "1.0" );
}
public hamTakeDamage( idvictim, idinflictor, idattacker, Float:damage, damagebits )
{
if( get_user_weapon( idattacker ) != CSW_KNIFE )
return HAM_IGNORED;
SetHamParamFloat( 4, damage * get_pcvar_float( gCvarDmgMulti ));
return HAM_HANDLED;
}
Valve_id_lan / steam_id_lan bug?
21.08.2011 16:37
Czy jest możliwe, że graczowi steam przy jego nicku zamiast steam pokaże steam_id_lan bądź valve_id_lan (czyli jakby był nsem)?
Plugin nie działa (mikro off dla 1 teamu)
20.08.2011 21:08
Używam sobie na serwerze takiego pluginu, który, jak autor mówi, musi działać (zresztą pokazywał mi u siebie na serwerze). U mnie działa pokazywanie informacji, admin voice, ale wyciszenie terrorystów już niestety nie. Plugin nie sypie błędów. Kod na samym dole.
Wersja amxxa.
Meta list.
Plugins.ini
Wersja amxxa.
Spoiler
[AMXX] Cvar "amxmodx_version" jest "1.8.2-dev"
Meta list.
Spoiler
Currently running plugins:
[ 1] AMX Mod X, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 2] dproto_EF, v0.9.87, 2010-10-26, by Crock, see
[ 3] AntiDlFile, v1.4, 2010/10/18, by Rulzy, see 点通论坛 AMXX插件,CS 玩家论坛,SXE 反作弊,CS1.6,CS1.5 - Powered by Discuz!
[ 4] Fun, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 5] Engine, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 6] FakeMeta, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 7] CStrike, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 8] CSX, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 9] Ham Sandwich, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 10] MySQL, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 11] NetDB, v1.1, Apr 10 2007, by ahtoh, see http://forums.allied....net/showthread
[ 1] AMX Mod X, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 2] dproto_EF, v0.9.87, 2010-10-26, by Crock, see
[ 3] AntiDlFile, v1.4, 2010/10/18, by Rulzy, see 点通论坛 AMXX插件,CS 玩家论坛,SXE 反作弊,CS1.6,CS1.5 - Powered by Discuz!
[ 4] Fun, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 5] Engine, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 6] FakeMeta, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 7] CStrike, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 8] CSX, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 9] Ham Sandwich, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 10] MySQL, v1.8.2-dev, Dec 12 2010, by AMX Mod X Dev Team, see AMX Mod X - Half-Life Scripting for Pros!
[ 11] NetDB, v1.1, Apr 10 2007, by ahtoh, see http://forums.allied....net/showthread
Plugins.ini
Spoiler
amxbans_core.amxx
amxbans_main.amxx
; 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
;Pluginy na JB
czapki.amxx //menu z czapkami
;kloc.amxx //usuwanie kloca z map
komendy.amxx //motd z pomocą do komend
kradnij1.amxx //kradnie broń krótką
menu.amxx //menu na v
menu_bron.amxx //menu z bronią spawn
;pilka.amxx //dodawanie pilki
poszukiwani.amxx //lista poszukiwanych
regulamin.amxx //reg
dmg.amxx //zmniejszone dmg
ozywianie.amxx //ożyw
wygrana.amxx //info
uleczanie.amxx //ulecz
zasady_gier.amxx //zasady gier
;Inne
parachute.amxx //spadochron
deagsmapmanager.amxx //wybór mapy
marker.amxx //malowanie dla adminów
ad_manager.amxx //reklamy w say'u
hpk.amxx //wyrzucanie graczy ze zbyt wysokim pingiem
mikro.amxx // +adminvoice, /mikro
adminlisten.amxx //admin widzi wszystko
use.amxx //wylaczony dzwiek +use
restrictcommands.amxx //wylaczenie komend
restrictcommandscfg.amxx //cfg z komendami do wylaczenia
statusip.amxx //amx_ip
;autobuyfix.amxx //nie da sie scrashowac komenda autobuy
Allow_round_finish.amxx //czekanie do konca rundy na zmiane
ball.amxx //zamiana kloca na pilke i menu
jb_zen1.amxx //manager
amxbans_core.amxx
amxbans_main.amxx
; 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
;Pluginy na JB
czapki.amxx //menu z czapkami
;kloc.amxx //usuwanie kloca z map
komendy.amxx //motd z pomocą do komend
kradnij1.amxx //kradnie broń krótką
menu.amxx //menu na v
menu_bron.amxx //menu z bronią spawn
;pilka.amxx //dodawanie pilki
poszukiwani.amxx //lista poszukiwanych
regulamin.amxx //reg
dmg.amxx //zmniejszone dmg
ozywianie.amxx //ożyw
wygrana.amxx //info
uleczanie.amxx //ulecz
zasady_gier.amxx //zasady gier
;Inne
parachute.amxx //spadochron
deagsmapmanager.amxx //wybór mapy
marker.amxx //malowanie dla adminów
ad_manager.amxx //reklamy w say'u
hpk.amxx //wyrzucanie graczy ze zbyt wysokim pingiem
mikro.amxx // +adminvoice, /mikro
adminlisten.amxx //admin widzi wszystko
use.amxx //wylaczony dzwiek +use
restrictcommands.amxx //wylaczenie komend
restrictcommandscfg.amxx //cfg z komendami do wylaczenia
statusip.amxx //amx_ip
;autobuyfix.amxx //nie da sie scrashowac komenda autobuy
Allow_round_finish.amxx //czekanie do konca rundy na zmiane
ball.amxx //zamiana kloca na pilke i menu
jb_zen1.amxx //manager
#include <fakemeta>
#include <colorchat>
#define PLUGIN "Mikro"
#define VERSION "1.0"
#define AUTHOR "Patryk"
new bool:mikro;
new AdminVoice;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_Voice_SetClientListening, "Voice_SetClientListening");
register_clcmd("+adminvoice", "AdminVoiceOn");
register_clcmd("-adminvoice", "AdminVoiceOff");
register_clcmd("say /mikro", "OddajProwadzenie");
}
public client_disconnect(id)
{
if(AdminVoice == id)
AdminVoice = 0;
}
public OddajProwadzenie(id)
{
if(mikro)
mikro = false;
else
mikro = true;
ColorChat(0, GREEN, "[PrisonBreak]^x01 Mikro dla wieznikow^x03 %s!", mikro? "wylaczone": "wlaczone");
}
public AdminVoiceOn(id)
{
if(!(get_user_flags(id) & ADMIN_BAN))
return PLUGIN_HANDLED;
if(AdminVoice)
return PLUGIN_HANDLED;
AdminVoice = id;
new name[32]
get_user_name(id, name, 31);
ColorChat(0,GREEN,"[PrisonBreak]^x01 Cisza! ^x03%s ^x01przemawia.", name);
client_cmd(id, "+voicerecord");
return PLUGIN_HANDLED;
}
public AdminVoiceOff(id)
{
if(!(get_user_flags(id) & ADMIN_BAN))
return PLUGIN_HANDLED;
if(AdminVoice != id)
{
client_cmd(id, "-voicerecord");
return PLUGIN_HANDLED;
}
client_cmd(id, "-voicerecord");
AdminVoice = 0;
return PLUGIN_HANDLED;
}
public Voice_SetClientListening(odbiorca, nadawca, listen)
{
if(odbiorca == nadawca)
return FMRES_IGNORED;
if(AdminVoice)
{
if(AdminVoice == nadawca)
{
engfunc(EngFunc_SetClientListening, odbiorca, nadawca, true);
return FMRES_SUPERCEDE;
}
engfunc(EngFunc_SetClientListening, odbiorca, nadawca, false);
return FMRES_SUPERCEDE;
}
if(get_user_team(nadawca) == 1 && mikro)
{
engfunc(EngFunc_SetClientListening, odbiorca, nadawca, false);
return FMRES_SUPERCEDE;
}
if(is_user_alive(odbiorca))
{
if(is_user_alive(nadawca))
{
engfunc(EngFunc_SetClientListening, odbiorca, nadawca, true);
return FMRES_SUPERCEDE;
}
engfunc(EngFunc_SetClientListening, odbiorca, nadawca, false);
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
- AMXX.pl: Support AMX Mod X i SourceMod
- → Przeglądanie profilu: Tematy: Julia
- Regulamin