Większy DMG logi
Windowspl
12.05.2011
Witam.
Mam taki plugin:
I mam logi:
Mam taki plugin:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "MieTeK"
new kupil=0;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("vip_dmg", "kupno", ADMIN_RESERVATION);
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
public kupno(id)
{
if(cs_get_user_money(id) >= 7000)
{
kupil=1;
cs_set_user_money(id, cs_get_user_money(id)-7000);
}
else
client_print(id, print_chat, "Masz za malo kasy!");
}
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(kupil == 1 && get_user_weapon(idattacker) == CSW_KNIFE)
SetHamParamFloat(4, damage*2.0)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
I mam logi:
L 05/12/2011 - 18:20:13: [AMXX] Run time error 10 (plugin "nozvip.amxx") (native "get_user_weapon") - debug not enabled! L 05/12/2011 - 18:20:13: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 05/12/2011 - 18:21:02: Invalid player id 0 L 05/12/2011 - 18:21:02: [AMXX] Run time error 10 (plugin "nozvip.amxx") (native "get_user_weapon") - debug not enabled! L 05/12/2011 - 18:21:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 05/12/2011 - 18:21:54: Invalid player id 0 L 05/12/2011 - 18:21:54: [AMXX] Run time error 10 (plugin "nozvip.amxx") (native "get_user_weapon") - debug not enabled! L 05/12/2011 - 18:21:54: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 05/12/2011 - 18:22:11: Invalid player id 0 L 05/12/2011 - 18:22:11: [AMXX] Run time error 10 (plugin "nozvip.amxx") (native "get_user_weapon") - debug not enabled! L 05/12/2011 - 18:22:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 05/12/2011 - 18:22:29: Invalid player id 0 L 05/12/2011 - 18:22:29: [AMXX] Run time error 10 (plugin "nozvip.amxx") (native "get_user_weapon") - debug not enabled! L 05/12/2011 - 18:22:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 05/12/2011 - 18:22:34: Invalid player id 0 L 05/12/2011 - 18:22:34: [AMXX] Run time error 10 (plugin "nozvip.amxx") (native "get_user_weapon") - debug not enabled! L 05/12/2011 - 18:22:34: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 05/12/2011 - 18:22:54: Start of error session.
Adminek AMXX.PL 12.05.2011
DarkGL
12.05.2011
ten plugin chyba powinnien wygaladac tak
#include <amxmodx> #include <amxmisc> #include <hamsandwich> #include <cstrike> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "MieTeK" #define IsPlayer(%1) (1<=%1<=32) new bool:bBuy[33]; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_concmd("vip_dmg", "kupno", ADMIN_RESERVATION); RegisterHam(Ham_TakeDamage, "player", "TakeDamage"); } public client_connect(id){ bBuy[id] = false; } public kupno(id) { if(cs_get_user_money(id) >= 7000) { bBuy[id] = true; cs_set_user_money(id, cs_get_user_money(id)-7000); } else client_print(id, print_chat, "Masz za malo kasy!"); } public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits) { if(IsPlayer(idattacker) && bBuy[idattacker] && get_user_weapon(idattacker) == CSW_KNIFE){ SetHamParamFloat(4, damage*2.0) return HAM_HANDLED; } return HAM_IGNORED; }ten kod co dałes dzialal tak ze jesli vip kupil wieksze dmg to automatycznie wszyscy na serwerze zadawali wiecej dmg z noza