Raised This Month: $ Target: $400
 0% 

Hns motd Text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mattiiias93
Member
Join Date: Mar 2012
Old 07-11-2012 , 13:28   Hns motd Text
Reply With Quote #1

How to get bigger text in this? Thanks


public show_top15(id)
{
new i, count;
static sort[33][2], maxPlayers;

if(!maxPlayers) maxPlayers = get_maxplayers();

for(i=1;i<=maxPlayers;i++)
{
sort[count][0] = i;
sort[count][1] = TotalPlayedTime[i] + (get_user_time(i, 1) / 60);
count++;
}

SortCustom2D(sort,count,"stats_custom_compare ");

new motd[1024], len

len = format(motd, 1023,"<body bgcolor=#00>C><font color=#FF000><pre>")
len += format(motd[len], 1023-len,"%s %-22.22s %3s^n", "#", "Name", "Time")

new players[32], num
get_players(players, num)

new b = clamp(count,0,15)

new name[32], player

for(new a = 0; a < b; a++)
{
player = sort[a][0]

get_user_name(player, name, 31)
len += format(motd[len], 1023-len,"%d %-22.22s %d^n", a+1, name, sort[a][1])
}

len += format(motd[len], 1023-len,"</body></font></pre>")
show_motd(id, motd, "Played Time Top 15")

return PLUGIN_CONTINUE
}
mattiiias93 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 07-11-2012 , 17:56   Re: Hns motd Text
Reply With Quote #2

I don't know anything about php, but you can set the font size bigger using php programming language.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-11-2012 , 18:02   Re: Hns motd Text
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
I don't know anything about php, but you can set the font size bigger using php programming language.
PHP has nothing to do with font sizes. CSS will modify the font size for you.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 07-12-2012 , 07:08   Re: Hns motd Text
Reply With Quote #4

PHP Code:
len format(motd1023,"<body bgcolor=#00>C><font color=#FF000 size=12pt><pre>"
/Change the size from "12pt".
__________________
<VeCo> is offline
mattiiias93
Member
Join Date: Mar 2012
Old 07-12-2012 , 09:46   Re: Hns motd Text
Reply With Quote #5

Thanks veco, really nice! Maybe you can help me with another plugin and change the color?
mattiiias93 is offline
Reply



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:03.


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