PDA

View Full Version : [Help] How to use TWO prefixes


Heiko1
9th June 2011, 15:29
Hi volks,

im using C# and want to know if its possible to use TWO prefixes?

e.g

InSimSettings Settings = new InSimSettings("127.0.0.1", 29999, 0, Flags.InSimFlags.ISF_MSO_COLS | Flags.InSimFlags.ISF_MCI, '$', 500, "051093", "^3LFS External", 5);

thats now just one prefix "$"

then if im typing an Message like "$help"
it hides the $help cause of the prefix

but i want to soemthing like that
$ - prefix is for clients / users (and is hiden from chat)
! - prefix is for admins (and is also hiden from chat)

does anybody understood what i mean?
and does anybody know how to do that?

Please Reply!

Thanks in advance Heiko1

PoVo
9th June 2011, 18:40
AFAIK, it's not possible.

You can use "/i command arg" though.

I can't remember the exact packet, but there's a packet when "/i" is typed. It is hidden from the chat and should work.

E.G you could use:

"/i ban USERNAME" :thumb:

Hope it helps.

Heiko1
9th June 2011, 20:11
Yes a bit but i think u dont understood me completly :D
maybe i dont discribet in the text up there


somehow it is possible to hidde text from the chat

eg.
on some servers when you type Swear words
they are hidden from the chat and you get an message "Dont swear" as example

and thats what i want to know :D
because theres no prefix in front of these words
and then i can add an filter what are these words are and add an ! in front of it

Hope its that easy :D

But anyway thanks for that help

Dygear
9th June 2011, 22:59
That's a good question, as it should not really be possible to incercept messages in this way. Unless I've missed something within the InSim.h file ... What your saying is something I would like to see also, the power to handle messages from a client to sanitize them would provide a great level of power to any InSim application.

misiek08
10th June 2011, 09:57
Is it possible to hide user message?

Krammeh
10th June 2011, 10:36
not a way to do this afaik?

Heiko1
10th June 2011, 16:32
Yea thats seems to be an interesting question,

If i remember right does CTRA had some of that thing in their system?
eg. Swearwords?

dawesdust_12
10th June 2011, 16:51
No. All CTRA did when we were alive was if you swore you'd either get kicked or warned (and above a certain threshold in a short time.. kicked).

I'm not sure which it was. My mind does point towards insta-kick on swear though for a vague reason.