Raised This Month: $ Target: $400
 0% 

Message Mode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
umarsa
Senior Member
Join Date: Feb 2006
Location: U.K
Old 12-17-2006 , 19:22   Message Mode
Reply With Quote #1

Code:
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("test", "test")
}

public test(id) 
{
	//  client has to do command "messagemode test" has to be same as the public function
	new message[192]
	// Get message and remove quotes
	read_args(message, 191)
	remove_quotes(message)	
	client_print(id, print_chat, "You Typed: ^"%s^"", message)
	return PLUGIN_HANDLED
}
Now do i make it so when they type "amx_test" in their console it will make a messagemode come and after they have typed their message it will print_chat in the clients chat area?
__________________
umarsa 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 06:56.


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