Raised This Month: $ Target: $400
 0% 

Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vechta
Veteran Member
Join Date: Jun 2010
Old 08-03-2010 , 14:44   Re: Problem
Reply With Quote #1

Quote:
Originally Posted by abdul-rehman View Post
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 }
Thanks, i'll test... (What did you changed xD)

PS: I looked at your Human chat code

Last edited by Vechta; 08-03-2010 at 14:47.
Vechta is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 08-03-2010 , 15:17   Re: Problem
Reply With Quote #2

if (get_user_flags(id) && VIPACCES) should be if (get_user_flags(id) & VIPACCES) .
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 08-04-2010 , 09:30   Re: Problem
Reply With Quote #3

Quote:
Originally Posted by Devil259 View Post
if (get_user_flags(id) && VIPACCES) should be if (get_user_flags(id) & VIPACCES) .
I know that, but it dont help my bug :S
Vechta is offline
Reply



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