Anyway to fix the universe chat to show whos talking
-
Compiling... Settings.cpp FLHook.cpp HkDataBaseMarket.cpp HkFuncTools.cpp HkFuncPlayers.cpp HkFuncOther.cpp HkFuncMsg.cpp HkFuncLog.cpp HkUserCmd.cpp HkTimers.cpp HkCbOther.cpp HkCbIServerImpl.cpp HkCbDisconnect.cpp HkCbDeath.cpp HkCbDamage.cpp HkCbChat.cpp HkInit.cpp HkFLIni.cpp HkError.cpp CSocket.cpp Generating Code... Compiling... CInGame.cpp CConsole.cpp CCmds.cpp \Users\USER\Downloads\flhook1.6.0_plugin\src\flhook_src\source\CCmds.cpp(265) : error C2065: 'admin' : undeclared identifier \Users\USER\Downloads\flhook1.6.0_plugin\src\flhook_src\source\CCmds.cpp(265) : error C2228: left of '.wscAdminName' must have class/struct/union type type is ''unknown-type'' \Users\USER\Downloads\flhook1.6.0_plugin\src\flhook_src\source\CCmds.cpp(265) : error C2228: left of '.size' must have class/struct/union type \Users\USER\Downloads\flhook1.6.0_plugin\src\flhook_src\source\CCmds.cpp(265) : error C2228: left of '.iClientID' must have class/struct/union type type is ''unknown-type'' \Users\USER\Downloads\flhook1.6.0_plugin\src\flhook_src\source\CCmds.cpp(265) : error C3861: 'admin': identifier not found, even with argument-dependent lookup \Users\USER\Downloads\flhook1.6.0_plugin\src\flhook_src\source\CCmds.cpp(271) : error C2228: left of '.wscAdminName' must have class/struct/union type type is ''unknown-type'' \Users\USER\Downloads\flhook1.6.0_plugin\src\flhook_src\source\CCmds.cpp(271) : error C3861: 'admin': identifier not found, even with argument-dependent lookup Generating Code... Build log was saved at "file://c:\Users\Stone\Downloads\flhook1.6.0_plugin\src\flhook_src\project-vc7\Release\BuildLog.htm" FLHook - 7 error(s), 0 warning(s) ---------------------- Done ---------------------- Build: 0 succeeded, 1 failed, 0 skipped
coded the hkfuncmsg.ccp, hook.h, cmd.ccp, and cmd.h copied straight from the source of your FLhook version with the unichat working, dunno how this was happening.
-
Oh, you missed a declaration I made in the CInGame.h and HkCbIServerImpl.cpp files that allows admin to be accessed from CCmds.cpp. At the top of HkCbIServerImpl.cpp you need
CInGame admin;
and after the class declaration in CInGame.h you need```
extern CInGame admin; -
Sounds like you’re not calling the right HkMsgU function. There’s three of them, and the one that replicates the /u functionality is HK_ERROR HkMsgU(wstring wscSender, wstring wscMessage), the one with two arguments, the sender of the message and the actual message. HK_ERROR HkMsgU(wstring wscMessage) is the original function used and will not show the name of the admin. Also note that the way I implemented it (not sure if you changed it at all) you must execute the .msgu command in game for it to show a name, otherwise it will just revert back to using the normal one.
-
I have tried many things, even modified my cmds.ccp and cmds.h to try adding those into arguments and see if it worked, still got nothing, i have done nothing to change the way its coded, just directly from the way you coded it (unless your source code is wrong). i tried adding those into arguments and it just showed Console: with no message. i guess i will continue using Flshell longer though i was gonna get rid of it soon to make the server look more professional.