Raised This Month: $ Target: $400
 0% 

[REQ] Score advertiser


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 02-12-2017 , 11:18   Re: [REQ] Score advertiser
Reply With Quote #9

Quote:
Originally Posted by Relaxing View Post
***
Thank for your efforts.

Quote:
Originally Posted by Blizzard_87 View Post
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?
LithuanianJack is offline
 



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 17:13.


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