AlliedModders

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

bluelytning 09-09-2012 10:06

Help Scoreboard Teamdeathmatch
 
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;



gogicaa 09-09-2012 11:28

Re: Help Scoreboard Teamdeathmatch
 
Not possible in CS 1.6.

bluelytning 09-09-2012 11:37

Re: Help Scoreboard Teamdeathmatch
 
yes i know it is possible i read some article using metahook i have metahook but i dont known to make kill death match score & how to adding sprite to make images of score board i need sample sorry im a newbie starting learning script

YamiKaitou 09-09-2012 13:50

Re: Help Scoreboard Teamdeathmatch
 
What's metahook?

bluelytning 09-09-2012 20:13

Re: Help Scoreboard Teamdeathmatch
 
metahook is a module for drawing spr object in the game(like the scoreboard, kill effect, etc)

Infernuz 09-09-2012 21:15

Re: Help Scoreboard Teamdeathmatch
 
You can't without modifying players client files.


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

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