kzarg.inc
Original include source with line numbers.
| 1 | /*================================================================================================*/ |
| 2 | /*********************************** [Create By ReymonARG] ****************************************/ |
| 3 | /*=============================================================================R=E=Y=M=O=N==A=R=G=*/ |
| 4 | |
| 5 | #if defined _kzarg_included |
| 6 | #endinput |
| 7 | #endif |
| 8 | |
| 9 | #define _kzarg_included |
| 10 | |
| 11 | #pragma library kzarg |
| 12 | |
| 13 | /*================================================================================================*/ |
| 14 | /***************************************** [Natives] **********************************************/ |
| 15 | /*=============================================================================R=E=Y=M=O=N==A=R=G=*/ |
| 16 | |
| 17 | /** |
| 18 | * Get the version of Kz-Arg Plugin |
| 19 | * |
| 20 | * @param output[] Output Value |
| 21 | * @param len len of Output Value |
| 22 | * |
| 23 | */ |
| 24 | native kz_get_plugin_version(output[], len) |
| 25 | |
| 26 | /** |
| 27 | * Get Player CheckPoints Nє |
| 28 | * |
| 29 | * @param id ID of Kz Player |
| 30 | * |
| 31 | * @Return CheckPoints Integer |
| 32 | * |
| 33 | */ |
| 34 | native kz_get_user_checkpoint(id) |
| 35 | |
| 36 | /** |
| 37 | * Get Player GoCheck Nє |
| 38 | * |
| 39 | * @param id ID of Kz Player |
| 40 | * |
| 41 | * @Return GoCheck Integer |
| 42 | * |
| 43 | */ |
| 44 | native kz_get_user_gocheck(id) |
| 45 | |
| 46 | /** |
| 47 | * Get Player RoundTime in Integer |
| 48 | * |
| 49 | * @param id ID of Kz Player |
| 50 | * |
| 51 | * @Return Player Time Integer |
| 52 | * |
| 53 | */ |
| 54 | native kz_get_user_roundtime(id) |
| 55 | |
| 56 | /** |
| 57 | * Get Player Start Weapon Nє |
| 58 | * |
| 59 | * @param id ID of Kz Player |
| 60 | * |
| 61 | * @Return Nє of Weapon Integer |
| 62 | * |
| 63 | */ |
| 64 | native kz_get_user_startweapon(id) |
| 65 | |
| 66 | /** |
| 67 | * Get Player Status |
| 68 | * |
| 69 | * @param id ID of Kz Player |
| 70 | * |
| 71 | * @Return True or False True if player is climbing |
| 72 | * |
| 73 | */ |
| 74 | native kz_get_user_status(id) |
| 75 | |
| 76 | /** |
| 77 | * Reset Player time, checkpoint, gocheck, etc.. |
| 78 | * |
| 79 | * @param id ID of Kz Player |
| 80 | * |
| 81 | */ |
| 82 | native kz_reset_user_data(id) |
| 83 | |
| 84 | /** |
| 85 | * Get Player Vip |
| 86 | * |
| 87 | * @param id ID of Kz Player |
| 88 | * |
| 89 | * @Return true or false Integer |
| 90 | * |
| 91 | */ |
| 92 | native kz_get_user_vip(id) |
| 93 | |
| 94 | /** |
| 95 | * Set player OverTime Round Msg |
| 96 | * |
| 97 | * @param id ID of Kz Player |
| 98 | * @param message[] Const Msg to show for the player |
| 99 | * @param any Float, Sql, Integer, etc... |
| 100 | * |
| 101 | */ |
| 102 | native kz_set_hud_overtime(id, const message[], {Float,Sql,Result,_}:...) |
| 103 | |
| 104 | /** |
| 105 | * Register new Item for the MainMenu of the plugin |
| 106 | * |
| 107 | * @param itemname[] Const Item Name to show in the menu |
| 108 | * @param itemaccess[] Const Item Access |
| 109 | * |
| 110 | * @Return Nє of Item Integer |
| 111 | * |
| 112 | */ |
| 113 | native kz_mainmenu_item_register(const itemname[], const itemaccess[]) |
| 114 | |
| 115 | /** |
| 116 | * Register new Item for the Rewards Menu when finish the map |
| 117 | * |
| 118 | * @param itemname[] Const Item Name to show in the menu |
| 119 | * @param itemaccess[] Const Item Access |
| 120 | * |
| 121 | * @Return Nє of Item Integer |
| 122 | * |
| 123 | */ |
| 124 | native kz_rewards_item_register(const itemname[], const itemaccess[]) |
| 125 | |
| 126 | /** |
| 127 | * Get Player Team |
| 128 | * |
| 129 | * @param id ID of Kz Player |
| 130 | * |
| 131 | * @Return N of Team Integer |
| 132 | * |
| 133 | */ |
| 134 | native kz_get_user_team(id) |
| 135 | |
| 136 | /** |
| 137 | * Set Player Team |
| 138 | * |
| 139 | * @param id ID of Kz Player |
| 140 | * @param team Nє of Team |
| 141 | * |
| 142 | * @Return 1 Is the team is correct |
| 143 | * |
| 144 | */ |
| 145 | native kz_set_user_team(id, team) |
| 146 | |
| 147 | /** |
| 148 | * Open Player the Main Menu |
| 149 | * |
| 150 | * @param id ID of Kz Player |
| 151 | * @param page Page of the menu |
| 152 | * |
| 153 | */ |
| 154 | native kz_open_mainmenu(id, page=0) |
| 155 | |
| 156 | /** |
| 157 | * Open Player the Rewards Menu |
| 158 | * |
| 159 | * @param id ID of Kz Player |
| 160 | * @param page Page of the menu |
| 161 | * |
| 162 | */ |
| 163 | native kz_open_rewardsmenu(id, page=0) |
| 164 | |
| 165 | /** |
| 166 | * Cheat Deteccion |
| 167 | * |
| 168 | * @param id ID of Kz Player |
| 169 | * @param const Cheat[] Set the name of the Cheat |
| 170 | * |
| 171 | */ |
| 172 | native kz_cheat_detection(id, const Cheat[]) |
| 173 | |
| 174 | |
| 175 | enum |
| 176 | { |
| 177 | KZ_TD_DISABLED = 0, |
| 178 | KZ_TD_ROUNDTIME = 1, |
| 179 | KZ_TD_OVERSCREEN = 2, |
| 180 | KZ_TD_STATUSTEXT = 3 |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * ShowTime In |
| 185 | * |
| 186 | * @param id ID of Kz Player |
| 187 | * |
| 188 | * Return Style of Timer |
| 189 | */ |
| 190 | native kz_get_user_showtimer(id) |
| 191 | |
| 192 | /** |
| 193 | * |
| 194 | */ |
| 195 | native kz_colorchat(id, const msg[], {Float,Sql,Result,_}:...) |
| 196 | |
| 197 | |
| 198 | /*================================================================================================*/ |
| 199 | /**************************************** [Forwards] **********************************************/ |
| 200 | /*=============================================================================R=E=Y=M=O=N==A=R=G=*/ |
| 201 | |
| 202 | /** |
| 203 | * Pre Start Climb |
| 204 | * This is Great for remove players Rewards or others thinks :P |
| 205 | * |
| 206 | * @param id ID of Kz Player |
| 207 | * |
| 208 | */ |
| 209 | forward kz_prestartclimb(id) |
| 210 | |
| 211 | /** |
| 212 | * Post Start Climb |
| 213 | * This Exec then of player have weapons and Start the time |
| 214 | * |
| 215 | * @param id ID of Kz Player |
| 216 | * |
| 217 | */ |
| 218 | forward kz_startclimb(id) |
| 219 | |
| 220 | /** |
| 221 | * Finish Climb |
| 222 | * This Exec when player finish the map. |
| 223 | * |
| 224 | * @param id ID of Kz Player |
| 225 | * @param tiempo Float and complete time |
| 226 | * @param CheckPoints CheckPoints that player use in that climb |
| 227 | * @param GoChecks GoChecks that player use in that climb |
| 228 | * @param Weapon Nє of the weapon that player have |
| 229 | * |
| 230 | */ |
| 231 | forward kz_finishclimb(id, Float:tiempo, CheckPoints, GoChecks, Weapon) |
| 232 | |
| 233 | |
| 234 | /** |
| 235 | * Reset Start Climb |
| 236 | * This Exec then the player type /reset |
| 237 | * |
| 238 | * @param id ID of Kz Player |
| 239 | * |
| 240 | */ |
| 241 | forward kz_resetclimb(id) |
| 242 | |
| 243 | /** |
| 244 | * Main Menu Item Choose |
| 245 | * This Exec then the player choose a item of the Main Menu |
| 246 | * |
| 247 | * @param id ID of Kz Player |
| 248 | * @param item Nє of item |
| 249 | * @param page Nє of the page that is the item |
| 250 | * |
| 251 | */ |
| 252 | forward kz_itemmainmenu(id, item, page) |
| 253 | |
| 254 | /** |
| 255 | * Rewards Item Choose |
| 256 | * This Exec then the player choose a item of the Rewards Menu |
| 257 | * |
| 258 | * @param id ID of Kz Player |
| 259 | * @param item Nє of item |
| 260 | * @param page Nє of the page that is the item |
| 261 | * |
| 262 | */ |
| 263 | forward kz_itemrewardsmenu(id, item, page) |
| 264 | |
| 265 | /** |
| 266 | * kz_pluginload |
| 267 | * This Exec when all cvars and forwards was register |
| 268 | * |
| 269 | */ |
| 270 | forward kz_pluginload() |
| 271 | /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE |
| 272 | *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang11274\\ f0\\ fs16 \n\\ par } |
| 273 | */ |
| 274 | |