 |
|
Senior Member
Join Date: May 2014
Location: singapore
|

10-04-2014
, 11:17
Re: Scripting Question
|
#3
|
Quote:
Originally Posted by Baws
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() { register_plugin( "Welcoming Chat", "0.0.1", "Baws" ); register_clcmd( "say /hello", "WelcomeChat" ); } public WelcomeChat(id) { client_print( id, print_chat, "Welcome to the server!" ); new szName[ 32 ]; get_user_name( id, szName, charsmax( szName ) ) client_print( 0, print_chat, "The server is welcoming %s!", szName ) }
|
So, The one who typed /hello will only see "WELCOME TO SERVER" And not "The server is welcoming %s"
Right ?
|
|
|
|