Raised This Month: $ Target: $400
 0% 

Detect writing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jediZEr0
Member
Join Date: Jan 2009
Location: In the Middle of Nowhere
Old 01-31-2009 , 12:05   Detect writing
Reply With Quote #1

Is it possible to detect if somebody is writing (messagemode). I tried with get_user_info but it didn't work. +Karma and for who helps me
jediZEr0 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-31-2009 , 12:09   Re: Detect writing
Reply With Quote #2

PHP Code:
register_clcmd("say""handleSay");

public 
handleSayid ) {
        
//

__________________
xPaw is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-31-2009 , 12:24   Re: Detect writing
Reply With Quote #3

Quote:
Originally Posted by xPaw View Post
PHP Code:
register_clcmd("say""handleSay");

public 
handleSayid ) {
        
//

I think he means if someone is in the middle of writing.
Am I right?
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
jediZEr0
Member
Join Date: Jan 2009
Location: In the Middle of Nowhere
Old 01-31-2009 , 12:27   Re: Detect writing
Reply With Quote #4

Heh i didn't think of that Thank you very much!!! I'm new to scripting and ideas are usually absent. I'll give you +Karma as I promised
Edit1: @Dores: Yes you're right! He will be in the middle of writing if he presses Y or U (messagemode) and he will leave messagemode after pressing Enter or Escape. I think I'll handle it from here...

Last edited by jediZEr0; 01-31-2009 at 12:29.
jediZEr0 is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-31-2009 , 14:58   Re: Detect writing
Reply With Quote #5

Quote:
Originally Posted by jediZEr0 View Post
Heh i didn't think of that Thank you very much!!! I'm new to scripting and ideas are usually absent. I'll give you +Karma as I promised
Edit1: @Dores: Yes you're right! He will be in the middle of writing if he presses Y or U (messagemode) and he will leave messagemode after pressing Enter or Escape. I think I'll handle it from here...
Didn't really understand which one do you want, but with that example you can only detect when client says something -> when it appears to chat. If you want to detect when he writes one letter, and won't say it, I think there's no way for it.
SnoW is offline
Send a message via MSN to SnoW
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 01-31-2009 , 16:13   Re: Detect writing
Reply With Quote #6

SnoW, you are correct. You cannot detect WHEN a user is writing something.

The only way to do something close to that is hook when a player has typed something with handleSay, as listed above.
BOYSplayCS is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 01-31-2009 , 20:50   Re: Detect writing
Reply With Quote #7

lol, no. You can detect when a user is writing. I'll try to find the link, but it's not a perfect method.

Found it: http://forums.alliedmods.net/showthr...highlight=chat
__________________

Last edited by stupok; 01-31-2009 at 20:56.
stupok is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 02-01-2009 , 05:49   Re: Detect writing
Reply With Quote #8

Quote:
Originally Posted by stupok View Post
lol, no. You can detect when a user is writing. I'll try to find the link, but it's not a perfect method.

Found it: http://forums.alliedmods.net/showthr...highlight=chat
Haha, bind y! Didn't think of that. Clever!
SnoW is offline
Send a message via MSN to SnoW
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-23-2009 , 13:51   Re: Detect writing
Reply With Quote #9

Just keep in mind that this is not necessarily reliable, there are people who have messagemode bound to other keys. Also, if this even works after Valve's updates, it is not especially good style to rebind people's buttons without asking them.

Greetings,
PM
__________________
hello, i am pm
PM is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-23-2009 , 14:10   Re: Detect writing
Reply With Quote #10

u can 4get it. i know what he wannt. he want to make a plugin when player is writing, a sprite willbe showed over player... ( i hope im right & could help )
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 01:42.


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