←  Prośby o Klasę/Perk

AMXX.pl: Support AMX Mod X i SourceMod

»

Kosz
Prośba o klasę Demot[Premium]

  • +
  • -
KosiKledki's Photo KosiKledki 26.12.2014

Witam, zakładam temat po raz kolejny, proszę o klase Demot[Premium] Adminlevel G w poprzedniej wersji nie działało 1/1 z he

 

Nazwa Demot[Premium]
Inte 0

Hp 20

Wytrz 10

Kond 30

 

Opis : 1/1 Z AWP 1/1 Z HE DEAGLE 25/255 NIEWIDKI PODCZAS KUCANIA 3 SKOKI

 

Co tu jest nie tak?

 

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_AWP && damage > 20.0)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
if(damagebits & DMG_HEGRENADE)
 
{
 
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
 
}
 
}
 
return HAM_IGNORED;
Quote

  • +
  • -
NieWiemMamMac@'s Photo NieWiemMamMac@ 26.12.2014

cod_inflict_damage :(

jak już to spróbuj tego:

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_team(this) != get_user_team(idattacker) && get_user_weapon(idattacker) == CSW_AWP && damagebits & DMG_BULLET)
         cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
    
    if(get_user_team(this) != get_user_team(idattacker) && damagebits & DMG_HEGRENADE)
         cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
        
    return HAM_IGNORED;
}
Quote

  • +
  • -
KosiKledki's Photo KosiKledki 26.12.2014

Mógłby ktoś to zrobić od podstaw i wrzucić całą klasę?

Quote

  • +
  • -
radim's Photo radim 27.12.2014

Wiadomość wygenerowana automatycznie


Ten temat został zamknięty przez moderatora.

Powód: Nieodpowiednio umieszczony kod. Skorzystaj z Umieszczanie kodu na forum

Z pozdrowieniami,
Zespół AMXX.PL
Quote