11#if defined _l4d_tank_control_eq_included
2- #endinput
2+ #endinput
33#endif
44#define _l4d_tank_control_eq_included
55
1010 */
1111native int GetTankSelection ();
1212
13+ /* *
14+ * @brief Gets the tank pass count for a specific player.
15+ *
16+ * @param client Client index to check.
17+ * @return Number of times the player has passed tank control, 0 if invalid client.
18+ */
19+ native int GetTankPassedCount (int client );
20+
21+ /* *
22+ * @brief Forces selection of the next tank in queue.
23+ *
24+ * @return Client index of selected tank, 0 if none available.
25+ */
26+ native int ForceSelectNextTank ();
27+
28+ /* *
29+ * @brief Removes a player from the tank queue.
30+ *
31+ * @param client Client index to remove from queue.
32+ * @return 1 if removed successfully, 0 if not found or invalid client.
33+ */
34+ native int RemoveFromTankQueue (int client );
35+
36+ /* *
37+ * @brief Adds a player to the tank history (players who have played tank).
38+ *
39+ * @param client Client index to add to history.
40+ * @return 1 if added successfully, 0 if already in history or invalid client.
41+ */
42+ native int AddToTankHistory (int client );
43+
1344forward void TankControl_OnTryOfferingTankBot (char sQueuedTank [64 ]);
1445forward void TankControl_OnTankSelection (char sQueuedTank [64 ]);
1546
1647public SharedPlugin __pl_l4d_tank_control_eq =
1748{
18- name = " l4d_tank_control_eq" ,
19- file = " l4d_tank_control_eq.smx" ,
49+ name = " l4d_tank_control_eq" ,
50+ file = " l4d_tank_control_eq.smx" ,
2051#if defined REQUIRE_PLUGIN
21- required = 1 ,
52+ required = 1 ,
2253#else
23- required = 0 ,
54+ required = 0 ,
2455#endif
2556};
2657
2758#if ! defined REQUIRE_PLUGIN
2859public void __pl_l4d_tank_control_eq_SetNTVOptional ()
2960{
30- MarkNativeAsOptional (" GetTankSelection" );
61+ MarkNativeAsOptional (" GetTankSelection" );
62+ MarkNativeAsOptional (" GetTankPassedCount" );
63+ MarkNativeAsOptional (" ForceSelectNextTank" );
64+ MarkNativeAsOptional (" RemoveFromTankQueue" );
3165}
32- #endif
66+ #endif
0 commit comments