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 , 12:29   Re: Print function to chat
Reply With Quote #1

Hmm, still isn't working. No errors, though.

Code:
public client_authorized(id)
{
    is_authorized[id] = true;
}

public client_disconnect(id)
{
    is_authorized[id] = false;
}

public client_putinserver(id)
{
    set_task(2.0, "Tervitus")
}

public Tervitus(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;
    }
        else
        set_task(1.0, "Tervitus")
    }
I've got things like ADMIN_ACCESS defined. new is_authorized[33]; is added, too.
Estland is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-01-2014 , 16:40   Re: Print function to chat
Reply With Quote #2

This is all pointless, just put the code in client_authorized(). It will do exactly the same thing.
__________________
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