Raised This Month: $32 Target: $400
 8% 

open chat after clicking menu item


Post New Thread Reply   
 
Thread Tools Display Modes
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 07-19-2018 , 17:30   Re: open chat after clicking menu item
Reply With Quote #11

Use messagemode say to trigger chat.
__________________
Relaxing is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-19-2018 , 22:38   Re: open chat after clicking menu item
Reply With Quote #12

Quote:
Originally Posted by edon1337 View Post
Try
PHP Code:
engclient_cmdid"say" ); 
Not sure if it will work.
engclient_cmd() never sends anything to the client. It sends a command from the plugin to the server's engine directly as if it was coming from the client.
__________________
fysiks is offline
Old 07-19-2018, 23:40
iceeedr
This message has been deleted by iceeedr. Reason: off topic
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-20-2018 , 10:47   Re: open chat after clicking menu item
Reply With Quote #13

Here you go, or:

Quote:
Originally Posted by fysiks View Post
PHP Code:
#include <amxmodx>
public plugin_init()
{
    
register_clcmd("say /wordhere""cmdWord")
    
register_clcmd("_mm_wordhere""mmWord")
}

public 
cmdWord(id)
{
    
client_cmd(id"messagemode _mm_wordhere")
}

public 
mmWord(id)
{
    new 
szTemp[64]
    
read_args(szTempcharsmax(szTemp))
    
client_print(idprint_chat"You just said: %s"szTemp)

__________________









Last edited by CrazY.; 07-20-2018 at 10:48.
CrazY. is offline
Reply


Thread Tools
Display Modes

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 04:02.


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