Advertisement
iFenomenal

No bomb damage

Jan 11th, 2020
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fakemeta>
  3.  
  4. #define PLUGIN "No bomb Damage"
  5. #define VERSION "1.0"
  6. #define AUTHOR "ConnorMcLeod"
  7.  
  8. public plugin_precache()
  9. {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11.  
  12. new iEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_map_parameters"))
  13. SetKeyValue(iEnt, "bombradius", "1", "info_map_parameters")
  14. dllfunc(DLLFunc_Spawn, iEnt)
  15. }
  16.  
  17. SetKeyValue(iEnt, const szKey[], const szValue[], const szClassName[])
  18. {
  19. set_kvd(0, KV_ClassName, szClassName)
  20. set_kvd(0, KV_KeyName, szKey)
  21. set_kvd(0, KV_Value, szValue)
  22. set_kvd(0, KV_fHandled, 0)
  23. dllfunc(DLLFunc_KeyValue, iEnt, 0)
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement