295 |
/* Returns how a user is zooming during the native call. Values correspond to the above enum, but will return 0 if an error occurred. |
/* Returns how a user is zooming during the native call. Values correspond to the above enum, but will return 0 if an error occurred. |
296 |
*/ |
*/ |
297 |
native cs_get_user_zoom(index); |
native cs_get_user_zoom(index); |
298 |
|
|
299 |
|
/* Returns the submodel setting of the player. |
300 |
|
* If this is 1, then the user has a backpack or defuser on their model (depending on team) |
301 |
|
*/ |
302 |
|
native cs_get_user_submodel(index); |
303 |
|
|
304 |
|
/* Sets the submodel setting of the player. |
305 |
|
* If this is 1, then the user has a backpack or defuser on their model (depending on team) |
306 |
|
* 0 removes it. |
307 |
|
*/ |
308 |
|
native cs_set_user_submodel(index, value); |
309 |
|
|
310 |
|
/* Gets or sets the user's last activity time. This is the time that CS's internal afk kicker |
311 |
|
* checks to see who has been afk too long. |
312 |
|
*/ |
313 |
|
native Float:cs_get_user_lastactivity(index); |
314 |
|
|
315 |
|
native cs_set_user_lastactivity(index, Float:value); |
316 |
|
|
317 |
|
/* Gets or sets the number of hostages that a user has killed. |
318 |
|
*/ |
319 |
|
native cs_get_user_hostagekills(index); |
320 |
|
|
321 |
|
native cs_set_user_hostagekills(index, value); |
322 |
|
|
323 |
|
/* Gets or sets the time that the hostage was last used. |
324 |
|
*/ |
325 |
|
native Float:cs_get_hostage_lastuse(index); |
326 |
|
|
327 |
|
native cs_set_hostage_lastuse(index, Float:value); |
328 |
|
|
329 |
|
/* Gets or sets the time which the hostage can next be used. |
330 |
|
*/ |
331 |
|
native Float:cs_get_hostage_nextuse(index); |
332 |
|
|
333 |
|
native cs_set_hostage_nextuse(index, Float:value); |
334 |
|
|
335 |
|
/* Gets or sets the time in which the C4 will explode. |
336 |
|
*/ |
337 |
|
native Float:cs_get_c4_explode_time(index); |
338 |
|
|
339 |
|
native cs_set_c4_explode_time(index, Float:value); |
340 |
|
|
341 |
|
/* Gets or sets whether the C4 is being defused. |
342 |
|
*/ |
343 |
|
native bool:cs_get_c4_defusing(c4index); |
344 |
|
|
345 |
|
native cs_set_c4_defusing(c4index, bool:defusing); |
346 |
|
/** |
347 |
|
* Called when CS internally fires a command to a player. It does this for a few |
348 |
|
* functions, most notably rebuy/autobuy functionality. This is also used to pass |
349 |
|
* commands to CZ bots internally. |
350 |
|
* |
351 |
|
* @param id Client index. |
352 |
|
* @param cmd Command string. |
353 |
|
* @return PLUGIN_HANDLED to block, PLUGIN_CONTINUE for normal operation. |
354 |
|
*/ |
355 |
|
forward CS_InternalCommand(id, const cmd[]); |