[ROZWIĄZANE] Problem z kompilacją klasy
System'ek 19.11.2011
Jeszcze jedna klasa
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <codmod>
#include <engine>
#include <hamsandwich>
#define DMG_BULLET (1<<1)
#define DMG_HE (1<<24)
new bool:ma_klase[33];
new const nazwa[] = "Oficer";
new const opis[] = "Ma m4 i ak oraz 1/2 z he";
new const bronie = 1<<CSW_M4A1 | 1<<CSW_AK47 | 1<<CSW_HEGRENADE;
new const zdrowie = -5;
new const kondycja = 20;
new const inteligencja = 0;
new const wytrzymalosc = 20;
public plugin_init() {
register_plugin(nazwa, "1.0", "QTM_Peyote");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
if(!ma_klase[idattacker])
return HAM_IGNORED;
if(damagebits & DMG_BULLET)
{
new weapon = get_user_weapon(idattacker);
if((weapon == CSW_HEGRENADE) && !random(2))
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
}
return HAM_IGNORED;
}
Użytkownik System'ek edytował ten post 19.11.2011 13:05
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <codmod>
#include <engine>
#include <hamsandwich>
#define DMG_BULLET (1<<1)
#define DMG_HE (1<<24)
new bool:ma_klase[33];
new const nazwa[] = "Oficer";
new const opis[] = "Ma m4 i ak oraz 1/2 z he";
new const bronie = 1<<CSW_M4A1 | 1<<CSW_AK47 | 1<<CSW_HEGRENADE;
new const zdrowie = -5;
new const kondycja = 20;
new const inteligencja = 0;
new const wytrzymalosc = 20;
public plugin_init() {
register_plugin(nazwa, "1.0", "QTM_Peyote");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
if(!ma_klase[idattacker])
return HAM_IGNORED;
if(damagebits & DMG_BULLET)
{
new weapon = get_user_weapon(idattacker);
if((weapon == CSW_HEGRENADE) && !random(2))
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
}
return HAM_IGNORED;
}
Użytkownik System'ek edytował ten post 19.11.2011 13:05
Goliath
19.11.2011
Wiadomość wygenerowana automatycznie
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL