Amx_match in CS tournament
Is possible make a script that associate the STEAM ID of the captains with their teams, and then, replace the line in amx_match command?
for example abc|captain(CT) : /start def|captain(T) : /start [Console writes : rcon amx_match "abc" "def" mr15 cal recboth"] then, the match can start with "all type ready" sistem, it doesnt matter. can u do this 4 me? :up: im going to do a tournament and i need a method to exec amx_match by the most easy way 4 the captains without using rcon, or amx_match complete command, i mean, the most automaticly possible. Thanks for your time again waiting 4 help :grrr: adiction |
Re: Amx_match in CS tournament
First of all you establish global variables and hook the command.
Code:
Then you process the hooked commands and adjust the global variables. If both global variables are set, start the match. Code:
Then if you want to insert a steamid check, you do it where I commented above. First, at the very top, in the global variables, add a steamid global. Make sure you change "3" in the first brackets to how many you have. Code:
Then, inside the hook_startmatch, where I commented to insert... Code:
Now at the very bottom of the hook_startmatch function you'll have to add a return PLUGIN_CONTINUE -- otherwise you'll get a warning when you compile. |
Re: Amx_match in CS tournament
thanks, but that script doesnt connect the ID of captain with the amx_match command????
|
Re: Amx_match in CS tournament
You have to make sure that the captain's steamid is defined in the global variable..
|
Re: Amx_match in CS tournament
this is chinesse 4 me , can u explain me? :(
i need this : (CT)SK|fisker : /start (T)fnatic f0rest : /start then, the console writes : amx_match sk fnatic mr15 cal recboth [STEAM ID fisker = sk; STEAM ID f0rest = fnatic] thanks ! |
Re: Amx_match in CS tournament
up
|
| All times are GMT -4. The time now is 01:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.