Raised This Month: $ Target: $400
 0% 

scoreboard possible


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-04-2013 , 10:17   Re: scoreboard possible
Reply With Quote #1

Found this
Why aint it working?
Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define VERSION "0.0.1"
#define PLUGIN "scoreboard detection"
#define XO_PLAYER 5
#define m_afButtonPressed 246
#define m_afButtonReleased 247
new bool:g_bPlayerInScore[33]
public plugin_init()
{
    register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
    RegisterHam(Ham_Player_PreThink, "player", "CBasePlayer_PreThink__Post", 1)
}
public client_putinserver( id )
{
    g_bPlayerInScore[id] = false
}
public CBasePlayer_PreThink__Post( id )
{
    if( !g_bPlayerInScore[id] )
    {
        if( get_pdata_int(id, m_afButtonPressed) & IN_SCORE )
        {
            g_bPlayerInScore[id] = true
            client_print(id, print_chat, "ScoreBoard Open"); 
        }
    }
    else if( get_pdata_int(id, m_afButtonReleased) & IN_SCORE )
    {
        g_bPlayerInScore[id] = false
        client_print(id, print_chat, "ScoreBoard Closed"); 
    }
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 05-04-2013 at 10:17.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
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:51.


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