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

Server Guestbook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Emp` (115)
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 08-23-2006 , 19:10   Server Guestbook
Reply With Quote #1

Server Guestbook
By Mattias "Doombringer" Eriksson

About:
This adds a simple guestbook to your server. It's saved in configs as guestbook.htm(can be changed)

Commands:
gb_write <comment> - write's to guestbook
say /guestbook - Shows the guestbook

Cvars:
GB_enabled(Def: 1) - 0: Plugin is disabled, 1: Plugin is enabled.
GB_waittime(Def: 60) - the time a user have to wait before he can write in the GB again
GB_savepath(Def: "") - if empty: saves to configdir, else to specific path
GB_permission(Def: ADMIN_ALL) - The access a user has to have to write/see the guestbook
GB_filename(Def: guestbook.htm) - The name of the guestbook file[can be anything]
GB_adv_time(Def: 60) - Seconds before an advertising message is made

Notes:
  • I wrote this while i was really tired, there are probaly many bugs
  • First time i had to use so many defines
  • Haven't tested... yet
  • Put the config dir(GB_config.cfg) to configs

Screenshots
1

Changelog
Code:
  • 0.1 Released
  • 0.2 - Added comments to code
  • 0.3 - Some bugfixes(cant remember what they do :P)
  • 0.4 - Added a Searchable cvar
  • 0.5 - Added HTML to Counter-Strike!
  • 0.6 - fixed the HTML part, works perfect now! - changed the default format of the guestbook file to .htm
  • 0.7(pre-final) - new cvar: GB_waittime - this is the time a user have to wait before he can write again - new cvar: GB_savepath - this is were the guestbook file get's saved - new cvar: GB_permission -this is the access a user have to have to write/see the guestbook - new cvar: GB_filename - this is the name of the guestbook - new file: GB_config.cfg - config file(put it to config dir)
  • 0.7a(pre-final) - removed the gb_permission cvar, and replaced it whit a define(as seen in 0.6)
  • 0.7b(pre-final) - added an advertising function, use GB_adv_time to set the time
Because i'm not a HTML scriptkiddy, the HTML code is quite basic. If someone could make up a nice HTML code for me, it would be nice!
Attached Files
File Type: sma Get Plugin or Get Source (server_guestbook.sma - 2749 views - 6.6 KB)
File Type: cfg GB_config.cfg (378 Bytes, 1527 views)

Last edited by Deviance; 04-22-2007 at 18:11. Reason: New version
Deviance is offline
 



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


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