This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

I Want To Open Chat To Player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DOCTOR DT
Junior Member
Join Date: Jun 2024
Old 06-12-2024 , 15:39   I Want To Open Chat To Player
Reply With Quote #1

I Want To Open Chat To Player "messagemode" with Changing "say :" To Anything I Want (I Want To Call It With custom function not all time)

Example:
Quote:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "4D0CtOR4"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("custom_say", "custom_say")
}

public custom_say(id) {
// i Want To Call It Here
}
DOCTOR DT is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-12-2024 , 22:44   Re: I Want To Open Chat To Player
Reply With Quote #2

Not sure I entirely understand your question but you can use messagemode with custom defined functions. Just use "messagemode custom_say" in your console and you'll be able to type your message and then press Enter and your command will be called.

If you want to have it open the message mode from some other function, you would use a client_cmd(id, "messagemode custom_say").
__________________
fysiks is offline
DOCTOR DT
Junior Member
Join Date: Jun 2024
Old 06-13-2024 , 00:41   Re: I Want To Open Chat To Player
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Not sure I entirely understand your question but you can use messagemode with custom defined functions. Just use "messagemode custom_say" in your console and you'll be able to type your message and then press Enter and your command will be called.

If you want to have it open the message mode from some other function, you would use a client_cmd(id, "messagemode custom_say").
Bro You Know Like Amxmodx Cmd Menu When You Execute something with paramaters it open chat to you but with other name (I Saw A Server Doing Like That

Last edited by DOCTOR DT; 06-13-2024 at 00:44.
DOCTOR DT is offline
v120kaaimcfg
Member
Join Date: Apr 2024
Old 06-13-2024 , 07:08   Re: I Want To Open Chat To Player
Reply With Quote #4

‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

Last edited by v120kaaimcfg; 06-17-2024 at 07:15.
v120kaaimcfg is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-13-2024 , 23:50   Re: I Want To Open Chat To Player
Reply With Quote #5

Not really sure what you're asking about if you didn't understand what I said in my last post. The only place that messagemode is used in AMX Mod X is in amx_plugincvarmenu and amx_plugincmdmenu. You can see how it's done in that plugin here.
__________________
fysiks is offline
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 15:35.


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