Pełen magazynek za killa
Najlepsza odpowiedź NiczegoWinien 24.03.2018 20:41
Spoiler
Przejdź do postu
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fakemeta> #include <engine> #define PLUGIN "Full Clip" #define VERSION "1.0" #define AUTHOR "author" new const maxClip[31] = { -1, 13, -1, 10, 1, 7, 1, 30, 30, 1, 30, 20, 25, 30, 35, 25, 12, 20, 10, 30, 100, 8, 30, 30, 20, 2, 7, 30, 30, -1, 50 }; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("DeathMsg", "Death", "ade"); } public Death() { new id = read_data(2); new attacker = read_data(1); if(!is_user_alive(attacker) || !is_user_connected(attacker)) return PLUGIN_CONTINUE; new weapon = get_user_weapon(attacker); if(get_user_team(id) != get_user_team(attacker)) set_user_clip(attacker, maxClip[weapon]); return PLUGIN_CONTINUE; } stock set_user_clip(id, ammo) { new weaponname[32], weaponid = -1, weapon = get_user_weapon(id, _, _); get_weaponname(weapon, weaponname, 31); while ((weaponid = find_ent_by_class(weaponid, weaponname)) != 0) if(entity_get_edict(weaponid, EV_ENT_owner) == id) { set_pdata_int(weaponid, 51, ammo, 4); return weaponid; } return 0; }
Pavlox. 24.03.2018
Tak, wiem że na forum pewnie gdzieś jest jak to zrobić, ale ja potrzebuje na SAM pełen magazynek bez hp za zabójstwo.
Z góry dziekuje
Najlepsza odpowiedź NiczegoWinien 24.03.2018
Spoiler
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fakemeta> #include <engine> #define PLUGIN "Full Clip" #define VERSION "1.0" #define AUTHOR "author" new const maxClip[31] = { -1, 13, -1, 10, 1, 7, 1, 30, 30, 1, 30, 20, 25, 30, 35, 25, 12, 20, 10, 30, 100, 8, 30, 30, 20, 2, 7, 30, 30, -1, 50 }; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("DeathMsg", "Death", "ade"); } public Death() { new id = read_data(2); new attacker = read_data(1); if(!is_user_alive(attacker) || !is_user_connected(attacker)) return PLUGIN_CONTINUE; new weapon = get_user_weapon(attacker); if(get_user_team(id) != get_user_team(attacker)) set_user_clip(attacker, maxClip[weapon]); return PLUGIN_CONTINUE; } stock set_user_clip(id, ammo) { new weaponname[32], weaponid = -1, weapon = get_user_weapon(id, _, _); get_weaponname(weapon, weaponname, 31); while ((weaponid = find_ent_by_class(weaponid, weaponname)) != 0) if(entity_get_edict(weaponid, EV_ENT_owner) == id) { set_pdata_int(weaponid, 51, ammo, 4); return weaponid; } return 0; }
Pavlox. 24.03.2018
Spoiler/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fakemeta> #include <engine> #define PLUGIN "Full Clip" #define VERSION "1.0" #define AUTHOR "author" new const maxClip[31] = { -1, 13, -1, 10, 1, 7, 1, 30, 30, 1, 30, 20, 25, 30, 35, 25, 12, 20, 10, 30, 100, 8, 30, 30, 20, 2, 7, 30, 30, -1, 50 }; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("DeathMsg", "Death", "ade"); } public Death() { new id = read_data(2); new attacker = read_data(1); if(!is_user_alive(attacker) || !is_user_connected(attacker)) return PLUGIN_CONTINUE; new weapon = get_user_weapon(attacker); if(get_user_team(id) != get_user_team(attacker)) set_user_clip(attacker, maxClip[weapon]); return PLUGIN_CONTINUE; } stock set_user_clip(id, ammo) { new weaponname[32], weaponid = -1, weapon = get_user_weapon(id, _, _); get_weaponname(weapon, weaponname, 31); while ((weaponid = find_ent_by_class(weaponid, weaponname)) != 0) if(entity_get_edict(weaponid, EV_ENT_owner) == id) { set_pdata_int(weaponid, 51, ammo, 4); return weaponid; } return 0; }
O to chodziło, dziękuję.
Plusik leci, temat można zamknąć