Raised This Month: $ Target: $400
 0% 

Scoreboard question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Misery
Senior Member
Join Date: Dec 2010
Old 09-24-2012 , 11:13   Scoreboard question
Reply With Quote #1

Hi,

I would like to know which functions handle the scoreboard when a player connects...
I mean, when someone gets connected to the server, the player name is automatically added in the scoreboard, under the spectators team (because his team is not yet assigned, just after connect, he's set as TEAM_UNASSIGNED).
I would like to know which function does that? i.e. add the player name to the scoreboard initially?

On another note, when the player disconnects the name disappears from the scoreboard... which functions does that?

I'd like to hook it with Orpheu for example.

Thanks!

EDIT: Could also be messages... that's what I'm trying to get. You know, basically, the functionality which does this. Function/message/whatever.

Misery

Last edited by Misery; 09-24-2012 at 11:27.
Misery is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-24-2012 , 12:04   Re: Scoreboard question
Reply With Quote #2

player_connect and player_disconnect i believe.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-24-2012 , 18:40   Re: Scoreboard question
Reply With Quote #3

I'm not entirely sure how the scoreboard works but if it is possible to hook these events (exactly) you will need to use Orpheu or Rage (you won't find anything in the other modules to do this).

Quote:
Originally Posted by Liverwiz View Post
player_connect and player_disconnect i believe.
Do those even exist?
__________________
fysiks is offline
Old 09-24-2012, 18:46
Liverwiz
This message has been deleted by Liverwiz. Reason: hold on....
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-24-2012 , 18:52   Re: Scoreboard question
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
Do those even exist?
SURE they do!
Observe....

PHP Code:
#include <amxmodx>

#define PLUGIN "Player_Dis_Connect"
#define VERSION "1.0"
#define AUTHOR "Liverwiz"

new g_maxPlayers
public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_maxPlayers get_maxplayers()
}

public 
client_connect(id)
    
player_connect(id)
    
public 
client_disconnect(id)
    
player_disconnect(id)
    
player_connect(id)
    
server_print("That's right. I just connected.")
    
player_disconnect(id)
    
server_print("That's right. I just disconnected."
get off my nuts, fysks
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 09-24-2012 at 18:53.
Liverwiz is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 09-24-2012 , 19:04   Re: Scoreboard question
Reply With Quote #5

Quote:
Originally Posted by Liverwiz View Post
get off my nuts, fysks
, do you know that fysiks know that you know that fysiks know alot more than you.
As you can see, he never ask scripting help and he also help alot.
.Dare Devil. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-24-2012 , 19:05   Re: Scoreboard question
Reply With Quote #6

Quote:
Originally Posted by .Dare Devil. View Post
, do you know that fysiks know that you know that fysiks know alot more than you.
As you can see, he never ask scripting help and he also help alot.
lol. I make mistakes too. Just giving him a hard time (aka sarcasm and correction all-in-one).
__________________
fysiks is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 09-24-2012 , 19:07   Re: Scoreboard question
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
lol. I make mistakes too. Just giving him a hard time (aka sarcasm and correction all-in-one).
I know and also i was thinking that he kinda make joke or something, so i maded it back.
.Dare Devil. is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-24-2012 , 19:17   Re: Scoreboard question
Reply With Quote #8

This entire thread makes my head explode.

Anyway....what is it you want to do on scoreboard update that's not good enough on client_dis/connectt?
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 09-24-2012 , 19:22   Re: Scoreboard question
Reply With Quote #9

Quote:
Originally Posted by Liverwiz View Post
This entire thread makes my head explode.

Anyway....what is it you want to do on scoreboard update that's not good enough on client_dis/connectt?
function what handle scrorebar, like c++ function and to call or patch it by Orpheu.
But can this Orpheu hide players somehow, like delete them but they still are in server and player entities can still see?

Last edited by .Dare Devil.; 09-24-2012 at 19:26. Reason: Orpheu
.Dare Devil. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-24-2012 , 20:32   Re: Scoreboard question
Reply With Quote #10

Quote:
Originally Posted by .Dare Devil. View Post
function what handle scrorebar, like c++ function and to call or patch it by Orpheu.
But can this Orpheu hide players somehow, like delete them but they still are in server and player entities can still see?
I thought this thread wasn't about your thread . . .
__________________
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 05:42.


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