Raised This Month: $ Target: $400
 0% 

Solved How to get executors name in chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 07-19-2018 , 14:54   Re: How to get executors name in chat
Reply With Quote #1

Quote:
Originally Posted by Celena Luna View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>

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

public 
test(id)
{
    static 
szName[64]
    
get_user_name(idszNamecharsmax(szName))
    
ColorChat(0GREEN"Player %s used /test command."szName);  

@iceeedr: I don't think you need to hook say just for this
Yes, I also agree, but I like to always have a "more complete" function, in case they want to implement with others "says".
iceeedr is offline
Send a message via Skype™ to iceeedr
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 12:46.


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