Dodatkowy pancerz jak dodać
Kolar`. 04.12.2011
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <codmod>
#include <engine>
#include <fun>
new const nazwa[] = "Machin Gunner";
new const opis[] = "Dostaje M249 PARA, + 175 pancerza";
new const bronie = 1<<CSW_M249;
new const zdrowie = 20;
new const kondycja = 15;
new const inteligencja = 0;
new const wytrzymalosc = 20;
new const regeneracja = 0;
new const obrazenia = 0;
public plugin_init()
{
register_plugin("Guneer", "1.0", "Kolar");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc, regeneracja, obrazenia);
}
Jak dodać tej klasie 175 pancerza ?
d0naciak
04.12.2011
Usunąłem moduły engine i funa, bo były niepotrzebne
Użytkownik d0n tHe Pr0oo edytował ten post 04.12.2011 16:30
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <codmod>
#include <hamsandwich>
#define PLUGIN "Machin Guner"
#define VERSION "1.0"
#define AUTHOR "d0n tHe Pr0oo"
new ma_klase[33];
new const nazwa[] = "Machin Gunner";
new const opis[] = "Dostaje M249 PARA, + 175 pancerza";
new const bronie = 1<<CSW_M249;
new const zdrowie = 20;
new const kondycja = 15;
new const inteligencja = 0;
new const wytrzymalosc = 20;
new const regeneracja = 0;
new const obrazenia = 0;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc, regeneracja, obrazenia);
RegisterHam(Ham_Spawn, "player", "Spawn", 1);
}
public cod_class_enabled(id)
{
set_user_armor(id, 175)
ma_klase[id] = 1;
}
public cod_class_disabled(id)
{
ma_klase[id] = 0;
}
public Spawn(id)
{
if(!ma_klase[id])
{
set_user_armor(id, 175)
}
}
Użytkownik d0n tHe Pr0oo edytował ten post 04.12.2011 16:30
Kolar`. 04.12.2011
Fun nie potrzebnie usuwałeś ponieważ jest potrzebny przy armorze. ;]Usunąłem moduły engine i funa
+ dla Ciebie