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.
Rozpoczynaj nowe tematy i odpowiedaj na inne
Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
Dodawaj wydarzenia do kalendarza społecznościowego
Stwórz swój własny profil i zdobywaj nowych znajomych
A więc jak zrobic coś takiego do pluginu menu.amxx. Chodzi mi o coś takiego że na say wyskakuje "wciśnij przycisk v aby wyświetlić menu HNS" i do tego sie binduje na klawiszu "v" /menu
Plugin na razie wygląda tak:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Pozdrawiam"
new gMyMenu
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /menu","mymenu");
gMyMenu=menu_create("Menu HNS by Pozdrawiam","cbMyMenu");
menu_additem(gMyMenu,"Bank");//item=0
menu_additem(gMyMenu,"Sklep");//item=1
menu_additem(gMyMenu,"Ljtop");//item=2
menu_additem(gMyMenu,"Ljmenu");//item=3
}
public mymenu(id){
menu_display(id, gMyMenu);
return PLUGIN_HANDLED;
}
public cbMyMenu(id, menu, item){
switch(item){
case 0:{
client_cmd(id, "say /bank");
}
case 1:{
client_cmd(id, "say /sklep");
}
case 2:{
client_cmd(id, "say /ljtop");
}
case 3:{
client_cmd(id, "say /ljsmenu");
}
}
menu_destroy ( menu )
return PLUGIN_HANDLED;
}
A czytałeś moje posty nie ma takiego pluginu co ja chce trzeba go stworzyc !
A każdy ma sie w tym samym miejscu respic a jezeli zrobie jedno miejsce spawnu to serwer bedzie sie bugował jak 2 w tym samym momencie dednie .
Więc jak jest taka strefa postawiona to JA jako h@ na kazdej mapie przejade z komenda dr_start i będzie i serwer sie nie zbuguje ; D
Witam !
CHciałbym żeby ktoś się podjoł pluginu który bedzie stawiał pod komenda dr_start strefe z ktorej kazdy bedzie sie respic .
ta komenda ma byc po flaga h
Auto detecting CPU
Using Pentium II Optimised binary.
Auto-restarting the server on crash
Console initialized.
scandir failed:/home/servers/s20827/SAVE
scandir failed:/home/servers/s20827/./platform/SAVE
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 10:55:14 Jul 9 2010 (5006)
STEAM Auth Server
couldn't exec language.cfg
couldn't exec listip.cfg
Server IP address 79.133.192.45:27055
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.
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.
stray key in process_key: item_getiteminfo 63
scandir failed:/home/servers/s20827/SAVE
scandir failed:/home/servers/s20827/./platform/SAVE
L 01/24/2012 - 17:20:57: -------- Mapchange to deathrun_projetocs2 --------
FATAL ERROR (shutting down): Mod_NumForName: models/knife-mod/v_brak,mdl not found
Dobra naprawiłem zamiast kropki byl przecinek w jednym miejscu ale jest teraz drugi problem
A więc przy wejściu na serwer od razu masz kose z flaga polski zamiast domyślna i nie działa komenda /knife
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <vault>
#include <fun>
#define PLUGIN "Knife Mod"
#define VERSION "1.0"
#define AUTHOR "spunko & Drako"
#define TASK_INTERVAL 4.0
new knife_model[33]
new g_Menu
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon","CurWeapon","be","1=1")
g_Menu = register_menuid("Knife Mod")
register_menucmd(g_Menu, 1023, "knifemenu")
register_clcmd("say /knife", "display_knife")
}
public plugin_precache() {
precache_model("models/knife-mod/v_knife_pl.mdl")
precache_model("models/knife-mod/v_tasak.mdl")
precache_model("models/knife-mod/v_riddickblade.mdl")
precache_model("models/knife-mod/v_brak.mdl")
precache_model("models/v_knife.mdl")
precache_model("models/p_knife.mdl")
}
public display_knife(id) {
new menuBody[512]
add(menuBody, 511, "\rKnife Mod\w^n^n")
add(menuBody, 511, "1. Noz z flaga Polski^n")
add(menuBody, 511, "2. Pseudo Tasak^n")
add(menuBody, 511, "3. Riddick Blade^n")
add(menuBody, 511, "4. Brak noza^n")
add(menuBody, 511, "5. Domyslny noz^n")
add(menuBody, 511, "0. Exit^n")
new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<9 )
show_menu(id, keys, menuBody, -1, "Knife Mod")
}
public knifemenu(id, key) {
switch(key)
{
case 0: SetKnife(id , 4)
case 1: SetKnife(id , 2)
case 2: SetKnife(id , 3)
case 3: SetKnife(id , 1)
case 4: SetKnife(id , 0)
default: return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public SetKnife(id , Knife) {
knife_model[id] = Knife
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon != CSW_KNIFE )
return PLUGIN_HANDLED
new vModel[56],pModel[56]
switch(Knife)
{
case 0: {
format(vModel,55,"models/knife-mod/v_knife_pl.mdl")
format(pModel,55,"models/p_knife.mdl")
}
case 1: {
format(vModel,55,"models/knife-mod/v_tasak.mdl")
format(pModel,55,"models/p_knife.mdl")
}
case 2: {
format(vModel,55,"models/knife-mod/v_riddickblade.mdl")
format(pModel,55,"models/p_knife.mdl")
}
case 3: {
format(vModel,55,"models/knife-mod/v_brak")
format(pModel,55,"models/p_knife.mdl")
}
case 4: {
format(vModel,55,"models/knife-mod/v_knife")
format(pModel,55,"models/p_knife.mdl")
}
}
entity_set_string(id, EV_SZ_viewmodel, vModel)
entity_set_string(id, EV_SZ_weaponmodel, pModel)
return PLUGIN_HANDLED;
}
public CurWeapon(id)
SetKnife(id, knife_model[id])
Auto detecting CPU
Using Pentium II Optimised binary.
Auto-restarting the server on crash
Console initialized.
scandir failed:/home/servers/s20827/SAVE
scandir failed:/home/servers/s20827/./platform/SAVE
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 10:55:14 Jul 9 2010 (5006)
STEAM Auth Server
couldn't exec language.cfg
couldn't exec listip.cfg
Server IP address 79.133.192.45:27055
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.
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.
stray key in process_key: item_getiteminfo 63
scandir failed:/home/servers/s20827/SAVE
scandir failed:/home/servers/s20827/./platform/SAVE
L 01/24/2012 - 16:08:17: -------- Mapchange to deathrun_projetocs2 --------
FATAL ERROR (shutting down): Mod_NumForName: models/knife-mod/v_brak not found
Nadal to samo czyli:
1. wklejam plugin do folderu plugins wpisuje do plugins.ini
2.Zmieniam mapę
3. Serwer tag jakby się crashuje przy zmianie mapy i go wyłącza tak że się nie da go włączyć .
4.żeby serwer włączyć muszę wyłączyć plugin knife.amxx
Czy ten problem może wynikać ze złej wersji amxx ?
A jeżeli nie to z czego ?
L 01/22/2012 - 17:27:18: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:27:18: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:27:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:27:18: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:27:18: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:27:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:27:18: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:27:18: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:27:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:42:20: Start of error session.
L 01/22/2012 - 17:42:20: Info (map "deathrun_bkm") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 17:42:20: Function "event_damage" was not found
L 01/22/2012 - 17:42:20: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 17:42:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:42:20: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:42:20: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:42:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:42:20: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:42:20: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:42:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:42:20: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:42:20: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:42:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:57:23: Start of error session.
L 01/22/2012 - 17:57:23: Info (map "deathrace_alley") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 17:57:23: Function "event_damage" was not found
L 01/22/2012 - 17:57:23: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 17:57:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:57:23: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:57:23: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:57:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:57:23: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:57:23: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:57:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:57:23: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:57:23: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:57:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:12:26: Start of error session.
L 01/22/2012 - 18:12:26: Info (map "deathrun_bajocero") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 18:12:26: Function "event_damage" was not found
L 01/22/2012 - 18:12:26: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 18:12:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:12:26: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:12:26: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:12:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:12:26: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:12:26: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:12:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:12:26: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:12:26: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:12:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:23:32: String formatted incorrectly - parameter 7 (total 6)
L 01/22/2012 - 18:23:32: [AMXX] Run time error 25 (plugin "amxbans_main.amxx") - debug not enabled!
L 01/22/2012 - 18:23:32: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:24:28: Start of error session.
L 01/22/2012 - 18:24:28: Info (map "deathrun_dust_cs") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 18:24:28: Function "event_damage" was not found
L 01/22/2012 - 18:24:28: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 18:24:28: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:24:29: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:24:29: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:24:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:24:29: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:24:29: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:24:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:24:29: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:24:29: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:24:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:24:47: String formatted incorrectly - parameter 7 (total 6)
L 01/22/2012 - 18:24:47: [AMXX] Run time error 25 (plugin "amxbans_main.amxx") - debug not enabled!
L 01/22/2012 - 18:24:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:39:31: Start of error session.
L 01/22/2012 - 18:39:31: Info (map "deathrun_evidens") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 18:39:31: Function "event_damage" was not found
L 01/22/2012 - 18:39:31: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 18:39:31: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:39:31: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:39:31: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:39:31: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:39:31: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:39:31: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:39:31: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:39:31: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:39:31: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:39:31: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:54:34: Start of error session.
L 01/22/2012 - 18:54:34: Info (map "deathrun_cube2") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 18:54:34: Function "event_damage" was not found
L 01/22/2012 - 18:54:34: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 18:54:34: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:54:34: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:54:34: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:54:34: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:54:34: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:54:34: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:54:34: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:54:34: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:54:34: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:54:34: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 19:04:57: Start of error session.
L 01/22/2012 - 19:04:57: Info (map "deathrun_oldtown") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 19:04:57: Function "event_damage" was not found
L 01/22/2012 - 19:04:57: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 19:04:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 19:04:58: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 19:04:58: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 19:04:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 19:04:58: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 19:04:58: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 19:04:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 19:04:58: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 19:04:58: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 19:04:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 19:05:21: Start of error session.
L 01/22/2012 - 19:05:21: Info (map "deathrun_dust_old") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 19:05:21: Function "event_damage" was not found
L 01/22/2012 - 19:05:21: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 19:05:21: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Mini bans już taki jest nie banuje też miałem taki problem . Zainstaluj sobie http://amxx.pl/topic...-advanced-bans/
a jeżeli masz stronkę www serwa to AMXBANS