AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   It should work? (https://forums.alliedmods.net/showthread.php?t=194871)

shavit 09-01-2012 05:33

It should work?
 
1 Attachment(s)
I tried to make an plugin for Hebrew chat.
I can't install an HLDS, [it doesn't allow me to get in to my server] so I can't really test it.

So, it will work? [Compiling on UTF8 without BOM encoding]

Edit: I just let someone to try the plugin and it seems like there is no message, how can I use another method of sending a message?

MyPc 09-01-2012 05:40

Re: It should work?
 
Try opening the HLDS server again and connecting like that:
localhost:27015 ( or any port )
And you should check if the message is empty or not before executing your code

shavit 09-01-2012 05:43

Re: It should work?
 
Quote:

Originally Posted by MyPc (Post 1788436)
Try opening the HLDS server again and connecting like that:
localhost:27015 ( or any port )
And you should check if the message is empty or not before executing your code

Already tried, maybe the method of sending the message is wrong, because the game doesn't supports an UTF8 languages.

MyPc 09-01-2012 05:46

Re: It should work?
 
Quote:

Originally Posted by shavit (Post 1788437)
Already tried, maybe the method of sending the message is wrong, because the game doesn't supports an UTF8 languages.

Try it with client_print cause my plugin works well with colorchat..

shavit 09-01-2012 05:47

Re: It should work?
 
Quote:

Originally Posted by MyPc (Post 1788438)
Try it with client_print cause my plugin works well with colorchat..

But I don't want to ruin another plugins that block the message to sent to alive players from dead players...

MyPc 09-01-2012 05:48

Re: It should work?
 
Quote:

Originally Posted by shavit (Post 1788439)
But I don't want to ruin another plugins that block the message to sent to alive players from dead players...

Just try and see if u can see the message with client_print and if the message appears ill try helping you. But first we need to find out if its a problem in the code it self or in the way u send it.

shavit 09-01-2012 05:54

Re: It should work?
 
Quote:

Originally Posted by MyPc (Post 1788442)
Just try and see if u can see the message with client_print and if the message appears ill try helping you. But first we need to find out if its a problem in the code it self or in the way u send it.

Yeah it work with client_print.

MyPc 09-01-2012 05:56

Re: It should work?
 
Quote:

Originally Posted by shavit (Post 1788445)
Yeah it work with client_print.

Well then, now you need to code a handler for the chat.
If someone is dead he will have *dead* in the prefix and the message will be sent to dead players only.
And so on as the Counter-Strike chat works.

OvidiuS 09-01-2012 07:45

Re: It should work?
 
This can help you.
http://forums.alliedmods.net/showpos...9&postcount=15

shavit 09-01-2012 13:21

Re: It should work?
 
Quote:

Originally Posted by MyPc (Post 1788447)
Well then, now you need to code a handler for the chat.
If someone is dead he will have *dead* in the prefix and the message will be sent to dead players only.
And so on as the Counter-Strike chat works.

Made it.
Haha in the another site there is someone that seen this .SMA and he did the same thing just without an handler and he sending the message to the whole server, and he sells it without the source code!
What a bastard!


All times are GMT -4. The time now is 08:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.