AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detect writing (https://forums.alliedmods.net/showthread.php?t=84754)

jediZEr0 01-31-2009 12:05

Detect writing
 
Is it possible to detect if somebody is writing (messagemode). I tried with get_user_info but it didn't work. :cry: +Karma and :crab: for who helps me

xPaw 01-31-2009 12:09

Re: Detect writing
 
PHP Code:

register_clcmd("say""handleSay");

public 
handleSayid ) {
        
//



Dores 01-31-2009 12:24

Re: Detect writing
 
Quote:

Originally Posted by xPaw (Post 753250)
PHP Code:

register_clcmd("say""handleSay");

public 
handleSayid ) {
        
//



I think he means if someone is in the middle of writing.
Am I right?

jediZEr0 01-31-2009 12:27

Re: Detect writing
 
Heh i didn't think of that :P Thank you very much!!! I'm new to scripting and ideas are usually absent. I'll give you +Karma as I promised :D
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...

SnoW 01-31-2009 14:58

Re: Detect writing
 
Quote:

Originally Posted by jediZEr0 (Post 753265)
Heh i didn't think of that :P Thank you very much!!! I'm new to scripting and ideas are usually absent. I'll give you +Karma as I promised :D
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.

BOYSplayCS 01-31-2009 16:13

Re: Detect writing
 
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.

stupok 01-31-2009 20:50

Re: Detect writing
 
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

SnoW 02-01-2009 05:49

Re: Detect writing
 
Quote:

Originally Posted by stupok (Post 753510)
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! :mrgreen:

PM 03-23-2009 13:51

Re: Detect writing
 
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

One 03-23-2009 14:10

Re: Detect writing
 
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 )


All times are GMT -4. The time now is 01:42.

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