Fixed !setlevel not being correctly saved

This commit is contained in:
Timo Smit 2018-04-15 20:36:01 +02:00
parent 84f008080d
commit 1872921e52

View file

@ -51,7 +51,7 @@ function commandSetLevel(clientId, command, victim, level)
return false return false
end end
history.add(cmdClient, clientId, "level", level) history.add(cmdClient, clientId, "level", tostring(level))
return false return false
end end
@ -96,8 +96,8 @@ function commandSetLevel(clientId, command, victim, level)
return true return true
end end
admin.setPlayerLevel(cmdClient, tonumber(level), clientId) admin.setPlayerLevel(cmdClient, level, clientId)
history.add(cmdClient, clientId, "level", level) history.add(cmdClient, clientId, "level", tostring(level))
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^dsetlevel: ^7"..et.gentity_get(cmdClient, "pers.netname").." ^9is now a level ^7"..level.." ^9player.\";") et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^dsetlevel: ^7"..et.gentity_get(cmdClient, "pers.netname").." ^9is now a level ^7"..level.." ^9player.\";")