Raised This Month: $ Target: $400
 0% 

Message_Begin shutsdown server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
The Ted
Junior Member
Join Date: Feb 2006
Old 03-17-2006 , 22:53   Message_Begin shutsdown server
Reply With Quote #1

This code shuts down the server. I am requesting some help for this

Code:
//Item Sunglasses
public item_sunglasses()
{
	new arg[32], id
	read_argv(1,arg,31)
	id = str_to_num(arg)
	if(onoff==0)
	{
		message_begin(MSG_ONE, gmsgFade, {0,0,0}, id)
		write_short(1<<0)
		write_short(1<<0) 
		write_short(1<<0) 
		write_byte(0) 
		write_byte(0)  
		write_byte(0)   
		write_byte(200)   
		message_end()
		client_cmd(id,"say /me puts on sunglasses")
		onoff=1
		return PLUGIN_HANDLED
	}
	else
	{
		message_begin(MSG_ONE, gmsgFade, {0,0,0}, id)
		write_short(1<<0)
		write_short(1<<0) 
		write_short(1<<0) 
		write_byte(0) 
		write_byte(0)  
		write_byte(0)   
		write_byte(0)   
		message_end()
		client_cmd(id,"say /me takes off sunglasses")
		onoff=0
		return PLUGIN_HANDLED
	}
	return PLUGIN_HANDLED
}
The Ted is offline
 


Thread Tools
Display Modes

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 16:29.


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