Fixed minor bugs

This commit is contained in:
Timo Smit 2017-01-17 12:02:03 +01:00
parent 87ece57322
commit dcb2859378
3 changed files with 4 additions and 2 deletions

View file

@ -48,6 +48,7 @@ CREATE TABLE IF NOT EXISTS `history` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`victim_id` INTEGER NOT NULL,
`invoker_id` INTEGER NOT NULL,
`type` TEXT NOT NULL,
`datetime` INTEGER NOT NULL,
`reason` TEXT NOT NULL,
CONSTRAINT `history_victim` FOREIGN KEY (`victim_id`) REFERENCES `player` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
@ -61,6 +62,7 @@ CREATE TABLE IF NOT EXISTS `mute` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`victim_id` INTEGER NOT NULL,
`invoker_id` INTEGER NOT NULL,
`type` TEXT NOT NULL,
`issued` INTEGER NOT NULL,
`expires` INTEGER NOT NULL,
`duration` INTEGER NOT NULL,

View file

@ -64,7 +64,7 @@ function commandLock(clientId, cmdArguments)
local team = util.getTeamFromCode(cmdArguments[1])
teams.lock(team)
et.trap_SendConsoleCommand(et.EXEC_APPEND, "chat \"^dlock: "..util.getTeamColor(team).util.getTeamName(team).." ^9team has been locked.\";")
et.trap_SendConsoleCommand(et.EXEC_APPEND, "chat \"^dlock: "..util.getTeamColor(team)..util.getTeamName(team).." ^9team has been locked.\";")
return false
end

View file

@ -64,7 +64,7 @@ function commandUnlock(clientId, cmdArguments)
local team = util.getTeamFromCode(cmdArguments[1])
teams.unlock(team)
et.trap_SendConsoleCommand(et.EXEC_APPEND, "chat \"^dlock: "..util.getTeamColor(team).util.getTeamName(team).." ^9team has been unlocked.\";")
et.trap_SendConsoleCommand(et.EXEC_APPEND, "chat \"^dlock: "..util.getTeamColor(team)..util.getTeamName(team).." ^9team has been unlocked.\";")
return false
end