Mam taki kod od pluginu VIP
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <hamsandwich> #include <cstrike> #include <fun> public plugin_init() { register_plugin("Vip", "1.0", "Suis"); RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1); } public fwHamPlayerSpawnPost(id){ if (get_user_flags(id) & ADMIN_LEVEL_H) { give_item(id, "weapon_hegrenade"); give_item(id, "weapon_flashbang"); give_item(id, "weapon_deagle"); cs_set_user_bpammo(id, CSW_DEAGLE, 70); set_user_health(id, 120); set_user_armor (id, 50); new kasa = cs_get_user_money(id); cs_set_user_money(id, kasa + 1000); } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1045{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par } */
A chcialem zeby nie dodawal on kazdemu graczowi 120 hp, tylko zeby dodawal o 20hp wiecej niezaleznie od tego ile dany gracz ma hp standardowo. Jek ma 100 hp to jak bedzie miec vipa to zeby mial 120hp jak bedzie miec na starcie 130hp to zeby vip dodawal mu do 150hp, mam nadzieje, ze mnnie rozumiecie Chcialem ten plugin pod serwer bf2.