Raised This Month: $ Target: $400
 0% 

Print function to chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Estland
Member
Join Date: Nov 2012
Old 01-01-2014 , 21:18   Re: Print function to chat
Reply With Quote #1

So, like that?
Code:
public client_authorized(id)
{
    if(is_authorized[id] & is_user_connected(id)) {
        new Name[33];
        get_user_name(id,Name,32);
        
        if(get_user_flags(id) & OMANIK) {
            ColorChat(0, NORMAL, "Omanik^4 %s^1 liitus serveriga!", Name);
            return PLUGIN_HANDLED;
        }
        if(get_user_flags(id) & KORRAHOIDJA) {
            ColorChat(0, NORMAL, "Korrahoidja^4 %s^1 liitus serveriga!", Name);
            return PLUGIN_HANDLED;
        }
        if(get_user_flags(id) & IMM_ACCESS) {
            ColorChat(0, NORMAL, "Immunity Admin^4 %s^1 liitus serveriga!", Name);
            return PLUGIN_HANDLED;
        }
        if(get_user_flags(id) & ADMIN_ACCESS) {
            ColorChat(0, NORMAL, "Admin^4 %s^1 liitus serveriga!", Name);
            return PLUGIN_HANDLED;
        }
        if(get_user_flags(id) & VIP_ACCESS) {
            ColorChat(0, NORMAL, "VIP^4 %s^1 liitus serveriga!", Name);
            return PLUGIN_HANDLED;
    }
}
Estland is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 01-01-2014 , 21:42   Re: Print function to chat
Reply With Quote #2

Quote:
Originally Posted by Estland View Post
So, like that?
Code:
public client_authorized(id)
{
    if(is_authorized[id] & is_user_connected(id)) {
        new Name[33];
        get_user_name(id,Name,32);
        
        if(get_user_flags(id) & OMANIK) {
            ColorChat(0, NORMAL, "Omanik^4 %s^1 liitus serveriga!", Name);
            return PLUGIN_HANDLED;
        }
        if(get_user_flags(id) & KORRAHOIDJA) {
            ColorChat(0, NORMAL, "Korrahoidja^4 %s^1 liitus serveriga!", Name);
            return PLUGIN_HANDLED;
        }
        if(get_user_flags(id) & IMM_ACCESS) {
            ColorChat(0, NORMAL, "Immunity Admin^4 %s^1 liitus serveriga!", Name);
            return PLUGIN_HANDLED;
        }
        if(get_user_flags(id) & ADMIN_ACCESS) {
            ColorChat(0, NORMAL, "Admin^4 %s^1 liitus serveriga!", Name);
            return PLUGIN_HANDLED;
        }
        if(get_user_flags(id) & VIP_ACCESS) {
            ColorChat(0, NORMAL, "VIP^4 %s^1 liitus serveriga!", Name);
            return PLUGIN_HANDLED;
    }
}
Maybe you can don't need this is_authorized[id]
__________________
youtube:
@holla16
11922911 is offline
Estland
Member
Join Date: Nov 2012
Old 01-02-2014 , 20:21   Re: Print function to chat
Reply With Quote #3

Got it working using different method. ;) Lock, please.
Estland is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-02-2014 , 23:15   Re: Print function to chat
Reply With Quote #4

Quote:
Originally Posted by Estland View Post
Got it working using different method. ;) Lock, please.
And how did you end up doing it?
__________________
fysiks 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 10:04.


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