Raised This Month: $ Target: $400
 0% 

[req] HLTV in TTT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-14-2021 , 00:45   Re: [req] HLTV in TTT
Reply With Quote #2

I think you might be able to get away with updating all uses of get_players() in ttt_core.sma and ttt_team_management.sma to use the "h" flag (the third parameter).

If the third argument already exists, make sure that it includes an "h" in the string. If the flag is "e" or "f" then it probably doesn't need the "h" because those search by team and name, respectively. The variable names "players" and "num" seem to be consistent but you should double check when you are replacing them, in fact, I would suggest just adding the third parameter manually so you don't have to worry about messing up the variables.

Examples:
Code:
get_players(players, num, "h")

Code:
get_players(players, num, "bh")

I'd also recommend changing the version number on both of these plugins too.

Make a backup of the original .amxx files first so that you can quickly restore them if something goes wrong.
__________________

Last edited by fysiks; 04-14-2021 at 01:00.
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode