Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - #include <amxmodx>
 - #include <amxmisc>
 - #include <codmod>
 - #include <engine>
 - #include <hamsandwich>
 - new const nazwa[] = "Umarly";
 - new const opis[] = "1/5 odrodzenia sie po Εmierci";
 - new const bronie = (1<<CSW_FIVESEVEN)|(1<<CSW_AK47);
 - new const zdrowie = 20;
 - new const kondycja = 20;
 - new const inteligencja = 0;
 - new const wytrzymalosc = 10;
 - new ma_klase[33];
 - public plugin_init()
 - {
 - register_plugin(nazwa, "1.0", "amxx.pl");
 - cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
 - RegisterHam(Ham_Spawn, "player", "fwSpawn_Grawitacja", 1);
 - RegisterHam(Ham_Killed, "player", "fwKill", 1);
 - }
 - public cod_class_enabled(id)
 - {
 - entity_set_float(id, EV_FL_gravity, 780.0/800.0);
 - ma_klase[id] = true;
 - }
 - public cod_class_disabled(id)
 - {
 - entity_set_float(id, EV_FL_gravity, 1.0);
 - ma_klase[id] = false;
 - }
 - public fwSpawn_Grawitacja(id)
 - {
 - if(ma_klase[id])
 - entity_set_float(id, EV_FL_gravity, 780.0/800.0);
 - }
 - public fwKill(id)
 - if(is_user_connected(id) && random_num(1, 5) == 1)
 - set_task(0.5, "respawn", id+1551);
 - public respawn(id)
 - ExecuteHamB(Ham_CS_RoundRespawn, id-1551);
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment