Raised This Month: $ Target: $400
 0% 

open chat after clicking menu item


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 07-19-2018 , 11:37   Re: open chat after clicking menu item
Reply With Quote #4

PHP Code:
client_cmd(id"say"
but I assume (looking at your other threads) that's not what you are looking for.

in plugin_init:
PHP Code:
register_clcmd("PM""PMText"); 
PMTEXT Function:
PHP Code:
public PMText(id) {
    new 
szText[128];
    
read_args(szTextcharsmax(szText));
    
remove_quotes(szText);
       
       
//szTextis string which holds what user has written, assign it to global string, let's say g_sPM[33][128]
       
g_sPM[id] = szText;
    return 
PLUGIN_HANDLED;

To make user type PM:
PHP Code:
client_cmd(id"messagemode PM"

Last edited by Airkish; 07-19-2018 at 12:45.
Airkish is offline
 



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 12:18.


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