Jump to content

TimOOn

Members
  • Posts

    7
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by TimOOn

  1. 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.  :unsure:

  2. 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
    
×
×
  • Create New...