Raised This Month: $ Target: $400
 0% 

Score


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 07-28-2013 , 07:37   Score
Reply With Quote #1

I tried it with bots, but it only shows "Counter-Strike 0 0". How to get every player's id? I try to make custom Tabscore.

EDIT:
I've changed my code to be like this:
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <acg>
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "DavidJr"

new line[8][32]
static 
name[8][32]

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /sb""score")
}
public 
client_PreThink(id)
{
    new 
frag get_user_frags(id)    
    new 
death get_user_deaths(id)
    
    
get_user_name(idname[0], 31)
    
get_user_name(idname[1], 31)
    
get_user_name(idname[2], 31)
    
get_user_name(idname[3], 31)
    
get_user_name(idname[4], 31)
    
get_user_name(idname[5], 31)
    
get_user_name(idname[6], 31)
    
get_user_name(idname[7], 31)
    
    
    
formatex(line[0], 31"%s %i %i"name[0], fragdeath)
    
formatex(line[1], 31"%s %i %i"name[1], fragdeath)
    
formatex(line[2], 31"%s %i %i"name[2], fragdeath)
    
formatex(line[3], 31"%s %i %i"name[3], fragdeath)
    
formatex(line[4], 31"%s %i %i"name[4], fragdeath)
    
formatex(line[5], 31"%s %i %i"name[5], fragdeath)
    
formatex(line[6], 31"%s %i %i"name[6], fragdeath)
    
formatex(line[7], 31"%s %i %i"name[7], fragdeath)
}  
public 
score(id)
{
    
    
acg_drawtext(id0.10.1line[0], 2552552552550.00.00.01TS_NONE001)
    
acg_drawtext(id0.10.2line[1], 2552552552550.00.00.01TS_NONE002)
    
acg_drawtext(id0.10.3line[2], 2552552552550.00.00.01TS_NONE003)
    
acg_drawtext(id0.10.4line[3], 2552552552550.00.00.01TS_NONE004)
    
acg_drawtext(id0.10.5line[4], 2552552552550.00.00.01TS_NONE005)
    
acg_drawtext(id0.10.6line[5], 2552552552550.00.00.01TS_NONE006)
    
acg_drawtext(id0.10.7line[6], 2552552552550.00.00.01TS_NONE007)
    
acg_drawtext(id0.10.8line[7], 2552552552550.00.00.01TS_NONE008)

It shows correctly, but all the hud names are same. Just like this:
RendyJr 10 0
RendyJr 10 0
RendyJr 10 0
RendyJr 10 0
RendyJr 10 0
RendyJr 10 0
RendyJr 10 0
RendyJr 10 0

if I typed /sb again, it shows different name kills and death but same like above

Last edited by Randomize; 07-28-2013 at 09:45.
Randomize 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 15:51.


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