Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. #if defined _csgo_remake_included
  2. #endinput
  3. #endif
  4.  
  5. #define _csgo_remake_included
  6.  
  7. //#pragma reqlib csgo_remake
  8.  
  9. #if AMXX_VERSION_NUM >= 175
  10. #pragma reqlib csgo_remake
  11. #if !defined AMXMODX_NOAUTOLOAD
  12. #pragma loadlib csgo_remake
  13. #endif
  14. #else
  15. #pragma library csgo_remake
  16. #endif
  17.  
  18. /**
  19. * Returns a player's points.
  20. *
  21. * @param id Player index.
  22. * @return Amount of points. -1 on error.
  23. */
  24. native csgor_get_user_points(id);
  25.  
  26. /**
  27. * Sets a player's points to the desired amount.
  28. *
  29. * @param id Player index.
  30. * @param amount A valid amount of points.
  31. * @return True on success, false otherwise.
  32. */
  33. native csgor_set_user_points(id, amount);
  34.  
  35. /**
  36. * Returns a player's dusts.
  37. *
  38. * @param id Player index.
  39. * @return Amount of dusts. -1 on error.
  40. */
  41. native csgor_get_user_dusts(id);
  42.  
  43. /**
  44. * Sets a player's dusts to the desired amount.
  45. *
  46. * @param id Player index.
  47. * @param amount A valid amount of dusts.
  48. * @return True on success, false otherwise.
  49. */
  50. native csgor_set_user_dusts(id, amount);
  51.  
  52. /**
  53. * Returns a player's keys.
  54. *
  55. * @param id Player index.
  56. * @return Amount of keys. -1 on error.
  57. */
  58. native csgor_get_user_keys(id);
  59.  
  60. /**
  61. * Sets a player's keys to the desired amount.
  62. *
  63. * @param id Player index.
  64. * @param amount A valid amount of keys.
  65. * @return True on success, false otherwise.
  66. */
  67. native csgor_set_user_keys(id, amount);
  68.  
  69. /**
  70. * Returns a player's cases.
  71. *
  72. * @param id Player index.
  73. * @return Amount of cases. -1 on error.
  74. */
  75. native csgor_get_user_cases(id);
  76.  
  77. /**
  78. * Sets a player's cases to the desired amount.
  79. *
  80. * @param id Player index.
  81. * @param amount A valid amount of cases.
  82. * @return True on success, false otherwise.
  83. */
  84. native csgor_set_user_cases(id, amount);
  85.  
  86. /**
  87. * Returns a player's Rang ID. Set Rang name in output.
  88. *
  89. * @param id Player index.
  90. * @param output Output array for rang name.
  91. * @param len Max length of a output array.
  92. * @return Player Rang ID. -1 on error.
  93. */
  94. native csgor_get_user_rang(id, output[], len);
  95.  
  96. /**
  97. * Sets a player's Rang ID. Set the appropriate amount of kills.
  98. *
  99. * @param id Player index.
  100. * @param rangid A valid Rang ID.
  101. * @return True on success, false otherwise.
  102. */
  103. native csgor_set_user_rang(id, rangid);
  104.  
  105. /**
  106. * Returns a player's amount of skins by specified Skin ID.
  107. *
  108. * @param id Player index.
  109. * @param skinid A valid Skin ID.
  110. * @return Amount of skins. -1 on error.
  111. */
  112. native csgor_get_user_skins(id, skinid);
  113.  
  114. /**
  115. * Sets a player's skins (by specific Skin ID) to desired amount.
  116. *
  117. * @param id Player index.
  118. * @param skinid A valid Skin ID.
  119. * @param amount A valid amount of skins.
  120. * @return True on success, false otherwise.
  121. */
  122. native csgor_set_user_skins(id, skinid, amount);
  123.  
  124. /**
  125. * Returns whether a player is logged.
  126. *
  127. * @param id Player index.
  128. * @return True if it is, false otherwise.
  129. */
  130. native csgor_is_user_logged(id);
  131.  
  132. /**
  133. * Called when a player log in account.
  134. *
  135. * @param id Player index forwarding the event.
  136. */
  137. forward csgor_user_log_in(id);
  138.  
  139. /**
  140. * Called when a player make assist.
  141. *
  142. * @param id Assist index.
  143. * @param killer Killer index.
  144. * @param victim Victim index.
  145. * @param head 1 if HeadShot, 0 otherwise.
  146. */
  147. forward csgor_user_assist(id, killer, victim, head);
  148.  
  149. /**
  150. * Called when a player is MVP.
  151. *
  152. * @param id MVP index.
  153. * @param event Event type. (0 - Top Killer, 1 - Planter, 2 - Defuser)
  154. * @param kills Player's kills.
  155. */
  156. forward csgor_user_mvp(id, event, kills);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement