LondoN eXtream 110 Posted August 26, 2015 Share Posted August 26, 2015 # Descriere: Acest plugin a fost facut pentru a nu se putea fura ammo # Download: #include <amxmodx>#include <amxmisc>#include <zombieplague>#define PLUGIN "Anti Ammo Hack"#define VERSION "1.0"#define AUTHOR "londoN"new Packs[33];public plugin_init(){ register_plugin(PLUGIN, VERSION, AUTHOR); set_task(1.0, "TASK_AMMO", _, _, _, "b"); set_task(2.0, "TASK_CHECK", _, _, _, "b");}public TASK_AMMO(){ static entity; for(entity = 1; entity < get_maxplayers(); entity++) { Packs[entity] = zp_get_user_ammo_packs(entity); if(Packs[entity] == 10000 && !is_user_admin(entity)) { return PLUGIN_CONTINUE; } } return PLUGIN_CONTINUE;}public TASK_CHECK(){ static hacker; for(hacker = 1; hacker < get_maxplayers(); hacker++) { Packs[hacker] = zp_get_user_ammo_packs(hacker); if(Packs[hacker] > 15000 && !is_user_admin(hacker)) { new Name[32]; get_user_name(hacker, Name, 31); server_cmd("amx_ban ^"%s^" ^"0^" ^"hacker?^"", Name); set_hudmessage(0, 127, 255, 0.16, 0.16, 0, 6.0, 1.0); show_hudmessage(0, "%s tried to use ammo packs hack!"); return PLUGIN_CONTINUE; } } return PLUGIN_CONTINUE;} # Nume: ZP - Anti Ammo Hack# Versiunea: 1.0 # Autor: london [me]# Instalare:=> Fisierul nume_plugin.sma il puneti in addons/amxmodx/scripting=> Fisierul nume_plugin.amxx il puneti in addons/amxmodx/plugins=> Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:nume_plugin.amxx Link to comment Share on other sites More sharing options...
Sp1dey 308 Posted August 26, 2015 Share Posted August 26, 2015 Tu stii sa respectii conditiile impuse in model? # Instalare:=> Fisierul nume_plugin.sma il puneti in addons/amxmodx/scripting=> Fisierul nume_plugin.amxx il puneti in addons/amxmodx/plugins=> Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:nume_plugin.amxx Serios? # Download: #include <amxmodx>#include <amxmisc>#include <zombieplague>#define PLUGIN "Anti Ammo Hack"#define VERSION "1.0"#define AUTHOR "londoN"new Packs[33];public plugin_init(){ register_plugin(PLUGIN, VERSION, AUTHOR); set_task(1.0, "TASK_AMMO", _, _, _, "b"); set_task(2.0, "TASK_CHECK", _, _, _, "b");}public TASK_AMMO(){ static entity; for(entity = 1; entity < get_maxplayers(); entity++) { Packs[entity] = zp_get_user_ammo_packs(entity); if(Packs[entity] == 10000 && !is_user_admin(entity)) { return PLUGIN_CONTINUE; } } return PLUGIN_CONTINUE;}public TASK_CHECK(){ static hacker; for(hacker = 1; hacker < get_maxplayers(); hacker++) { Packs[hacker] = zp_get_user_ammo_packs(hacker); if(Packs[hacker] > 15000 && !is_user_admin(hacker)) { new Name[32]; get_user_name(hacker, Name, 31); server_cmd("amx_ban ^"%s^" ^"0^" ^"hacker?^"", Name); set_hudmessage(0, 127, 255, 0.16, 0.16, 0, 6.0, 1.0); show_hudmessage(0, "%s tried to use ammo packs hack!"); return PLUGIN_CONTINUE; } } return PLUGIN_CONTINUE;} Nu-l Mai pune in spoiler, nu stii sa-l copilezi?, si dupa sa postezi amxx si .sma?, Urmatorul post daca nu respectii Cerintele impuse ai warn. Link to comment Share on other sites More sharing options...
Recommended Posts