Advertisement
Guest User

cs_core.inc

a guest
Aug 8th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.78 KB | None | 0 0
  1. #if defined _cs_core_included
  2. #endinput
  3. #endif
  4. #define _cs_core_included
  5.  
  6. #if AMXX_VERSION_NUM >= 175
  7. #pragma reqlib cs_core
  8. #if !defined AMXMODX_NOAUTOLOAD
  9. #pragma loadlib cs_core
  10. #endif
  11. #else
  12. #pragma library cs_core
  13. #endif
  14.  
  15. /****************************************************
  16. * CS Core *
  17. *****************************************************/
  18. /**
  19. * Return whether a player is a terrorist
  20. * param id - ID of client
  21. */
  22. native cs_is_terrorist(id);
  23.  
  24. /**
  25. * Return whether a player is the last terrorist
  26. * param id - ID of client
  27. */
  28. native cs_is_last_terrorist(id);
  29.  
  30. /**
  31. * Return whether a player is the last counter-terrorist
  32. * param id - ID of client
  33. */
  34. native cs_is_last_counter(id);
  35.  
  36. /**
  37. * Returns number of alive terrorists
  38. * param iType - 0; Show all || 1; Alive players || 2; Not-alive players
  39. */
  40. native cs_get_terrorist_count(iType);
  41.  
  42. /**
  43. * Return number of alive counter-terrorists
  44. * param iType - 0; Show all || 1; Alive players || 2; Not-alive players
  45. */
  46. native cs_get_counter_count(iType);
  47.  
  48. /**
  49. * This is called during a player spawn
  50. * param id - ID of client
  51. */
  52. forward cs_fw_spawn_post(id);
  53.  
  54. /**
  55. * This is called when a player becomes the last terrorists
  56. * param id - ID of client
  57. */
  58. forward cs_fw_last_terrorist(id);
  59.  
  60. /**
  61. * This is called when a player becomes the last counter-terrorists
  62. * param id - ID of client
  63. */
  64. forward cs_fw_last_counter(id);
  65.  
  66. /**
  67. * This is called when a player has drew the first blood
  68. * param victim - ID of client
  69. * param attacker - ID of client
  70. */
  71. forward cs_fw_first_blood(victim, attacker);
  72.  
  73. /****************************************************
  74. * CS Reward *
  75. *****************************************************/
  76. /*
  77. * This is to give health rewards.
  78. * param id - ID of client
  79. * param Float:fHP - the values of health given
  80. * param iType - if you set it to 0, it will reset your health
  81. */
  82. native cs_health_reward(id, Float:fHP, iType);
  83.  
  84. /*
  85. * This is to give armor rewards.
  86. * param id - ID of client
  87. * param Float:fAP - the values of armor given
  88. * param iType - if you set it to 0, it will reset your armor
  89. */
  90. native cs_armor_reward(id, Float:fAP, iType);
  91.  
  92. /*
  93. * This is to give money rewards.
  94. * param id - ID of client
  95. * param iMoney - the values of money given
  96. * param iType - if you set it to 0, it will reset your money
  97. */
  98. native cs_money_reward(id, iMoney, iType);
  99.  
  100. /*
  101. * This is to give invisible rewards.
  102. * param id - ID of client
  103. * param iValue - if you set it to 0, it will restore the reward
  104. * param iInvi - the values of visibility
  105. * param iType - if you set it to 0, it will give permanent reward
  106. * param Float:fInviT - the durations of the reward
  107. */
  108. native cs_invisible_reward(id, iValue, iInvi, iType, Float:fInviT);
  109.  
  110. /*
  111. * This is to give noclip rewards.
  112. * param id - ID of client
  113. * param iValue - if you set it to 0, it will restore the reward
  114. * param iType - if you set it to 0, it will give permanent noclip
  115. * param Float:fNoclipT - the durations of the reward
  116. */
  117. native cs_noclip_reward(id, iValue, iType, Float:fNoclipT);
  118.  
  119. /*
  120. * This is to enable unstuc2 feature
  121. * param id - ID of client
  122. */
  123. native cs_istrap(id);
  124.  
  125. /*
  126. * This is to give grenade rewards.
  127. * param id - ID of client
  128. * param iGrenade - the values of grenades given
  129. * param iType - 0; HE grenade || 1; Flashbang || 2; Smo2e grenade || 3:; All grenades
  130. */
  131. native cs_grenade_reward(id, iGrenade, iType);
  132.  
  133. /*
  134. * This is to give weapon rewards.
  135. * param id - ID of client
  136. * param const szName[] - the name of weapon given
  137. */
  138. native cs_weapon_reward(id, const szName[]);
  139.  
  140. /*
  141. * This is to give headshot rewards.
  142. * param id - ID of client
  143. * param iValue - if you set it to 0, it will restore the reward
  144. * param iType - if you set it to 0, it will give permanent headshot
  145. * param Float:fHeadshotT - the durations of the reward
  146. */
  147. native cs_headshot_reward(id, iValue, iType, Float:fHeadshotT);
  148.  
  149. /*
  150. * This is to give godmode rewards.
  151. * param id - ID of client
  152. * param iValue - if you set it to 0, it will restore the reward
  153. * param iType - if you set it to 0, it will give permanent godmode
  154. * param Float:fGodmodeT - the durations of the reward
  155. */
  156. native cs_godmode_reward(id, iValue, iType, Float:fGodmodeT);
  157.  
  158. /*
  159. * This is to give glow rewards.
  160. * param id - ID of client
  161. * param iValue - if you set it to 0, it will restore the reward
  162. * param const g_iColor[] - is color of glow
  163. * param iType - if you set it to 0, it will give permanent glow
  164. * param Float:fGlowT - the durations of the reward
  165. */
  166. native cs_glow_reward(id, iValue, const g_iColor[], iType, Float:fGlowT);
  167.  
  168. /*
  169. * This is to give aura rewards
  170. * param id - ID of client
  171. * param iValue - if you set it to 0, it will restore the reward
  172. * param const g_iColor[] - is color of aura
  173. * param iType - if you set it to 0, it will give permanent aura
  174. * param Float:fAuraT - the durations of the reward
  175. */
  176. native cs_aura_reward(id, iValue, const g_iColor[], iType, Float:fAuraT);
  177.  
  178. /*
  179. * This is to give speed boost rewards
  180. * param id - ID of client
  181. * param iValue - if you set it to 0, it will restore the reward
  182. * param g_iAddSpeed - the values of speed boost
  183. * param iType - if you set it to 0, it will give permanent speed boost
  184. * param Float:fSpeedT - the durations of the reward
  185. */
  186. native cs_speed_reward(id, iValue, g_iAddSpeed, iType, Float:fSpeedT);
  187.  
  188. /*
  189. * This is to give multi-jump rewards
  190. * param id - ID of client
  191. * param iValue - if you set it to 0, it will restore the reward
  192. * param g_iAddJump - the values of multi-jump
  193. * param iType - if you set it to 0, it will give permanent multi-jump
  194. * param Float:fJumpT - the durations of the reward
  195. */
  196. native cs_jump_reward(id, iValue, g_iAddJump, iType, Float:fJumpT);
  197.  
  198. /*
  199. * This is to give unlimited bullet rewards
  200. * param id - ID of client
  201. * param iValue - if you set it to 0, it will restore the reward || 1; Unlimited clip ammo || 2; Unlimited BP ammo
  202. * param iType - if you set it to 0, it will give permanent unlimited bullet
  203. * param Float:fUnlimitT - the durations of the reward
  204. */
  205. native cs_unlimited_reward(id, iValue, iType, Float:fUnlimitT);
  206.  
  207. /*
  208. * This is to give no-recoil rewards
  209. * param id - ID of client
  210. * param iValue - if you set it to 0, it will restore the reward
  211. * param iType - if you set it to 0, it will give permanent no-recoil
  212. * param Float:fRecoilT - the durations of the reward
  213. */
  214. native cs_norecoil_reward(id, iValue, iType, Float:fRecoilT);
  215.  
  216. /*
  217. * This is to give line drawing rewards
  218. * param id - ID of client
  219. * param iValue - if you set it to 0, it will restore the reward
  220. * param const g_iColor[] - is color of line
  221. * param g_iFindLine - allow you to configure the finding. 0; All alive players || 1; Nearest player
  222. * param iType - if you set it to 0, it will give permanent line drawing
  223. * param Float:fLineT - the durations of the reward
  224. */
  225. native cs_line_reward(id, iValue, const g_iColor[], g_iFindLine, iType, Float:fLineT);
  226.  
  227. /*
  228. * This is to give ring indicator rewards
  229. * param id - ID of client
  230. * param iValue - if you set it to 0, it will restore the reward
  231. * param const g_iColor[] - is color of ring
  232. * param g_iFindRing - allow you to configure the color. 0; All alive players || 1; Nearest player
  233. * param iType - if you set it to 0, it will give permanent ring indicator
  234. * param Float:fRingT - the durations of the reward
  235. */
  236. native cs_ring_reward(id, iValue, const g_iColor[], g_iFindRing, iType, Float:fRingT);
  237.  
  238. /*
  239. * This is to give trail rewards
  240. * param id - ID of client
  241. * param iValue - if you set it to 0, it will restore the reward
  242. * param const g_iColor[] - is color of trail
  243. * param iType - if you set it to 0, it will give permanent trail
  244. * param Float:fTrailT - the durations of the reward
  245. */
  246. native cs_trail_reward(id, iValue, const g_iColor[], iType, Float:fTrailT);
  247.  
  248. /*
  249. * This is to give gravity rewards
  250. * param id - ID of client
  251. * param iValue - if you set it to 0, it will restore the reward
  252. * param g_iAddLow - the values of custom gravity
  253. * param iType - if you set it to 0, it will give permanent custom gravity
  254. * param Float:fLowT - the durations of the reward
  255. */
  256. native cs_gravity_reward(id, iValue, Float:g_iAddLow, iType, Float:fLowT);
  257.  
  258. /*
  259. * This is to give wall rewards
  260. * param id - ID of client
  261. * param iValue - if you set it to 0, it will restore the reward
  262. * param iType - if you set it to 0, it will give permanent wall ability
  263. * param Float:fWallT - the durations of the reward
  264. */
  265. native cs_wall_reward(id, iValue, iType, Float:fWallT);
  266.  
  267. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  268. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
  269. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement