Raised This Month: $ Target: $400
 0% 

[REQ] Score advertiser


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 02-11-2017 , 20:48   Re: [REQ] Score advertiser
Reply With Quote #8

Quote:
Originally Posted by LithuanianJack View Post
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 ); 
Attached Files
File Type: sma Get Plugin or Get Source (scoreadvertiser.sma - 129 views - 688 Bytes)
__________________

Last edited by Blizzard_87; 02-11-2017 at 20:53.
Blizzard_87 is offline
 


Thread Tools
Display Modes

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:14.


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