#include <amxmodx> #include <amxmisc> #include <cstrike> #include <codmod> #include <ColorChat> #include <deathrun_stats> #define PLUGIN "[DR Stats] Bonus za pobicie rekordu" #define VERSION "1.0" #define AUTHOR "R3X" new gcvarXP, gcvarKASA; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); gcvarXP = register_cvar("amx_record_bonus,exp", "500"); gcvarKASA = register_cvar("amx_record_bonus_kasa", "500"); } public fwPlayerFinished(id, iTime, bool:newrecord){ new bonusxp = get_pcvar_num(gcvarXP); new bonuskasa = get_pcvar_num(gcvarKASA) if(cs_get_user_money(id) < 16000) { cod_set_user_xp(id, cod_get_user_xp(id)+bonusxp); cs_set_user_money(id, cs_get_user_money(id)+bonuskasa); ColorChat(id, GREEN,"[BONUS]^x01 Za ustanowienie rekordu otrzymujesz +^x03 %i^x01 Expa oraz +^x03 %i^x01 Kasy.",bonusxp,bonuskasa); } else { cod_set_user_xp(id, cod_get_user_xp(id)+bonusxp); ColorChat(id, GREEN,"[BONUS]^x01 Poniewaz masz^x03 1600$^x01 otrzymujesz tylko +^x03 %i^x01 Expa.",bonusxp); } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par } */
sprawdz teraz