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 , 09:58   scoreboard possible
Reply With Quote #1

Is it possible to detect if someone opens the scoreboard and if someone closes it?
__________________
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.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
daniel46
Senior Member
Join Date: Dec 2011
Old 05-04-2013 , 10:10   Re: scoreboard possible
Reply With Quote #2

you need to detect if he click on IN_SCORE

Code:
static iButton
	iButton = get_uc(handle, UC_Buttons)
	
	if(iButton & IN_SCORE)

Last edited by daniel46; 05-04-2013 at 10:12.
daniel46 is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-04-2013 , 10:17   Re: scoreboard possible
Reply With Quote #3

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
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-04-2013 , 10:28   Re: scoreboard possible
Reply With Quote #4

Works just fine.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-04-2013 , 10:34   Re: scoreboard possible
Reply With Quote #5

Quote:
Originally Posted by hornet View Post
Works just fine.

Have you tested?
when i press TAB it doesnt shows anything in the chat
__________________
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.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-04-2013 , 10:43   Re: scoreboard possible
Reply With Quote #6

I did. Can only assume you haven't enabled it or something alike.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-04-2013 , 11:08   Re: scoreboard possible
Reply With Quote #7

Quote:
Originally Posted by hornet View Post
I did. Can only assume you haven't enabled it or something alike.
working now

Somehow it didnt work on my test server
but it did work on my real server
__________________
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.
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