Example of MessageMode?
HI everyone, i was wondering if you could give me an example of using messagemode. Well, something like how to hold what you write in a string and then using it in the selected function :D :mrgreen:
|
Re: Example of MessageMode?
You have an example in pluginmenu.sma :
register_clcmd("amx_changecvar","CommandChang eCvar"); // ... client_cmd(id,"messagemode amx_changecvar"); // ... public CommandChangeCvar(id) { } |
Re: Example of MessageMode?
Quote:
|
Re: Example of MessageMode?
Quote:
EDIT: Can you tell me please, where I was wrong? I am using it and it works fine for me. |
Re: Example of MessageMode?
Quote:
|
Re: Example of MessageMode?
MessageMode it's just a 'shortcut' to the command, so you use read_args/read_argv in the command function to get the message...for example, in pluginmenu.sma both read_arg(s|v) are used, and btw, you should use remove_quotes after that.
|
Re: Example of MessageMode?
Quote:
|
Re: Example of MessageMode?
IŽd like to do something like a whisperer (pm)
|
Re: Example of MessageMode?
Quote:
|
Re: Example of MessageMode?
yeah, but iŽd like to do something by myself :P
|
| All times are GMT -4. The time now is 08:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.