quick question.....
im pretty new to making plugins but not to coding but i was wondering how i would go about reading a text file and displaying it in an MOTD or the console (whatever is easier)
pretty basic plugin just want some tips and natives to get me going thx |
Lol, you don't need to be good at scripting to figure this out. Check out the include files.
|
ok ok here is what i got so far
Code:
#include <amxmodx>de_nuke de_dust2 de_torn de_dust2 de_aztec //Generated by map_nominate plugin, //these are most recent maps played and that is what pops up in the MOTD, would there be any way to get rid of those comments? (the generated by map_nominate) |
/* Shows text in MOTD window. When there is no header, the MOTD title
* will be the name of server. If message is filename, then a contents * of this file will be displayed as MOTD. */ native show_motd(player,const message[],const header[]=""); ex : show_motd(player, "/addons/amxx/your_motd.txt", "Motd title" ) |
ok...got it......is there a way to adjust the font/color of the MOTD? i know it is all in HTML but how owuld i make the backround black and the text red and bold, but still displaying the txt file, is that possible?
|
Taken from the takeadookie plugin :
Code:
|
| All times are GMT -4. The time now is 17:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.