diff --git a/AutismBotIngame/python/ingamefollowct.py b/AutismBotIngame/python/ingamefollowct.py index 1becea29..7e314f77 100644 --- a/AutismBotIngame/python/ingamefollowct.py +++ b/AutismBotIngame/python/ingamefollowct.py @@ -171,7 +171,7 @@ def mysql_check_messages(): str = f"""say {result}""" print('str: ', str) writeCfgInput(str) - time.sleep(0.2) + time.sleep(0.9) sql_statement = f"""DELETE FROM unloze_css_autism_bot.`chatting` WHERE `responsemessage` = '{result}'""" print('sql_statement: ', sql_statement) cur.execute(sql_statement) @@ -194,7 +194,7 @@ def mysql_check_if_connected(): #playercount might not be updated ingame and auto leave? print('connected: ', connected) if connected == 0: - str1 = "connect 151.80.230.149:27019/test132;" + str1 = "connect 151.80.230.149:27015;" writeCfgInput(str1) time.sleep(0.2) writeCfgInput("wait 5;") diff --git a/AutismBotIngame/scripting/autism_bot_info.sp b/AutismBotIngame/scripting/autism_bot_info.sp index e3e92f3f..4f2a80d8 100644 --- a/AutismBotIngame/scripting/autism_bot_info.sp +++ b/AutismBotIngame/scripting/autism_bot_info.sp @@ -60,6 +60,11 @@ public Action cmd_talk(int client, int args) { char info[generic_length]; GetCmdArgString(info, sizeof(info)); + if (strlen(info) == 0) + { + PrintToChat(client, "Add a message to the command if autism bot is ingame"); + return Plugin_Handled; + } char error_connect[generic_length]; Database database_connection; if (SQL_CheckConfig("css_autism_bot_info"))