BANNED
Join Date: May 2012
Location: in your heart
|
07-29-2013
, 06:41
Re: Score
|
#15
|
I change the code to be like this:
Your code:
PHP Code:
for ( new i = 0 ; i < iPlayersnum ; i++ ) { get_user_name(iPlayers[i], name, 31) if (get_user_team(iPlayers[i]) == 1) //set the score for T at the left { formatex(line, 31, "%s %i %i", name, get_user_frags(iPlayers[i]), get_user_deaths(iPlayers[i])) acg_drawtext(id, 0.25, 0.3, line, 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 1) } else if (get_user_team(iPlayers[i]) == 2) //set the score fore CT at the right { formatex(line, 31, "%s %i %i", name, get_user_frags(iPlayers[i]), get_user_deaths(iPlayers[i])) acg_drawtext(id, 0.65, 0.3, line, 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 1) } }
But what I want is like this
PHP Code:
if (get_user_team(iPlayers[i]) == 1) //set the score for T at the left { acg_drawtga(id, "gfx/hud/tabscore.tga", 255, 255, 255, 255, 0.5, 0.5, 1, FX_NONE, 0.0, 0.0, 0.0, 0.0, 0, 0, 1) acg_drawtext(id, 0.25, 0.3, line[0], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 1) acg_drawtext(id, 0.25, 0.3325, line[1], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 2) acg_drawtext(id, 0.25, 0.365, line[2], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 3) acg_drawtext(id, 0.25, 0.3975, line[3], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 4) acg_drawtext(id, 0.25, 0.43, line[4], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 5) acg_drawtext(id, 0.25, 0.4625, line[5], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 6) acg_drawtext(id, 0.25, 0.495, line[6], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 7) acg_drawtext(id, 0.25, 0.5275, line[7], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 8) else if (get_user_team(iPlayers[i]) == 2) //set the score fore CT at the right { acg_drawtext(id, 0.65, 0.3, line[0], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 9) acg_drawtext(id, 0.65, 0.3325, line[1], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 10) acg_drawtext(id, 0.65, 0.365, line[2], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 11) acg_drawtext(id, 0.65, 0.3975, line[3], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 12) acg_drawtext(id, 0.65, 0.43, line[4], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 13) acg_drawtext(id, 0.65, 0.4625, line[5], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 14) acg_drawtext(id, 0.65, 0.495, line[6], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 15) acg_drawtext(id, 0.65, 0.5275, line[7], 255, 255, 255, 255, 0.0, 0.0, 0.0, 1, TS_NONE, 0, 0, 16) }
EDIT: Here is the screenshoot
Your code:
[IMG]http://**************/photo/my-images/821/cdke.jpg/[/IMG]http://**************/photo/my-images/821/cdke.jpg/
Mine and what I want:
http://**************/photo/my-images/809/z6z2.jpg/
[IMG]http://**************/photo/my-images/809/z6z2.jpg/[/IMG]
Last edited by Randomize; 07-29-2013 at 06:46.
|
|