Raised This Month: $ Target: $400
 0% 

Solved Admin flags are being ignored


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SaBBa
Member
Join Date: Dec 2012
Old 01-04-2021 , 14:32   Admin flags are being ignored
Reply With Quote #1

This is the only place in my code, where g_iKills and g_iInfections increase.
In mostly it works good, but, sometimes admin player is getting his kills increased, what could be a reason ?

Code:
public EventDeathMsg()
{
    if(!(tournament))
        return PLUGIN_HANDLED

    new killer = read_data(1)
    new victim = read_data(2)

    if(!(is_user_valide(victim)) || !(is_user_valide(killer)))
        return PLUGIN_HANDLED

    if(killer == victim)
        return PLUGIN_HANDLED

    if(~get_user_flags(killer) & ADMIN_USER)
        return PLUGIN_HANDLED

    if(zp_get_user_zombie(killer)) {
        g_iInfections[killer]++
        return PLUGIN_HANDLED
    }

    g_iKills[killer]++
    return PLUGIN_HANDLED
}

Last edited by SaBBa; 01-04-2021 at 17:52.
SaBBa 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 14:07.


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