Raised This Month: $ Target: $400
 0% 

Solved How to get executors name in chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-19-2018 , 22:24   Re: How to get executors name in chat
Reply With Quote #6

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
Max name characters are 32 and not 64.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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