help with MOTD and stats
I am creating a plugin that stores the kills you get with the knife in vault and then loads them later then you can type /knife (or something) in chat to bring a MOTD that will display the 15 people with the most knife kills, but I need some help, not sure how to make a MOTD come up in PAWN and not sure how to find their rankings this is what I have so far:
Code:
|
Re: help with MOTD and stats
to bring up a motd.txt file you would do this
Code:
the first param is the player index (id), then the constant file (txt file motd) , then the last paramter is the constant header of the motd file . player is a player index from 1 to 32. message can either be a filename or a string formatted message. With VGUI2, the message can be HTML formatted. You can supply an optional title bar for the window. If not supplied, it will default to the server name. The length of the message should not be more than around 1,200 characters - going over this limit could potentially crash the client. hope this helps :up: <include amxmodx> |
Re: help with MOTD and stats
If you want you can also specify a file hosted on the internet instead of a local one.
The text limit is gone then :) |
Re: help with MOTD and stats
really? do you repalce the const file with a url or what? and is it only txt. files allwoed or others?
|
Re: help with MOTD and stats
For example, my server's Top15:
Code:
|
Re: help with MOTD and stats
really ? wow , thats awsome ! it accepts php too ?? thats sweet . im gonna try that out some time . I needed a way to get a motd. off the internet to display my teams stats for the OGL leauge :up:
|
Re: help with MOTD and stats
How is (in this case) the ouput of a PHP script different then a simple html file.
I don't think you understand that the extention of a file doesn't matter. |
Re: help with MOTD and stats
how about stats? how can I calculate the top 15 people with the highest knife kills and have them be shown on the MOTD?
|
Re: help with MOTD and stats
That sir, is beyond your understanding.
No really. |
Re: help with MOTD and stats
obviously thats why I am asking for explanation or would you Maximus like to confer with me via PM and we could build this together?
|
| All times are GMT -4. The time now is 04:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.