TimOOn
-
Posts
7 -
Joined
-
Last visited
-
Days Won
1
Content Type
Forums
Profiles
Events
Gallery
Downloads
Articles
Posts posted by TimOOn
-
-
OK, and what fieldname should I use?
-
Hello,
Is it possible to access player's KR and/or PRW values by lua?
-
oO Thanks for help. I never would have found this. I'm wondering why I even set this flag.
-
Hello,
I was playing with et_Obituary function recently and I tried to replace obituary message with my own. It doesn't work the way I expected. If a string is returned from this function it does replace default obituary, but message is displayed on chat area instead of cpm (popup) like other obituaries.
Is there a way to print custom obituaries on cpm area? I know I could use "et.trap_SendServerCommand" to do that but it won't overwrite the original message, so both of them will be printed.
-
Yup, its just a single function.
function et_ClientCommand(clientNum, cmd) cmd = string.lower(cmd) if string.find(et.trap_Argv(1), "!rename") or cmd == "!rename" then if string.find(et.ConcatArgs(1), "\\") then et.trap_SendServerCommand( clientNum, "print \"^orename: ^7can't use names with a \'\\\'\n\"" ) return 1 else return 0 end end end
-
!rename command allows using backslash so it can mess up client userinfo.
KR/PRW Lua
in Support
Posted
Thanks a lot. This is perfect!
Script works fine.