AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Scoreboard question (https://forums.alliedmods.net/showthread.php?t=196694)

Misery 09-24-2012 11:13

Scoreboard question
 
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

Liverwiz 09-24-2012 12:04

Re: Scoreboard question
 
player_connect and player_disconnect i believe.

fysiks 09-24-2012 18:40

Re: Scoreboard question
 
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 (Post 1805317)
player_connect and player_disconnect i believe.

Do those even exist?

Liverwiz 09-24-2012 18:52

Re: Scoreboard question
 
Quote:

Originally Posted by fysiks (Post 1805594)
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

.Dare Devil. 09-24-2012 19:04

Re: Scoreboard question
 
Quote:

Originally Posted by Liverwiz (Post 1805606)
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.

fysiks 09-24-2012 19:05

Re: Scoreboard question
 
Quote:

Originally Posted by .Dare Devil. (Post 1805612)
:), 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).

.Dare Devil. 09-24-2012 19:07

Re: Scoreboard question
 
Quote:

Originally Posted by fysiks (Post 1805613)
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.

Liverwiz 09-24-2012 19:17

Re: Scoreboard question
 
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?

.Dare Devil. 09-24-2012 19:22

Re: Scoreboard question
 
Quote:

Originally Posted by Liverwiz (Post 1805620)
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?

fysiks 09-24-2012 20:32

Re: Scoreboard question
 
Quote:

Originally Posted by .Dare Devil. (Post 1805621)
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 . . .


All times are GMT -4. The time now is 08:19.

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