mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2025-04-16 13:51:59 +00:00
Added vote for maximum bots
This commit is contained in:
parent
3954583bc5
commit
f02f91dc34
1 changed files with 11 additions and 0 deletions
|
@ -140,6 +140,17 @@ function voting.onPollFinish(passed, poll)
|
|||
end
|
||||
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "bot difficulty "..difficulty)
|
||||
elseif string.find(poll, "set bot max") == 1 then
|
||||
local amount = string.sub(poll, 13)
|
||||
|
||||
if tonumber(amount) then
|
||||
amount = tonumber(amount)
|
||||
else
|
||||
return
|
||||
end
|
||||
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "bot maxbots "..amount)
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^dmaxbots: ^9maximum set to ^7"..amount.." ^9bots.\";")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue