AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hns motd Text (https://forums.alliedmods.net/showthread.php?t=189835)

mattiiias93 07-11-2012 13:28

Hns motd Text
 
How to get bigger text in this? Thanks :D


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
}

Napoleon_be 07-11-2012 17:56

Re: Hns motd Text
 
I don't know anything about php, but you can set the font size bigger using php programming language.

Exolent[jNr] 07-11-2012 18:02

Re: Hns motd Text
 
Quote:

Originally Posted by Napoleon_be (Post 1748328)
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.

<VeCo> 07-12-2012 07:08

Re: Hns motd Text
 
PHP Code:

len format(motd1023,"<body bgcolor=#00>C><font color=#FF000 size=12pt><pre>"

/Change the size from "12pt".

mattiiias93 07-12-2012 09:46

Re: Hns motd Text
 
Thanks veco, really nice! :D Maybe you can help me with another plugin and change the color?


All times are GMT -4. The time now is 15:04.

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