Dlaczego Tak moze wyskakiwac ??
Welcome to the
AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase,
AMX Mod X Team
codclass_Zamachowiec.sma(44) : error 010: invalid function or declaration
codclass_Zamachowiec.sma(47) : warning 218: old style prototypes used with optional semicolumns
codclass_Zamachowiec.sma(48) : error 010: invalid function or declaration
2 Errors.
Could not locate output file codclass_Zamachowiec.
amxx (compile failed).
/* Plugin generated by
AMXX-Studio */
#include <amxmodx>
#include <codmod>
#include <engine>
#define DMG_BULLET (1<<1)
new bool:ma_klase[33];
new const nazwa[] = "Zamachowiec";
new const opis[] = "Podczas kucania jest niewidzialny";
new const bronie = 1<<CSW_DEAGLE | 1<<CSW_MAC10;
new const zdrowie = 30;
new const kondycja = 35;
new const inteligencja = 5;
new const wytrzymalosc = 5;
public plugin_init()
{
register_plugin(nazwa, "1.0", "QTM_Peyote");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
}
public cod_class_enabled(id)
ma_klase[id] = true;
public cod_class_disabled(id)
ma_klase[id] = false;
public client_PreThink(id)
{
if(!ma_klase[id])
return;
new button = get_user_button(id);
if(button & IN_DUCK)
set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 5);
else
set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
}
if(item == Zamachowiec && !(get_user_flags(id) & ADMIN_LEVEL_H))
{
client_print(id, print_chat, "[
COD:MW] Nie masz uprawnien aby kozystac z klasy premium.");
WybierzKlase(id);
return PLUGIN_CONTINUE;
}