Raised This Month: $ Target: $400
 0% 

Solved How to get executors name in chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
blAck.
Member
Join Date: Jun 2018
Old 07-19-2018 , 14:03   Re: How to get executors name in chat
Reply With Quote #3

Quote:
Originally Posted by iceeedr View Post
PHP Code:

#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say""Say_Hook")
    
register_clcmd("say_team""Say_Hook")
}

public 
Say_Hook(id)
{
    new 
szMessage[36
    
read_args(szMessagecharsmax(szMessage)) 
    
remove_quotes(szMessage)
    
    if(
equali(szMessage,".test") || equali(szMessage,"/test"))
    {
        new 
szName[32]
        
get_user_name(idszNamecharsmax(szName))
        
        
client_print(0print_chat"[AMXX] My name is %s."szName)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE

Thanks buddy ^^
blAck. 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:46.


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