Raised This Month: $ Target: $400
 0% 

Help Scoreboard Teamdeathmatch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bluelytning
Junior Member
Join Date: Oct 2010
Old 09-09-2012 , 10:06   Help Scoreboard Teamdeathmatch
Reply With Quote #1

how? to make this teamdeatchmatch scoreboard with spr sorry for asking again im a newbie im just learning script code im self study this is my start pls... help!!! like this http://i365.photobucket.com/albums/o...scoreboard.jpg


this is sample of normal scoreboard how to make a team deathmatch with spr?

PHP Code:
#include <amxmodx>
#include <cstrike>

#include <metahook>

new g_score_tg_score_ct

public plugin_init()
{
    
register_event("TeamScore""team_score""a")
    
set_task(1.0"show_score"___"b")
}
public 
team_score()
{
    new 
team[32]
    
read_data(1team31)
    if (
equal(team"CT"))
    {
        
g_score_ct read_data(2)
    }
    else if (
equal(team"TERRORIST"))
    {
        
g_score_t read_data(2)
    }
}
public 
show_score()
{
    for (new 
id 1id <= get_maxplayers();id++)
    {
        if (!
is_user_connected(id) || is_user_bot(id) || !MH_IsMetaHookPlayer(id)) continue;
        
        
        
MH_DrawScoreBoard(id"ScoreboardNomarl"g_score_tg_score_t+g_score_ctg_score_ctGetTotalPlayer(1), GetTotalPlayer(2), 1)
    }
}
GetTotalPlayer(team)
{
    static 
totalid
    total 
0
    
    
for (id 1id <= get_maxplayers(); id++)
    {
        if (
is_user_alive(id))
        {
            if (
            
team == && cs_get_user_team(id) == CS_TEAM_T ||
            
team == && cs_get_user_team(id) == CS_TEAM_CTtotal++
        }
    }
    
    return 
total;

bluelytning 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 08:22.


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