Raised This Month: $ Target: $400
 0% 

It should work?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-01-2012 , 05:33   It should work?
Reply With Quote #1

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?
Attached Files
File Type: sma Get Plugin or Get Source (hebrew.sma - 535 views - 2.6 KB)
__________________
retired

Last edited by shavit; 09-01-2012 at 05:45.
shavit is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 09-01-2012 , 05:40   Re: It should work?
Reply With Quote #2

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

Last edited by MyPc; 09-01-2012 at 05:41.
MyPc is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-01-2012 , 05:43   Re: It should work?
Reply With Quote #3

Quote:
Originally Posted by MyPc View Post
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.
__________________
retired
shavit is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 09-01-2012 , 05:46   Re: It should work?
Reply With Quote #4

Quote:
Originally Posted by shavit View Post
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..
MyPc is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-01-2012 , 05:47   Re: It should work?
Reply With Quote #5

Quote:
Originally Posted by MyPc View Post
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...
__________________
retired
shavit is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 09-01-2012 , 05:48   Re: It should work?
Reply With Quote #6

Quote:
Originally Posted by shavit View Post
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.
MyPc is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-01-2012 , 05:54   Re: It should work?
Reply With Quote #7

Quote:
Originally Posted by MyPc View Post
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.
__________________
retired
shavit is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 09-01-2012 , 05:56   Re: It should work?
Reply With Quote #8

Quote:
Originally Posted by shavit View Post
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.
MyPc is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 09-01-2012 , 07:45   Re: It should work?
Reply With Quote #9

This can help you.
http://forums.alliedmods.net/showpos...9&postcount=15
OvidiuS is offline
Send a message via Skype™ to OvidiuS
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-01-2012 , 13:21   Re: It should work?
Reply With Quote #10

Quote:
Originally Posted by MyPc View Post
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!
__________________
retired
shavit is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:11.


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