HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <csx>
  4.  
  5. static const PLUGIN_NAME[] = "Bomb Plant Money Bonus"
  6. static const PLUGIN_VERSION[] = "1.0"
  7. static const PLUGIN_AUTHOR[] = "Locks"
  8.  
  9. new PCvarBonus
  10.  
  11. public plugin_init()
  12. {
  13. register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
  14. PCvarBonus = register_cvar("amx_plant_bonus", "150")
  15. }
  16.  
  17. public bomb_planted(id)
  18. {
  19. new money = cs_get_user_money(id)
  20. new bonus = get_pcvar_num(PCvarBonus)
  21. cs_set_user_money(id, money + bonus)
  22. }