Raised This Month: $ Target: $400
 0% 

Plugin help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 12-11-2015 , 13:35   Re: Plugin help
Reply With Quote #1

This should work. Use Colorchat to make the name appear with team color, if you want to.

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN_NAME "Say on connect"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR ""

public plugin_init() 
    
register_plugin PLUGIN_NAME PLUGIN_VERSION PLUGIN_AUTHOR )

public 
client_connectid ) {
    new 
szName[32]
    
get_user_name id szName charsmax(szName) )
    
client_print (print_chat "%s: I'm back on the Server" szName )

__________________

Last edited by Spirit_12; 12-11-2015 at 13:35.
Spirit_12 is offline
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 18:15.


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