Raised This Month: $ Target: $400
 0% 

Scripting Question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 10-04-2014 , 11:17   Re: Scripting Question
Reply With Quote #3

Quote:
Originally Posted by Baws View Post
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() { &nbsp;&nbsp;&nbsp;&nbsp;register_plugin( "Welcoming Chat", "0.0.1", "Baws" ); &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;register_clcmd( "say /hello", "WelcomeChat" ); } public WelcomeChat(id) { &nbsp;&nbsp;&nbsp;&nbsp;client_print( id, print_chat, "Welcome to the server!" ); &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;new szName[ 32 ]; &nbsp;&nbsp;&nbsp;&nbsp;get_user_name( id, szName, charsmax( szName ) ) &nbsp;&nbsp;&nbsp;&nbsp;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 ?
Awesome_man 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 17:41.


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