Try this maybe it will work:
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_CONTINUE
// 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
{
// He is a Human
if (get_user_flags(id) && VIPACCES)
{
ColorChat(0, GREY, "[VIP] ^x01%s^x01: ^x04%s", name, chat);
}
}
return PLUGIN_CONTINUE
}
__________________