HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <engine>
  3.  
  4. public plugin_init() {
  5. register_plugin("rotate_fix_EN","1.2","NL)Ramon(NL")
  6. if(!is_linux_server())
  7. {
  8. set_fail_state("LINUX ONLY")
  9. server_print("func_rotating fix csak linux szerverekre van. Megszakitva.")
  10. return PLUGIN_CONTINUE
  11. }
  12. if(find_ent_by_class(-1, "func_rotating") != 0)
  13. set_task(10.0,"fix_bug",0,"",0,"b")
  14. return PLUGIN_CONTINUE
  15. }
  16.  
  17. public fix_bug() {
  18. new f_rota = find_ent_by_class(-1, "func_rotating")
  19. while(f_rota != 0)
  20. {
  21. new Float:angles[3]
  22. entity_get_vector(f_rota,EV_VEC_angles,angles)
  23. angles[0] -= floatround(angles[0] / 360.0,floatround_floor) * 360.0
  24. angles[1] -= floatround(angles[1] / 360.0,floatround_floor) * 360.0
  25. angles[2] -= floatround(angles[2] / 360.0,floatround_floor) * 360.0
  26. entity_set_vector(f_rota,EV_VEC_angles,angles)
  27. f_rota = find_ent_by_class(f_rota, "func_rotating")
  28. }
  29.  
  30. }
  31. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  32. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  33. */
  34.