GLOBALELITE.PL GLOBALELITE.pl 83 Napisano 5 Września 2017 Share Napisano 5 Września 2017 Simple Learning BotExplain in easy way: This Bot can learn chat message from texts from players.Description:A bot that automatically learning chat messege from texts of players. Console Variables: sm_slbt "" - The interval between each chat. Default: "15.0" sm_slbnv "" - The name of simple learning bot.(using for visible) Default: "*SPEC* {#CDCDCD}YUI <3{default}" sm_slbnt "" - The name of simple learning bot.(using for trigger) Default: "YUI" Commands: sm_reloadslb - reload the configs learn.cfg and learn_a.cfg. sm_add - add a string from learn.cfg. sm_get - get a string from learn.cfg. Installation: Put the slb.smx in the addons/sourcemod/plugins/. Put the learn.cfg and learn_a.cfg in the addons/sourcemod/configs/. Put the plugin.slb.cfg in the cfg/sourcemod/. Requirement:Color variables How it works? Quote: Player[1] : YUIPlayer[1] : HiThen the "Hi" string will be added in config learn.cfg question address.YUI <3 : Player[1], HIPlayer[1] : ByeThen the "Bye" string will be added in config learn.cfg answer address and config learn_a.cfg question address.Player[1] : YUIPlayer[1] : HiYUI <3 : Bye <- If "Hi" question(learn.cfg) having an answer, plugin will get answer from config learn.cfg answer address and print it out.Player[1] : LOLThen "LOL" string will be added in config config learn_a.cfg answer address.YUI <3 : Player[1], HIPlayer[1] : ByeYUI <3 : LOL <- If "Bye" question(learn_a.cfg) having an answer, plugin will get answer from config learn_a.cfg and print it out.YUI <3 : Player[1], HiAfter 15 seconds later.YUI <3 : Player[2], HiPlayer[1] : Bye <- This answer will not be record because prevent not relative answer. Changelog:1.0.0 Prototype of plugins GitHub:https://github.com/STARLITENAMO/Simple-Learning-Bot Attached Files Simple-Learning-Bot.zip (162.6 KB) Get Plugin or Get Source (slb.sp - 18.1 KB) Pełny artykuł: https://forums.alliedmods.net/showthread.php?t=301003&goto=newpost Odnośnik do odpowiedzi Udostępnij na innych stronach
Rekomendowane odpowiedzi