Raised This Month: $51 Target: $400
 12% 

Dynamic MOTD v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Zenith77
Veteran Member
Join Date: Aug 2005
Old 01-12-2006 , 16:41  
Reply With Quote #11

Quote:
Originally Posted by Charr
I think #pragma dynamic 32768 can extend a motd's size, so if you wanted to add other stuff in it.
No, I belive all that does is allocate 32768 bytes of memory for your plugin .

And you cant extend the motd size anyway, its hardcoded into hl, or other mods......
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 01-12-2006 , 17:31  
Reply With Quote #12

One time I coundn't get about 20 lines, but after #pragma I was able to get over 50 lines
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 01-12-2006 , 18:37  
Reply With Quote #13

Quote:
Originally Posted by Zenith77
No, I belive all that does is allocate 32768 bytes of memory for your plugin .

And you cant extend the motd size anyway, its hardcoded into hl, or other mods......
as far as i know there is no motd size limit coded into amxx or hl, it's related to pawn. allocating more memory lets the string that you show be nearly as large as it wants, so that all of the data is sent to amxx (and in turn to hl) when the time comes.
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 01-13-2006 , 15:26  
Reply With Quote #14

Quote:
Originally Posted by Kraugh
Quote:
Originally Posted by Zenith77
No, I belive all that does is allocate 32768 bytes of memory for your plugin .

And you cant extend the motd size anyway, its hardcoded into hl, or other mods......
as far as i know there is no motd size limit coded into amxx or hl, it's related to pawn. allocating more memory lets the string that you show be nearly as large as it wants, so that all of the data is sent to amxx (and in turn to hl) when the time comes.
it is, its around 1600 when send via the the hl1 engine. This is why you should send a url instead. For this reason and the fact that this plugin is not realy simple to configure i conclude that this plugin is realy something thats more usefull to creator then the public. Anything think this plugin is usefull ?
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-13-2006 , 17:21  
Reply With Quote #15

I don't see how it's useless. It simply tells you how many hits you've had, and for idiots that don't know HTML it also gives them a MOTD.

BTW EKS, it modifies the motd.txt each time someone joins, and shows the amount of hits the server has had.

Looks sorta like this:

Code:
Welcome to <hostname>!

You are our <hits> visitor!
I plan on extending this, so even if you don't plan on approving it, at least don't trash it.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 01-13-2006 , 18:13  
Reply With Quote #16

eks, i took a look at the source code for both hl and amxx and can find no where a cap, it simply gets the length of the string, whatever it may be, and sends it using that as the length.

the only cap would be from the data type.
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 01-14-2006 , 20:16  
Reply With Quote #17

Quote:
Originally Posted by Kraugh
eks, i took a look at the source code for both hl and amxx and can find no where a cap, it simply gets the length of the string, whatever it may be, and sends it using that as the length.

the only cap would be from the data type.
There is a hardcoded limit, around 16xx bytes. Thats why you should send a url link instead ( then there is no limit, as the link gets rendered by IE or some other browser.
If you care to find the exact number, look in the runemod source code. I think i have a define for it there.

I approved the plugin since you gonna expand the plugin atm, its kind of useless i think at least. But others may like it
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-22-2006 , 14:44  
Reply With Quote #18

Updated to 1.1. Read first page for details.

I plan on extended this. I just rushed out a quick fix before I went into total studying for exams
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-25-2006 , 12:59  
Reply With Quote #19

Suggestions:

Adding:
<playerrank>
<bestplayer>
<playerkills>
<playerdeaths>
<playerhss>
<timesincelastvisit> (may short this down)
<playersonline>
<adminsonline>

playerrank - Your place in the rank list
bestplayer - The 1:st player in top15/rank
playerkills - Your kills in total
playerdeaths - Your deths in total
playerhss - Your HS's in total
timesincelastvisit - Time since last visit
playersonline - How many online/playing
adminsonline - How many admins online/playing


Just a brainstorm!
Allso adding all the stats for the player (shots, accuracy etc.) would be nice.

Nice plugin
__________________
Sig(h)!
Obbin is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 09-30-2006 , 10:53   Re: Dynamic MOTD v1.1
Reply With Quote #20

this just doesnt write player count...
anybody knows why?
Voi 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 20:28.


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