/knife nie działa
Pozdrawiam
21.01.2012
A więc trochę poprzerabiałem plugin z knife + moce na brak tych gravitek itp , ale niestety nie działa .
Prosił bym o rozwiązanie mojego problemu
za pomoc dam ++
Prosił bym o rozwiązanie mojego problemu
#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( "Damage", "event_damage", "be" ) 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") 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) 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])
za pomoc dam ++

Ojciec Dyrektor
22.01.2012
Automatyczna wiadomość
Ten temat został przeniesiony z forum:
AMX Mod X → Problemy
do
Scripting AMXX → Problemy
Pozdrawiam
22.01.2012
Bardzo proszę o odpowiedz .
A może plugin jest dobrze napisany tylko coś z amxx nie tak ?
A może plugin jest dobrze napisany tylko coś z amxx nie tak ?
atdirmaq
22.01.2012
public knifemenu(id, key) {Case ma byc tyle ile nozy
switch(key)
{
case 0: SetKnife(id , 4)
case 1: SetKnife(id , 2)
case 2: SetKnife(id , 3)
default: return PLUGIN_HANDLED
}
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
}
Użytkownik atdirmaq edytował ten post 22.01.2012 18:07
Pozdrawiam
22.01.2012
Jak teraz to poprawiłem i wgrałem na serwer to serwer nie chce się włączyć .
Pozdrawiam
22.01.2012
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).
to jest ten kawałek z tamtych godzin
Pozdrawiam
24.01.2012
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 ?
Bardzo proszę o odpowiedz .
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 ?
Bardzo proszę o odpowiedz .
Pozdrawiam
24.01.2012
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
speedkill
24.01.2012
precache_model("models/knife-mod/v_brak")na
precache_model("models/knife-mod/v_brak.mdl")+ wgraj ten model do folderu knife-mod
Pozdrawiam
24.01.2012
Nadal to samo .
ale zauważałem że ten plik jest w tym models ale się nie pobiera ludzą
ale zauważałem że ten plik jest w tym models ale się nie pobiera ludzą
Pozdrawiam
26.01.2012
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])
tak wygląda teraz plugin na serwie
o co chodzi powinno działać !!
Może jakis plugin blokuje ?
Użytkownik Pozdrawiam edytował ten post 25.01.2012 16:19