Scripting problems
Hello, I am currently working on a script that lets people PM other people by a command. You should be able to do that by just typing "/PM Target Message" on the chat screen, but it will output it as a normal chat message in the chat menu. But when I type "say /PM Player Message" in the console, it works perfectly. I just need it to work directly from the chat screen. please help.
Code:
|
Re: Scripting problems
Quote:
|
Re: Scripting problems
Quote:
|
First off, http://forums.alliedmods.net/showthread.php?t=5037. I already did this.
Second off, you cannot read the second arg of a say command. It only has one arguement. Everything is in quotes, so it only has ONE. Third, use cmd_target. Ok lemme try to salvage this... Code:
|
Quote:
EDIT: Ohh, the private messaging works now, but the message will only conatain the first word, so that means you can't include any spaces. Any solutions for this? |
Really? I guess you could try strbreak, and break it to do this. Watch:
Code:
|
It works 100% now, thanks for wasting time helping a n00b (me) :P
|
| All times are GMT -4. The time now is 14:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.