ячяч
чяч
Страница: 1
Сообщений 1 страница 2 из 2
Поделиться22008-04-10 13:34:19
Код:
// Mattie EventScripts v1.0.0+
// Ace Match v 7.5.82
block load
{
//
es_xset ace_match_v 7.5.82
es_xset acematch 0
es_xset menu_belongs_to 0
es_xset match_underway 0
es_makepublic ace_match_v
es_xset sound_id 0
//
es_log ::: Ace_Match loaded :::
}
block ace_match_config
{
//
es_xset roundcount 0
es_xset roundremaining 0
es_xset resetcounter 0
es_xset readyt 0
es_xset readyct 0
es_xset ace_auto 0
es_xset rounds_per_half 12
// CONFIG AREA ONLY CHANGE THE SETTINGS IN THIS SECTION
//
// DO YOU WANT TO FREEZE ALL PLAYERS WHILE YOU ARE OPERATING THE MENU?
// TO AVOID PLAYERS MESSING AROUND OR OTHER MENUS COMING UP WHILE YOU ARE ADJUSTING SETTINGS
// SET TO 1 = FREEZE / 0 = DON'T FREEZE (OR COMMENT OUT THE LINE)
ma_freeze #all 1
// ENTER YOUR SERVER NAME HERE - DO NOT ENTER CLAN TAGS
// TEAM NAME AND SCORES WILL BE APPENDED TO THIS WHEN MATCH STARTS
// EXAMPLE BELOW WOULD LOOK LIKE THIS IN SERVER BROWSER
// RNR - ACEMATCH - TEAM A (0) - TEAM B (0)
// DO NOT ENTER ANY OTHER INFO OTHER THAN THE MAIN SERVER NAME (IN MY CASE RNR)
// ALSO IF YOU HAVE A BRANDED SERVER YOU SHOULD ADD THE BRANDING HERE
es_xset servername "CW server"
//CHANGE YOUR PASSWORD FOR MATCH
// WHATEVER IS IN BETWEEN THE SPEECH MARKS IS YOUR PASSOWRD FOR THE MATCH
// DEFAULT IS "match"
sv_password "12345"
// DO YOU WANT TO PLAY KNIFE ONLY ROUND BEFORE MATCH STARTS?
// 0 = NO 1 = YES
es_xset ace_match_knife 1
// DO YOU WANT TO PLAY OVERTIME OF
// ONE EXTRA ROUND IF THE MATCH IS A DRAW?
// 0 = NO 1 = YES
es_xset ace_overtime 1
//
// SET THE DEFAULT NUMBER OF ROUNDS YOU WANT PER SECTION
// DEFAULT IS 12, SIMPLY CHANGE THE NUMBER TO HOWEVER MANY ROUNDS
// YOU WANT IN EACH SECTION OF THE MATCH
es_xset rounds_per_half 15
// DO NOT EDIT BELOW THIS LINE!
es_doblock ace_match/menusettings
es_doblock ace_match/acem_complete_strip
}
block ace_match_unload
{
// ADD A LIST OF SCRIPTS YOU WANT TO UNREGISTER OR UNLOAD HERE
// ALSO ADD TO THE REREGISTER SECTION AFTER THIS
// THIS ALL HAPPENS BEFORE THE MATCH STARTS
//
es_msg UNLOADING SCRIPTS
//
// ON
// es_unload ace_rates
// es_unload ace_reboot
// es_unload ace_saystuff
// es_unload ace_inf
// es_unload ace_sort
// es_unload ace_teams
es_unload hd2
es_unload mb_bullettime
es_unload ace_swapteams
es_unload ace_adverts
es_unload ace_afk
// es_unload ace_wordcount
es_unload ace_chadverts
es_unload ace_tl
// es_unload ace_adminlist
// OFF
// es_unload ace_clan
// es_unload ace_match
es_unload ace_middlefinger
// es_unload ace_survivor
// NOVELTY
es_unload ace_animal
es_unload ace_botchat
es_unload hailmary
// es_unload ace_fakebots
// es_unload ace_invisible
es_unload ace_007
// es_unload ace_vent
es_unload ace_skinner
es_unload ace_botcull
es_unload rg_botping
//
mani_anti_rejoin 0
mani_css_betting 0
mani_css_bounty 0
gmp_restrict_enabled "0"
gmp_camp_enabled "0"
gmp_tb_enable "0"
}
block ace_match_reload
{
// ADD A LIST OF SCRIPTS YOU WANT TO REREGISTER OR LOAD HERE
// ALSO ADD TO THE UNREGISTER SECTION BEFORE THIS
// THIS ALL HAPPENS WHEN THE MATCH ENDS
//
es_msg RELOADING SCRIPTS
// ON
//es_load hd2
// es_load ace_rates
// es_load ace_reboot
// es_load ace_saystuff
// es_load ace_inf
// es_load ace_sort
// es_load ace_teams
//es_load ace_swapteams
//es_load ace_adverts
//es_load ace_afk
// es_load ace_wordcount
//es_load ace_chadverts
//es_load ace_tl
// es_load ace_adminlist
//
// OFF
// es_load ace_clan
// es_load ace_match
//es_load ace_middlefinger
// es_load ace_survivor
// NOVELTY
//es_load ace_animal
//es_load ace_botchat
//es_load hailmary
// es_load ace_fakebots
// es_load ace_invisible
//es_load ace_007
// es_load ace_vent
//es_load ace_skinner
//es_load ace_botcull
//es_load rg_botping
gmp_restrict_enabled "1"
gmp_camp_enabled "1"
gmp_tb_enable "0"
// gmp_tb_enable "1"
mani_css_betting 1
mani_css_bounty 1
ma_unrestrictall
bot_all_weapons
}
event player_say
{
//Ace's simple say commands
es_xset ace_m_command 0
es_xset ace_m_target 0
es_xset ace_m_value 0
// Clears the value of any previous chat
//
es_token ace_m_command event_var(text) 1
es_token ace_m_target event_var(text) 2
es_token ace_m_value event_var(text) 3
//
// NEW style checks for admin abilility to run rcon commands
if(server_var(ace_m_command) equalto "acematch") do
{
if (server_var(menu_belongs_to) = 0) do
{
es_doblock ace_match/acemenu
es_doblock ace_match/ace_match_config
if (server_var(menu_belongs_to) = 0) then es_set menu_belongs_to event_var(es_steamid)
es_xset menu_active 1
}
}
if (server_var(ace_m_command) equalto "stopmatch") then es_doblock ace_match/ace_match_stop
//
// tags
if (server_var(acematch) equalto 1) do
{
if (server_var(ace_m_command) equalto "tag") do
{
if (event_var(es_userteam) equalto 2) do
{
if (server_var(resetcounter) notequalto 3) do
{
es_set teamaname server_var(ace_m_target)
}
}
if (event_var(es_userteam) equalto 3) do
{
if (server_var(resetcounter) notequalto 3) do
{
es_set teambname server_var(ace_m_target)
}
}
esnq ma_msay 15 #ALL Terrorists\nTeam A: server_var(teamaname)\n \nCounter Terrorists\nTeam B: server_var(teambname)
}
}
// score
if (server_var(acematch) equalto 1) do
{
if (server_var(ace_m_command) equalto "score") do
{
esnq ma_msay 10 event_var(userid) Total Scores so far\n \nTeam Name: server_var(teamaname)\nTotal: server_var(tawin)\n \nTeam Name: server_var(teambname)\nTotal: server_var(tbwin)\n \nRounds Played\nTotal: server_var(totwin)
}
es_format hname "%1 - ace match - %2 (%4) v %3 (%5)" server_var(servername) server_var(teamaname) server_var(teambname) server_var(tawin) server_var(tbwin)
es hostname server_var(hname)
}
// ready
if (server_var(acematch) equalto 1) do
{
if (server_var(ace_auto) equalto 0) do
{
if (server_var(ace_match_knife 1) equalto 1) do
{
if (server_var(resetcounter) equalto 1) do
{
if (server_var(ace_m_command) equalto "ready") do
{
if (event_var(es_userteam) equalto 2) do
{
es_set readyt 1
es_msg #multi #default :A-M: #green Terrorists are READY :::
}
if (event_var(es_userteam) equalto 3) do
{
es_set readyct 1
es_msg #multi #default :A-M: #green Counter Terrorists are READY :::
}
if (server_var(readyt) equalto 1) do
{
if (server_var(readyct) equalto 1) do
{
es_msg #multi #default :A-M: #green BOTH TEAMS are READY ::: STAND BY FOR MATCH :::
es ma_msay 10 #ALL ::: BOTH TEAMS are READY :::\n::: STAND BY FOR MATCH :::
es_doblock ace_match/ace_match_round
}
}
}
}
}
}
}
//
// es_msg server_var(resetcounter) COUNTER
// es_msg server_var(roundcount) ROUND
// es_msg server_var(roundremaining) REMAIN
}
event es_client_command
{
// if(event_var(command) equalto "!acematch") then es_doblock ace_match/acemenu
es_set keypress event_var(commandstring)
if (server_var(menu_active) = 1) do
{
if (server_var(match_underway) = 0) do
{
if (event_var(command) equalto "menuselect") do
{
if (event_var(es_steamid) notequalto server_var(menu_belongs_to)) then es_doblock ace_match/acemenuview
if (event_var(es_steamid) equalto server_var(menu_belongs_to)) do
{
if (event_var(commandstring) equalto "1") then es_doblock ace_match/knife
if (event_var(commandstring) equalto "2") then es_doblock ace_match/overtime
if (event_var(commandstring) equalto "3") then es_doblock ace_match/rounds
if (event_var(commandstring) equalto "4") then es_doblock ace_match/auto
if (event_var(commandstring) equalto "5") then es_doblock ace_match/start
if (event_var(commandstring) equalto "6") then es_doblock ace_match/acemenu
if (event_var(commandstring) equalto "7") then es_doblock ace_match/acemenu
if (event_var(commandstring) equalto "8") then es_doblock ace_match/acemenu
if (event_var(commandstring) equalto "9") then es_doblock ace_match/acemenu
if (event_var(commandstring) equalto "10") then es_doblock ace_match/ace_match_stop
}
}
}
es_set keypress null
}
}
block acemenu
{
es ma_msay 0 #all Ace Match Menu\n \n1. Knife Round: server_var(Dknife)\n2. Overtime: server_var(Dovertime)\n3. Rounds per section: server_var(Drounds)\n4. Auto Ready: server_var(Dauto)\n \n5. Start Match!\n \n0. Exit
}
block acemenuview
{
es ma_msay 0 #all Ace Match Menu\n \n1. Knife Round: server_var(Dknife)\n2. Overtime: server_var(Dovertime)\n3. Rounds per section: server_var(Drounds)\n4. Auto Ready: server_var(Dauto)\n \n5. Start Match!\n \n0. Exit
}
block knife
{
if (server_var(ace_match_knife) equalto 1) then es_delayed .1 es_xset ace_match_knife 0
if (server_var(ace_match_knife) equalto 0) then es_delayed .1 es_xset ace_match_knife 1
es_delayed 0.1 es_doblock ace_match/menusettings
}
block overtime
{
if (server_var(ace_overtime) equalto 1) then es_delayed .1 es_xset ace_overtime 0
if (server_var(ace_overtime) equalto 0) then es_delayed .1 es_xset ace_overtime 1
es_delayed 0.1 es_doblock ace_match/menusettings
}
block rounds
{
if (server_var(rounds_per_half) equalto 3) then es_delayed .1 es_xset rounds_per_half 5
if (server_var(rounds_per_half) equalto 5) then es_delayed .1 es_xset rounds_per_half 7
if (server_var(rounds_per_half) equalto 7) then es_delayed .1 es_xset rounds_per_half 9
if (server_var(rounds_per_half) equalto 9) then es_delayed .1 es_xset rounds_per_half 12
if (server_var(rounds_per_half) equalto 12) then es_delayed .1 es_xset rounds_per_half 15
if (server_var(rounds_per_half) equalto 15) then es_delayed .1 es_xset rounds_per_half 3
es_delayed 0.1 es_doblock ace_match/menusettings
}
block auto
{
if (server_var(ace_auto) equalto 1) then es_delayed .1 es_xset ace_auto 0
if (server_var(ace_auto) equalto 0) then es_delayed .1 es_xset ace_auto 1
es_delayed 0.1 es_doblock ace_match/menusettings
}
block start
{
ma_freeze #all 0
es_doblock ace_match/ace_match_go
es_xset match_underway 1
es_xset menu_active 0
}
block menusettings
{
if (server_var(ace_match_knife) = 1) then es_xset Dknife "[Yes]"
if (server_var(ace_match_knife) = 0) then es_xset Dknife "[No]"
//
if (server_var(ace_overtime) = 1) then es_xset Dovertime "[Yes]"
if (server_var(ace_overtime) = 0) then es_xset Dovertime "[No]"
//
if (server_var(rounds_per_half) = 3) then es_xset Drounds "[3]"
if (server_var(rounds_per_half) = 5) then es_xset Drounds "[5]"
if (server_var(rounds_per_half) = 7) then es_xset Drounds "[7]"
if (server_var(rounds_per_half) = 9) then es_xset Drounds "[9]"
if (server_var(rounds_per_half) = 12) then es_xset Drounds "[12]"
if (server_var(rounds_per_half) = 15) then es_xset Drounds "[15]"
//
if (server_var(ace_auto) = 1) then es_xset Dauto "[Yes]"
if (server_var(ace_auto) = 0) then es_xset Dauto "[No]"
//
es_doblock ace_match/acemenu
}
event round_start
{
if (server_var(acematch) equalto 1) then es_doblock ace_match/ace_round_start
}
event round_end
{
if (server_var(acematch) equalto 1) then es_doblock ace_match/ace_round_end
}
block ace_match_round
{
//acematch settings
mp_restartgame 1
//
es_set roundcount 0
//
es_copy roundremaining rounds_per_half
// es_msg RPH server_var(rounds_per_half)
// es_msg REMAIN server_var (roundremaining)
//
// resetcounter starts at 0, 1 for round 1 (knife), 2 for round 1, 3 for round 2, 4 for overtime
es_math resetcounter + 1
// sets rounds remaining to 1 for knife round
if (server_var(resetcounter) equalto 1) then es_xset roundremaining 1
// sets rounds remaining to 1 for overtime round
if (server_var(resetcounter) equalto 4) then es_xset roundremaining 1
// NEW LINE TO PREPARE FOR START OF NO KNIFE ROUND
if (server_var(ace_match_knife) equalto 0) then es_xif (server_var(resetcounter) equalto 1) then es_xset roundremaining 0
//
// error catcher if section counter goes above 4
if (server_var(resetcounter) greaterthan 4) then es_doblock ace_match/ace_match_stop
//
//
//
if (server_var(ace_match_knife) equalto 0) then es_xif (server_var(resetcounter) notequalto 1) then es_doblock ace_match/ace_match_lo3
if (server_var(ace_match_knife) equalto 1) then es_doblock ace_match/ace_match_lo3
}
block ace_match_go
{
mp_restartgame 1
//
es_doblock ace_match/ace_match_unload
//
// demo record settings
es_xset ace_demo_name 0
es_xset acematch_time 0
eventscripts_timeformat %d%m%y%H%M
//
es_gettimestring acematch_time
es_format ace_demo_name "%1_%2" server_var(eventscripts_currentmap) server_var(acematch_time)
//
if (server_var(tv_enable) equalto 1) then es tv_record server_var(ace_demo_name)
if (server_var(tv_enable) equalto 1) then es_delayed 5 es_xmsg #green AceMatch started recording: server_var(ace_demo_name)
//
//some basic match settings
mani_adverts 0
mani_css_betting 0
mani_css_bounty 0
//
//acematch settings
es_xset acematch 1
es_xset resetcounter 0
// sets resetcounter to 1 if there is no knife round
// if (server_var(ace_match_knife) equalto 0) then es_xset resetcounter 1
es_xset roundremaining 0
// score tracker init
es_xset totwin 0
es_xset tawin 0
es_xset tbwin 0
es_xset teamaname "Team A"
es_xset teambname "Team B"
es_xset hname "A v B"
//
es_delayed 1 es_doblock ace_match/ace_match_round
//
// server name etc
es_format hname "%1 - ace match - waiting for teams" server_var(servername)
es hostname server_var(hname)
//
// match settings
// Official ED CS:Source Match server config
sv_maxupdaterate 100
sv_minupdaterate 33
sv_unlag 1
sv_maxunlag .5
sv_voiceenable 1
mp_autokick 0
mp_autocrosshair 0
mp_autoteambalance 0
mp_buytime .25
// mp_c4timer 35
mp_fadetoblack 0
mp_flashlight 1
mp_forcecamera 1
mp_footsteps 1
mp_freezetime 5
mp_friendlyfire 1
mp_hostagepenalty 0
mp_limitteams 10
mp_playerid 0
// mp_roundtime 3
mp_tkpunish 0
mp_startmoney 800
mp_spawnprotectiontime 0
//
sv_airaccelerate 10
sv_allowdownload 1
sv_allowupload 1
sv_alltalk 0
sv_cheats 0
sv_friction 4
sv_gravity 800
sv_maxrate 25000
sv_maxspeed 320
sv_minrate 2500
sv_stepsize 18
sv_stopspeed 75
sv_timeout 65
//
allow_spectators 1
decalfrequency 60
host_framerate 0
log on
sv_pausable 1
tv_delay 30
//
mp_timelimit 0
// match config loaded
//
// MATCH RULES
es_msg #multi #default :A-M: #green Match about to start
if (server_var(ace_match_knife) equalto 1) do
{
es_msg #multi #default :A-M: #green 1 KNIFE round followed by 2 sections of server_var(rounds_per_half) rounds each
}
if (server_var(ace_match_knife) equalto 0) do
{
es_msg #multi #default :A-M: #green 2 sections of server_var(rounds_per_half) rounds each
}
if (server_var(ace_overtime) equalto 0) do
{
es_msg #multi #default :A-M: #green NO OVERTIME if match is a draw
}
if (server_var(ace_overtime) equalto 1) do
{
es_msg #multi #default :A-M: #green 1 ROUND of OVERTIME if match is a draw
}
esnq ma_msay 20 #all Ace Match Settings\n \nKnife Round: server_var(Dknife)\nOvertime: server_var(Dovertime)\nRounds per section: server_var(Drounds)\nAuto Ready: server_var(Dauto)\n \nGG - Wait for the bell!
}
block ace_match_lo3
{
echo =========================
echo executing new lo3
echo =========================
es_delayed 1 es_xcentermsg * * * LIVE ON THREE * * *
es_delayed 1 es_xmsg * * * LIVE ON THREE * * *
es_delayed 2 mp_restartgame 1
es_delayed 5 es_xcentermsg * * * LIVE ON TWO * * *
es_delayed 5 es_msg * * * LIVE ON TWO * * *
es_delayed 6 mp_restartgame 1
es_delayed 9 es_xcentermsg * * * LIVE ON NEXT RESTART * * *
es_delayed 9 es_xmsg * * * LIVE ON NEXT RESTART * * *
es_delayed 10 mp_restartgame 1
es_delayed 13 es_xmsg * * * LIVE * * *
es_delayed 13 es_xcentermsg * * * LIVE * * *
es_delayed 14 es_xmsg * * * LIVE * * *
es_delayed 14 es_xcentermsg * * * LIVE * * *
es_delayed 15 es_xmsg * * * LIVE * * *
es_delayed 15 es_xcentermsg * * * LIVE * * *
es_delayed 15 es_cexec_all playgamesound ambient/misc/brass_bell_f.wav
es_delayed 16 es_xmsg LIVE NOW! GO! GO! GO!
es_delayed 16 es_xcentermsg LIVE NOW! GO! GO! GO!
echo match is live!
}
block ace_round_start
{
// no more knifes
if (server_var(resetcounter) notequalto 1) do
{
ma_unrestrictall
bot_all_weapons
// announces remaining rounds if not knife round
es_msg #multi #default :A-M: #green Remaining Rounds: server_var(roundremaining)
// announces last two rounds of each section
if (server_var(roundremaining) equalto 1) do
{
es_msg #multi #default :A-M: #green This is the final round in this section!
es_centermsg Final round in this section...
}
}
//
// sets knives only or no restrictions
if (server_var(resetcounter) equalto 1) do
{
if (server_var(ace_match_knife) equalto 1) do
{
ma_knives
bot_knives_only
ma_takecash #all 800
es_give event_var(userid) player_weaponstrip
es_doblock ace_match/acem_weapon_strip
es_delayed 3 es_doblock ace_match/acem_weapon_strip
// announces halves or knives
if (server_var(roundremaining) equalto 1) do
{
es_msg #multi #default :A-M: #green KNIVES ONLY
es_delayed 6 es_centermsg KNIVES ONLY!
es_delayed 8 es_centermsg KNIVES ONLY!
es_delayed 10 es_centermsg KNIVES ONLY!
}
}
}
//
if (server_var(resetcounter) equalto 2) then es_xmsg #multi #default :A-M: #green FIRST SECTION
if (server_var(resetcounter) equalto 3) then es_xmsg #multi #default :A-M: #green SECOND SECTION
if (server_var(resetcounter) equalto 4) then es_xmsg #multi #default :A-M: #green OVERTIME SECTION
//
//
// end of round actions actioned here so it doesn't take you by suprise
// end of knife round
if (server_var(roundremaining) equalto 0) then es_xif (server_var(resetcounter) equalto 1) then es_xmsg #multi #default :A-M: #green Organise and name your teams
if (server_var(ace_auto) equalto 0) then es_xif (server_var(roundremaining) equalto 0) then es_xif (server_var(resetcounter) equalto 1) then es_xmsg #multi #default :A-M: #green One person from each team type #default ready #green then the match will start
//
if (server_var(ace_auto) equalto 1) do
{
if (server_var(roundremaining) equalto 0) do
{
if (server_var(resetcounter) equalto 1) do
{
es_delayed 5 es_msg #multi #default :A-M: #green Please choose your starting team
es_delayed 15 es_msg #multi #default :A-M: #green Please name your team tags now
es_delayed 30 es_msg #multi #default :A-M: #green You have 30 seconds to finish organising your teams then the match will start
es_delayed 37 es_msg #multi #default :A-M: #green Type "score" at any time to see the total scores
es_delayed 45 es_msg #multi #default :A-M: #green You have 15 more seconds until the match begins
es_delayed 55 es_msg #multi #default :A-M: #green Be ready to start the match in 5 seconds!
es_delayed 55 es_centermsg Match Starts In 5 Seconds!
es_delayed 60 es_doblock ace_match/ace_match_round
}
}
}
//
// intructions
if (server_var(ace_auto) equalto 0) then es_xif (server_var(roundremaining) equalto 0) then es_xif (server_var(resetcounter) equalto 1) then es ma_msay 60 #ALL Enter team names AND status:-\n \nCaptain of each team type 'tag' + 'team tag' (one word)\n \nCaptain of each team type 'ready'\n \nWhen captains are ready the match will begin
if (server_var(ace_auto) equalto 1) then es_xif (server_var(roundremaining) equalto 0) then es_xif (server_var(resetcounter) equalto 1) then es ma_msay 60 #ALL Enter team names:-\n \nCaptain of each team type 'tag' + 'team tag' (one word)\n \nWarm up for approx 60 seconds\n \nAfter the 60 second warm up the match will begin
//
// end of round 1
if (server_var(roundremaining) equalto 0) do
{
if (server_var(resetcounter) equalto 2) do
{
es_msg #multi #default :A-M: #green final round played... Swapping teams in 5 seconds!
es_centermsg Swapping teams in 5 seconds!
es_delayed 5 es_doblock ace_match/ace_match_swap
es_delayed 7 es_doblock ace_match/ace_match_round
}
}
//
// announce winner
if (server_var(roundremaining) equalto 0) do
{
if (server_var(resetcounter) greaterthan 2) do
{
if (server_var(tawin) greaterthan server_var(tbwin)) do
{
es_msg #multi #default :A-M: #green server_var(teamaname) (Counter Terrorists) Won The Match with a total of server_var(tawin) points
es_delayed 2 esnq ma_msay 60 #ALL MATCH RESULT:\n \nWinners: server_var(teamaname) (Counter Terrorists)\nCT TOTAL: server_var(tawin)\n \nLOSERS: server_var(teambname) (Terrorists)\nT TOTAL: server_var(tbwin)
es_msg #multi #default :A-M: #green Match Complete... GG!
es_centermsg Match Complete... GG!
es_delayed 10 es_xset acematch 0
es_delayed 10 es_doblock ace_match/ace_match_stop
}
if (server_var(tbwin) greaterthan server_var(tawin)) do
{
es_msg #multi #default :A-M: #green server_var(teambname) (Terrorists) Won The Match with a total of server_var(tbwin) points
es_delayed 2 esnq ma_msay 60 #ALL MATCH RESULT:\n \nWinners: server_var(teambname) (Terrorists)\nT TOTAL: server_var(tbwin)\n \nLOSERS: server_var(teamaname) (Counter Terrorists)\nCT TOTAL: server_var(tawin)
es_msg #multi #default :A-M: #green Match Complete... GG!
es_centermsg Match Complete... GG!
es_delayed 10 es_xset acematch 0
es_delayed 10 es_doblock ace_match/ace_match_stop
}
if (server_var(tbwin) equalto server_var(tawin)) do
{
if (server_var(ace_overtime) notequalto 1) do
{
es_msg #multi #default :A-M: #green The Match was a Draw
es_delayed 2 ma_msay 0 #ALL MATCH RESULT:\n \nThe Match was a Draw\n \nThanks for using Ace Match!
es_msg #multi #default :A-M: #green Match Complete... GG!
es_centermsg Match Complete... GG!
es_delayed 10 es_xset acematch 0
es_delayed 10 es_doblock ace_match/ace_match_stop
}
}
if (server_var(tbwin) equalto server_var(tawin)) do
{
if (server_var(ace_overtime) equalto 1) do
{
es_msg #multi #default :A-M: #green The Match was a Draw
es_msg #multi #default :A-M: #green Stand by for ONE ROUND of Overtime in 5 seconds
es_delayed 2 ma_msay 0 #ALL MATCH RESULT:\n \nThe Match was a Draw\n \nStand by for Overtime (1 Round)
es_delayed 5 es_doblock ace_match/ace_match_round
}
}
}
}
// REMOVED AS CEXEC IS REMOVED
// screenshots at end of last round (put at beggining of next round for safety)
// if (server_var(roundremaining) equalto 0) do
// {
// if (server_var(resetcounter) greaterthan 1) do
// {
// es_msg #multi #default :A-M: #green Taking Screenshots do not touch me!
// es_delayed 1 ma_cexec #ALL +showscores
// es_delayed 2 ma_cexec #ALL jpeg
// es_delayed 3 ma_cexec #ALL -showscores
//es_delayed 4 es_msg #multi #default :A-M: #green Screenshot Taken
// }
// }
}
block ace_round_end
{
es_xmath roundcount + 1
es_xmath roundremaining - 1
// announces round complete
if (server_var(resetcounter) equalto 1) then es_xif (server_vart(ace_match_knife) equalto 1) then es_xmsg #multi #default :A-M: #green Knife Round complete Stand By for Match!
if (server_var(resetcounter) notequalto 1) then es_xmsg #multi #default :A-M: #green Round server_var(roundcount) complete.
// winners
//
//Knife Round
if (server_var(ace_match_knife) equalto 1) do
{
if (server_var(resetcounter) equalto 1) do
{
if (server_var(roundcount) equalto 1) do
{
if (event_var(winner) equalto 2) then es_msg #multi #default :A-M: #green Terrorists won the knife round
if (event_var(winner) equalto 3) then es_msg #multi #default :A-M: #green Counter Terrorists won the knife round
if (event_var(winner) equalto 1) then es_msg #multi #default :A-M: #green Knife round was drawn!
}
}
}
//
//Round One
if (server_var(resetcounter) equalto 2) do
{
if (event_var(winner) equalto 2) then es_xmsg #multi #default :A-M: #green server_var(teamaname) won the round
if (event_var(winner) equalto 2) then es_xmath tawin + 1
if (event_var(winner) equalto 3) then es_xmsg #multi #default :A-M: #green server_var(teambname) won the round
if (event_var(winner) equalto 3) then es_xmath tbwin + 1
if (event_var(winner) equalto 1) then es_xmsg #multi #default :A-M: #green Round Drawn: Nobody Scores!
if (event_var(winner) equalto 1) then es_xmath roundcount - 1
if (event_var(winner) equalto 1) then es_xmath roundremaining + 1
}
//
//Round Two (and overtime)
if (server_var(resetcounter) greaterthan 2) do
{
if (event_var(winner) equalto 2) then es_xmsg #multi #default :A-M: #green server_var(teambname) won the round
if (event_var(winner) equalto 2) then es_xmath tbwin + 1
if (event_var(winner) equalto 3) then es_xmsg #multi #default :A-M: #green server_var(teamaname) won the round
if (event_var(winner) equalto 3) then es_xmath tawin + 1
if (event_var(winner) equalto 1) then es_xmsg #multi #default :A-M: #green Round Drawn: Nobody Scores!
if (event_var(winner) equalto 1) then es_xmath roundcount - 1
if (event_var(winner) equalto 1) then es_xmath roundremaining + 1
}
//
// announce total scores using chat area
if (server_var(resetcounter) equalto 2) do
{
es_msg #multi #default :A-M: #green Total Score server_var(teamaname) (Terrorists): server_var(tawin)
es_msg #multi #default :A-M: #green Total Score server_var(teambname) (Counter Terrorists): server_var(tbwin)
}
if (server_var(resetcounter) greaterthan 2) do
{
es_msg #multi #default :A-M: #green Total Score server_var(teamaname) (Counter Terrorists): server_var(tawin)
es_msg #multi #default :A-M: #green Total Score server_var(teambname) (Terrorists): server_var(tbwin)
}
//
//total points:
es_set totwin 0
es_math totwin + server_var(tawin)
es_math totwin + server_var(tbwin)
//
// uses new mani menu panel function
// knife round
if (server_var(resetcounter) lessthan 2) do
{
if (server_var(roundcount) equalto 1) do
{
if (server_var(ace_match_knife) equalto 1) do
{
if (event_var(winner) equalto 2) then es ma_msay 30 #ALL Terrorists\nwon Knife Round\n \nChoose Teams and\nStand By For Match!
if (event_var(winner) equalto 3) then es ma_msay 30 #ALL Counter Terrorists\nwon Knife Round\n \nChoose Teams and \nStand By For Match!
if (event_var(winner) equalto 1) then es ma_msay 30 #ALL Knife Round Was Drawn!
}
}
}
// total scores
if (server_var(resetcounter) equalto 2) then esnq ma_msay 10 #ALL Total Scores so far\n \nTerrorists\nTeam Name: server_var(teamaname)\nTotal: server_var(tawin)\n \nCounter Terrorists\nTeam Name: server_var(teambname)\nTotal: server_var(tbwin)\n \nRounds Played\nTotal: server_var(totwin)
if (server_var(resetcounter) equalto 3) then esnq ma_msay 10 #ALL Total Scores so far\n \nCounter Terrorists\nTeam Name: server_var(teamaname)\nTotal: server_var(tawin)\n \nTerrorists\nTeam Name: server_var(teambname)\nTotal: server_var(tbwin)\n \nRounds Played\nTotal: server_var(totwin)
//
// server name etc
es_format hname "%1 - ace match - %2 (%4) v %3 (%5)" server_var(servername) server_var(teamaname) server_var(teambname) server_var(tawin) server_var(tbwin)
es hostname server_var(hname)
}
block ace_match_swap
{
//swap all teams
ma_csay Auto Swapping Teams
es_delayed 1 ma_csay Auto Swapping Teams
es_delayed 2 ma_csay Auto Swapping Teams
es_delayed 2 ma_swapteam #ALL
es_xmsg #multi #default :A-M: #green Swapping Teams
es_xmsg #multi #default :A-M: #green Please Stand By
}
block ace_match_stop
{
es_xset menu_active 0
es_msg STOPPING MATCH!
ma_freeze #all 0
sv_password ""
es_set acematch 0
es_xset resetcounter 0
es_xset roundcount 0
es_xset roundremaining 0
es_xset totwin 0
es_xset tawin 0
es_xset tbwin 0
es_set readyct 0
es_set readyt 0
es_xset teamaname "Team A"
es_xset teambname "Team B"
es_xset hname "A v B"
es_xset menu_belongs_to 0
es_xset match_underway 0
mani_adverts 1
mani_css_betting 1
mani_css_bounty 1
ma_unrestrictall
bot_all_weapons
es_doblock ace_match/ace_match_reload
if (server_var(tv_enable) equalto 1) then es tv_stoprecord
if (server_var(tv_enable) equalto 1) then es_xmsg #multi #default :A-M: #green stopped recording: server_var(ace_demo_name)
es_delayed 5 es_msg #multi #default :A-M: #green ended or stopped. Thanks for using Ace_Match
es_delayed 5 exec server.cfg
}
block acem_weapon_strip
{
es_createplayerlist acem_players
es_foreachkey acempl in acem_players "es_delayed .5 es_fire server_var(acempl) player_weaponstrip Strip 1;es_delayed 1 es_fire server_var(acempl) weapon_c4 kill;es_delayed 2 es_give server_var(acempl) weapon_knife"
es_keygroupdelete acem_players
es_fire event_var(userid) hostage_entity kill
es_fire event_var(userid) weapon_c4 kill
es_fire event_var(userid) weapon_awp kill
es_fire event_var(userid) weapon_g3sg1 kill
es_fire event_var(userid) weapon_sg550 kill
es_fire event_var(userid) weapon_scout kill
es_fire event_var(userid) weapon_galil kill
es_fire event_var(userid) weapon_ak47 kill
es_fire event_var(userid) weapon_sg552 kill
es_fire event_var(userid) weapon_famas kill
es_fire event_var(userid) weapon_m4a1 kill
es_fire event_var(userid) weapon_aug kill
es_fire event_var(userid) weapon_glock kill
es_fire event_var(userid) weapon_usp kill
es_fire event_var(userid) weapon_p228 kill
es_fire event_var(userid) weapon_deagle kill
es_fire event_var(userid) weapon_elite kill
es_fire event_var(userid) weapon_fiveseven kill
es_fire event_var(userid) weapon_m3 kill
es_fire event_var(userid) weapon_xm1014 kill
es_fire event_var(userid) weapon_mac10 kill
es_fire event_var(userid) weapon_tmp kill
es_fire event_var(userid) weapon_mp5navy kill
es_fire event_var(userid) weapon_ump45 kill
es_fire event_var(userid) weapon_p90 kill
es_fire event_var(userid) weapon_m249 kill
es_fire event_var(userid) weapon_flashbang kill
es_fire event_var(userid) weapon_hegrenade kill
es_fire event_var(userid) weapon_smokegrenade kill
// es_fire event_var(userid) weapon_primammo kill
// es_fire event_var(userid) weapon_secammo kill
// es_fire event_var(userid) weapon_vest kill
// es_fire event_var(userid) weapon_vesthelm kill
// es_fire event_var(userid) weapon_defuser kill
// es_fire event_var(userid) weapon_nvgs kill
}
block acem_complete_strip
{
es_createplayerlist acem_players
es_foreachkey acempl in acem_players "es_delayed .5 es_fire server_var(acempl) player_weaponstrip Strip 1;es_delayed 1 es_fire server_var(acempl) weapon_c4 kill"
es_keygroupdelete acem_players
es_fire event_var(userid) hostage_entity kill
es_fire event_var(userid) weapon_c4 kill
es_fire event_var(userid) weapon_knife
es_fire event_var(userid) weapon_awp kill
es_fire event_var(userid) weapon_g3sg1 kill
es_fire event_var(userid) weapon_sg550 kill
es_fire event_var(userid) weapon_scout kill
es_fire event_var(userid) weapon_galil kill
es_fire event_var(userid) weapon_ak47 kill
es_fire event_var(userid) weapon_sg552 kill
es_fire event_var(userid) weapon_famas kill
es_fire event_var(userid) weapon_m4a1 kill
es_fire event_var(userid) weapon_aug kill
es_fire event_var(userid) weapon_glock kill
es_fire event_var(userid) weapon_usp kill
es_fire event_var(userid) weapon_p228 kill
es_fire event_var(userid) weapon_deagle kill
es_fire event_var(userid) weapon_elite kill
es_fire event_var(userid) weapon_fiveseven kill
es_fire event_var(userid) weapon_m3 kill
es_fire event_var(userid) weapon_xm1014 kill
es_fire event_var(userid) weapon_mac10 kill
es_fire event_var(userid) weapon_tmp kill
es_fire event_var(userid) weapon_mp5navy kill
es_fire event_var(userid) weapon_ump45 kill
es_fire event_var(userid) weapon_p90 kill
es_fire event_var(userid) weapon_m249 kill
es_fire event_var(userid) weapon_flashbang kill
es_fire event_var(userid) weapon_hegrenade kill
es_fire event_var(userid) weapon_smokegrenade kill
es_fire event_var(userid) weapon_primammo kill
es_fire event_var(userid) weapon_secammo kill
es_fire event_var(userid) weapon_vest kill
es_fire event_var(userid) weapon_vesthelm kill
es_fire event_var(userid) weapon_defuser kill
es_fire event_var(userid) weapon_nvgs kill
}Страница: 1