diff --git a/chat_commands/chat_commands.gsc b/chat_commands/chat_commands.gsc index 341c63d..d83f791 100644 --- a/chat_commands/chat_commands.gsc +++ b/chat_commands/chat_commands.gsc @@ -228,6 +228,11 @@ PlayerDoesNotExistError(playerName) return ["Player " + playerName + " was not found"]; } +DvarDoesNotExistError(dvarName) +{ + return ["The dvar " + dvarName + " doesn't exist"]; +} + /* Utils section */ @@ -295,6 +300,12 @@ SetStatus(commandName, player, status) player.chat_commands["status"][commandName] = status; } +DvarIsInitialized(dvarName) +{ + result = GetDvar(dvarName); + return result != ""; +} + AddElementToArray(array, element) { array[array.size] = element;