Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. #if defined _pex_included
  2. #endinput
  3. #endif
  4.  
  5. #define _pex_included
  6.  
  7. /**
  8. * Called when the PEX configuration file has been reloaded.
  9. *
  10. * @param first_time True if the file is read for the first time, false otherwise
  11. *
  12. * @noreturn
  13. */
  14. forward pex_config_file_reloaded(bool:first_time)
  15.  
  16. /**
  17. * Called when the user's extras have been updated.
  18. *
  19. * @param id Client index
  20. * @param on_connect True if the forward was called when the client connected,
  21. * false otherwise
  22. *
  23. * @noreturn
  24. */
  25. forward pex_user_extras_updated(id, bool:on_connect)
  26.  
  27. /**
  28. * Returns the name of the PEX configuration file.
  29. *
  30. * @param buffer Buffer to store the filename in
  31. * @param len Maximum buffer length
  32. *
  33. * @noreturn
  34. */
  35. native pex_get_config_file(buffer[], len)
  36.  
  37. /**
  38. * Returns the extra value from a given extra.
  39. *
  40. * @param id Client index
  41. * @param extra Extra to get the value from
  42. * @param buffer Buffer to store the extra value in
  43. * @param len Maximum buffer length
  44. *
  45. * @noreturn
  46. */
  47. native pex_get_extra_value(id, extra[], buffer[], len)
  48.  
  49. /**
  50. * Returns the name of the PEX extras list file.
  51. *
  52. * @param buffer Buffer to store the filename in
  53. * @param len Maximum buffer length
  54. *
  55. * @noreturn
  56. */
  57. native pex_get_list_file(buffer[], len)
  58.  
  59. /**
  60. * Returns the number of total extras currently loaded.
  61. *
  62. * @return Number of currently loaded extras
  63. */
  64. native pex_get_total_extras()
  65.  
  66. /**
  67. * Returns the number of extras that the user currently has.
  68. *
  69. * @param id Client index
  70. *
  71. * @return Number of extras that the user has
  72. */
  73. native pex_get_user_extras(id)
  74.  
  75. /**
  76. * Reloads the PEX configuration file
  77. *
  78. * @note This function won't work unless used in plugin_init()
  79. *
  80. * @param extra Extra name
  81. * @param description Description for the extra
  82. * @param value Extra value description (if available)
  83. *
  84. * @noreturn
  85. */
  86. native pex_register_extra(extra[], description[], value[] = "")
  87.  
  88. /**
  89. * Reloads the PEX configuration file
  90. *
  91. * @noreturn
  92. */
  93. native pex_reload_config_file()
  94.  
  95. /**
  96. * Reloads the user's extras.
  97. *
  98. * @param id Client index
  99. *
  100. * @noreturn
  101. */
  102. native pex_reload_user_extras(id)
  103.  
  104. /**
  105. * Checks whether the user has a specific extra.
  106. *
  107. * @param id Client index
  108. * @param extra Extra
  109. *
  110. * @return True if the user has the extra, false otherwise
  111. */
  112. native bool:pex_user_has_extra(id, extra[])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement