1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81. | /* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <engine>
#include <cstrike>
#include <codmod>
#include <hamsandwich>
#include <ColorChat>
#include <fun>
new bool:ma_klase[33];
new const nazwa[] = "KombaT (premium)";
new const opis[] = "Niewidzialnosc na nozu, 1/3 na natychmiastowe zabicie z deagla";
new const bronie = 1<<CSW_KNIFE | 1<<CSW_AK47 | 1<<CSW_DEAGLE | 1<<CSW_HEGRENADE
new const zdrowie = 25;
new const kondycja = 25;
new const inteligencja = 25;
new const wytrzymalosc = 25;
public plugin_init()
{
register_plugin(nazwa, "1.0", "QTM_Peyote");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
register_event("CurWeapon","CurWeapon","be", "1=1");
}
public cod_class_enabled(id)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_F))
{
ColorChat(id, RED, "[KombaT] Nie masz uprawnien, aby korzystac z tej klasy. ");
return COD_STOP;
}
ColorChat(id, RED, "[KombaT] Klasa premium ustawiona.")
ma_klase[id] = true;
return COD_CONTINUE;
}
public cod_class_disabled(id)
ma_klase[id] = false;
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
if(!ma_klase[idattacker])
return HAM_IGNORED;
if(get_user_weapon(idattacker) == CSW_DEAGLE && damage > 20.0 && random_num(1,3) == 1)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
return HAM_IGNORED;
}
public CurWeapon(id)
{
if(!ma_klase[id])
return PLUGIN_CONTINUE;
if(get_user_weapon(id) == CSW_KNIFE)
set_rendering(id,kRenderFxGlowShell,0,0,0 ,kRenderTransAlpha, 25);
else
set_rendering(id,kRenderFxGlowShell,0,0,0 ,kRenderTransAlpha, 255);
if(ma_klase[id] && read_data(2) != CSW_KNIFE)
set_task(0.1 ,"ma" ,id)
return PLUGIN_CONTINUE;
}
public ma(id)
{
strip_user_weapons(id);
give_item(id, "weapon_knife");
} |