←  Prośby o Klasę/Perk

AMXX.pl: Support AMX Mod X i SourceMod

»

CoD Nowy
Proszę o stworzenie klasy Amadeusz

  • +
  • -
Kapi^'s Photo Kapi^ 20.07.2012

Proszę o stworzenie klasy "Amadeusz" z statystykami 10,10,20,10 co ma posiadać : Dodatkowe 20(+inteligencja) obrazen z MP5 jakie bronie : mp5 +he klasa na flage H
Quote

  • +
  • -
Siedem's Photo Siedem 20.07.2012

proszę

#include <amxmodx>
#include <codmod>
#include <hamsandwich>
#include <colorchat>

#define DMG_BULLET (1<<1)


new bool:ma_klase[33];

new const nazwa[] = "Amadeusz";
new const opis[] = "Dodatkowe 20(+inteligencja) obrazen z MP5";
new const bronie = (1<<CSW_MP5NAVY)| (1<<CSW_HEGRENADE);
new const zdrowie = 10;
new const kondycja = 10;
new const inteligencja = 20;
new const wytrzymalosc = 10;

public plugin_init()
{
register_plugin(nazwa, "1.0", "HeLLoOo");

cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);

RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}

public cod_class_enabled(id)
{
ColorChat(id, GREEN, "Klasa %s zostala edytowana przez Cs.Games4life.pl.", nazwa);
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
client_print(id, print_chat, "[%s] Nie masz uprawnien, aby uzywac tej klasy.", nazwa)
return COD_STOP;
}
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_MP5NAVY && damagebits & DMG_BULLET)
cod_inflict_damage(idattacker, this, 20.0, 0.5, idinflictor, damagebits);

return HAM_IGNORED;
}


Edited by Siedem, 20.07.2012 21:08.
Quote

neXtMichal's Photo neXtMichal 16.09.2012

a gdzie to wkleic ? jestem nowy mam serwer 2 dni
Quote

  • +
  • -
GoldenKill's Photo GoldenKill 16.09.2012

Masz w pliku sma komplikujesz go

Wrzucasz plik amxx potem do

cstrike/addons/amxmodx/plugins

i dopisujesz klasę do

plugins-codmod.ini

Attached Files


Edited by DastaN, 16.09.2012 14:13.
Quote

neXtMichal's Photo neXtMichal 16.09.2012

dzięki za pomoc , dalem ci plusa
Quote