Catch say
How to catch when someone type in chat /playername
ex my name is wow and when someone type /wow to get information of my fps |
Re: Catch say
I was actually just wondering this....I was thinking that maybe you can do a register_clcmd("say /", "HandleSay") then grab the name as the argument with arg[1]. But i'm not sure if "say /" will ever get called. If not....you can always do it as a console command....
|
Re: Catch say
Or register just say and arg[1] = "/" because "say /" be like this
Code:
say / wow |
Re: Catch say
here is some code to give you a hand....
Code:
//initQuote:
EDIT: i edited above's code to be better looking, and working for your use. I C/P'd from my code (which includes ML tag- you can remove that) You'll have to define displayInfo(target, id) yourself to include what you want to display to the caller (id) about the person they want to know (target). It works beautifully, i must say. |
Re: Catch say
Quote:
|
Re: Catch say
Quote:
It should be noted that this will tamper with any other commands you have bound to say / w/e. I just found this out, and will be changing it to an ! as the key. EDIT: code updated again. To mitigate the above mentioned issue. |
Re: Catch say
Quote:
Better to write 'player index'. |
Re: Catch say
Quote:
|
Re: Catch say
Quote:
|
Re: Catch say
PHP Code:
|
| All times are GMT -4. The time now is 06:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.