Raised This Month: $ Target: $400
 0% 

Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Vechta
Veteran Member
Join Date: Jun 2010
Old 08-03-2010 , 06:37   Problem
Reply With Quote #1

hey why i cant use commands like /bank or /zpstats with this code?

If i do mistake or forgot something please corrent it

plugins_init()
Code:
register_clcmd("say", "hook_say")
hook_say
Code:
public hook_say(id)
{
	// Process what he is speaking
	new chat[192]
	read_args(chat, 191)
	remove_quotes(chat)
	
	// Get his name
	new name[32]
	get_user_name(id, name, 31)

	// If he has written nothing then return
	if(equal(chat, ""))
		return PLUGIN_HANDLED
	
	// Check if he is alive
	if (is_user_alive(id))
	{
		if (!zp_get_user_zombie(id))
		{
			// He is a Human
			if (get_user_flags(id) && VIPACCES)
			{
				ColorChat(0, GREEN, "[VIP] ^x03%s^x01: ^x04%s", name, chat);
			}
		}
		
		if (zp_get_user_zombie(id))
		{
			// He is a Human
			if (get_user_flags(id) && VIPACCES)
			{
				ColorChat(0, RED, "[VIP] ^x03%s^x01: ^x04%s", name, chat);
			}
		}	
	}
	else
	{
		if (!zp_get_user_zombie(id))
		{
			// He is a Human
			if (get_user_flags(id) && VIPACCES)
			{
				ColorChat(0, GREY, "[VIP] ^x01%s^x01: ^x04%s", name, chat);
			}
		}
		
		if (zp_get_user_zombie(id))
		{
			// He is a Human
			if (get_user_flags(id) && VIPACCES)
			{
				ColorChat(0, GREY, "[VIP] ^x01%s^x01: ^x04%s", name, chat);
			}
		}
	}
	return PLUGIN_HANDLED
}
Vechta 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 00:14.


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