Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Centering a nickname? (https://forums.graalonline.com/forums/showthread.php?t=134260040)

devilsknite1 08-02-2010 04:40 AM

Centering a nickname?
 
So I was wondering (no matter the length) how I would go about setting a custom nick name right below the player, like the default one would. It's through a gani, btw

PHP Code:

SCRIPT
function onPlayerEnters() onTimeOut();
function 
onCreated() onTimeOut();
function 
onTimeOut() {
  if ( 
player.level.name != NULL ) {
    
showText300player.xplayer.3"verdana""b"player.nick );
    
changeImgZoom3000.6 );
    
changeImgColors300player.clientr.( @ "namecolor_colors" )[ ], player.clientr.( @ "namecolor_colors" )[ ], player.clientr.( @ "namecolor_colors" )[ ], );
  } else {
    
hideImg300 );
  }
  
setTimer0.05 );
}
SCRIPTEND 


Tigairius 08-02-2010 04:42 AM

PHP Code:

showText300player.xplayer.3"verdana""bc"player.nick ); 


devilsknite1 08-02-2010 04:45 AM

Oh wow.... I'm an idiot. >.>

well of course it would be
PHP Code:

showText300player.1.5player.3"verdana""bc"player.nick ); 

There... Do I not look as retarded now? :D

Mark Sir Link 08-02-2010 06:39 AM

Replace the font with defaultfontname imo

LoneAngelIbesu 08-02-2010 07:29 AM

Quote:

Originally Posted by Mark Sir Link (Post 1590949)
Replace the font with defaultfontname imo

Some servers have a specific look they want to convey.

Mark Sir Link 08-02-2010 07:54 AM

Quote:

Originally Posted by LoneAngelIbesu (Post 1590959)
Some servers have a specific look they want to convey.

and some players like to pick a font that makes things easier for them to read. I can understand using a different font elsewhere but for nicks and chat, why limit the player?

cbk1994 08-02-2010 12:00 PM

Quote:

Originally Posted by Mark Sir Link (Post 1590962)
and some players like to pick a font that makes things easier for them to read. I can understand using a different font elsewhere but for nicks and chat, why limit the player?

That's up to the server to decide. I don't see any reason to throw a blanket over the entire concept of changing fonts until you've seen it ^^.


All times are GMT +2. The time now is 08:44 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.