Jump to content

Clanwar script (SOLVED)


Recommended Posts

Hey, I'm doing a clanwar script, and it has bad letters (thick ones), I'd like normal letters at the cwboard. Look at the picture below.

http://tinypic.com/r/2wpupmp/8

How can I make more thin and more readable letters? those unlcear to read. What command should I use? The letters are very right on the picture where it says 'awdawd' and 'Others'

Thanks!

Edited by Guest
Link to comment

dxDrawText ( hexColorHome..homeName..":"..displayHome, (screenWidth/2)+600, screenHeight-390, screenWidth, screenHeight, tocolor ( 255, 102, 1, 255 ), 1.1, "default-bold" , nil, nil, nil, nil, nil, true)

dxDrawText ( hexColorVisit..visitName..":"..displayVisit, (screenWidth/2)+600, screenHeight-370, screenWidth, screenHeight, tocolor ( 255, 0, 0, 255 ), 1.1, "default-bold", nil, nil, nil, nil, nil, true )

This is what I found, what should I edit here to get a clear text to read?

Thanks, I appreciate your help! :)

Link to comment

dxDrawText ( hexColorHome..homeName..":"..displayHome, (screenWidth/2)+600, screenHeight-390, screenWidth, screenHeight, tocolor ( 255, 102, 1, 255 ), 1.1, "default-bold" , nil, nil, nil, nil, nil, true)

These 2 bolded arguments are the ones you shall edit to get the result you want. Changing the scale to 1.0 and the font to default might help.

Try this:

dxDrawText ( hexColorHome..homeName..":"..displayHome, (screenWidth/2)+600, screenHeight-390, screenWidth, screenHeight, tocolor ( 255, 102, 1, 255 ), 1.0, "default" , nil, nil, nil, nil, nil, true) 
  
dxDrawText ( hexColorVisit..visitName..":"..displayVisit, (screenWidth/2)+600, screenHeight-370, screenWidth, screenHeight, tocolor ( 255, 0, 0, 255 ), 1.0, "default", nil, nil, nil, nil, nil, true ) 

Link to comment

That went very well!

A new bug discovered: I have the resolution 1366x768x32. And the display is not showing on other players screen (they have resolution 1024 and something more. How can I make it show for everyone? no matter what resolution? is there a way to do that? would be great.

I have already done the local screenWidth, screenHeight = guiGetScreenSize ( ) command, but it doesn't help.

Thanks

Link to comment

You can use try to position it relative to the resolution:

local screenWidth, screenHeight = guiGetScreenSize() 
local relativeWidth, relativeHeight = screenWidth / 1366, screenHeight / 768 
  
dxDrawText ( hexColorHome..homeName..":"..displayHome, relativeWidth * 1283, relativeHeight * 378, screenWidth, screenHeight, tocolor ( 255, 102, 1, 255 ), relativeWidth * 1.0, "default" , nil, nil, nil, nil, nil, true) 
  
dxDrawText ( hexColorVisit..visitName..":"..displayVisit, relativeWidth * 1283, relativeHeight * 398, screenWidth, screenHeight, tocolor ( 255, 0, 0, 255 ), relativeWidth * 1.0, "default", nil, nil, nil, nil, nil, true ) 

Link to comment

Okay, I tried that. I have to wait for people to test it now.

Do you know any way to make the script save the teamname and points?

ForExample: If EG// had 8 points and a yellow team color, and if I do /reconnect when the team has those points. Then when I'm joining, it's 0 points and the team color is back to normal.

How to make them save the current points & team color? :S

Thanks

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...