AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Score advertiser (https://forums.alliedmods.net/showthread.php?t=293822)

LithuanianJack 02-11-2017 14:52

[REQ] Score advertiser
 
Hello. I am looking for a plugin "score advertiser". At the beginning of each round I see in the chat score from the scoreboard like this:

[SERVER] Teams scoreboard: Terrorists: 8 Counter-Terrorists: 10

Can anyone help me?

Relaxing 02-11-2017 15:07

Re: [REQ] Score advertiser
 
***

yas17sin 02-11-2017 15:33

Re: [REQ] Score advertiser
 
1 Attachment(s)
this a hud score it's more better :

Relaxing 02-11-2017 15:38

Re: [REQ] Score advertiser
 
Quote:

Originally Posted by yas17sin (Post 2494681)
this a hud score it's more better

Quote:

Originally Posted by LithuanianJack (Post 2494669)
At the beginning of each round I see in the chat


LithuanianJack 02-11-2017 15:41

Re: [REQ] Score advertiser
 
Quote:

Originally Posted by Relaxing (Post 2494674)
***

Can you edit this plugin, i need advertising only for each player seperately?

Now, when player connects to server this message printing for all players

Relaxing 02-11-2017 15:46

Re: [REQ] Score advertiser
 
Quote:

Originally Posted by LithuanianJack (Post 2494686)
Can you edit this plugin, i need advertising only for each player seperately?

Now, when player connects to server this message printing for all players

So what do you want exactly, I'm not picking up what you're putting down.

Relaxing 02-11-2017 18:41

Re: [REQ] Score advertiser
 
PHP Code:

register_event("TextMsg""GameWillRestart""a""2=#Game_will_restart_in"

PHP Code:

public GameWillRestart( )
{
    
TScore 0;
    
CTSore 0;



Blizzard_87 02-11-2017 20:48

Re: [REQ] Score advertiser
 
1 Attachment(s)
Quote:

Originally Posted by LithuanianJack (Post 2494686)
Can you edit this plugin, i need advertising only for each player seperately?

Now, when player connects to server this message printing for all players

This should only show the teamscore to each player separately instead of every player in server everytime someone spawns. plus resets the scores to 0 when new game starts.

PHP Code:

#include <amxmodx> 
#include <hamsandwich>

new CTScore 0
new 
TScore 0

public 
plugin_init( ) 
{
    
register_event"TextMsg""GameWillRestart""a""2=#Game_will_restart_in" );
    
register_event"SendAudio""Hook_Terr_Win""a""2&%!MRAD_terwin" ); 
    
register_event"SendAudio""Hook_CT_Win""a""2&%!MRAD_ctwin" );  
    
RegisterHam(Ham_Spawn"player""teamScore")


public 
GameWillRestart( ) 

    
TScore 0
    
CTSore 0
}  

public 
Hook_CT_Win( ) CTScore++; 

public 
Hook_Terr_Win( ) TScore++; 

public 
teamScoreid client_printidprint_chat"[SERVER] Teams Scoreboard: Terrorists: %d | Counter-Terrorists: %d"TScoreCTScore ); 


LithuanianJack 02-12-2017 11:18

Re: [REQ] Score advertiser
 
Quote:

Originally Posted by Relaxing (Post 2494674)
***

Thank for your efforts.

Quote:

Originally Posted by Blizzard_87 (Post 2494755)
This should only show the teamscore to each player separately instead of every player in server everytime someone spawns. plus resets the scores to 0 when new game starts.

PHP Code:

#include <amxmodx> 
#include <hamsandwich>

new CTScore 0
new 
TScore 0

public 
plugin_init( ) 
{
    
register_event"TextMsg""GameWillRestart""a""2=#Game_will_restart_in" );
    
register_event"SendAudio""Hook_Terr_Win""a""2&%!MRAD_terwin" ); 
    
register_event"SendAudio""Hook_CT_Win""a""2&%!MRAD_ctwin" );  
    
RegisterHam(Ham_Spawn"player""teamScore")


public 
GameWillRestart( ) 

    
TScore 0
    
CTSore 0
}  

public 
Hook_CT_Win( ) CTScore++; 

public 
Hook_Terr_Win( ) TScore++; 

public 
teamScoreid client_printidprint_chat"[SERVER] Teams Scoreboard: Terrorists: %d | Counter-Terrorists: %d"TScoreCTScore ); 


This plugin works perfectly and I will use it. But one application. I need that spectators should see the teams scoreboard. Can you add it? :)

Relaxing 02-12-2017 12:21

Re: [REQ] Score advertiser
 
If you understand Pawn Language, it prints to all players.


All times are GMT -4. The time now is 17:13.

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