Thread: [ALL] Request !
View Single Post
Author Message
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen.
Old 07-06-2013 , 03:29   [ALL] Request !
Reply With Quote #1

A newer, better version of this is available here :
https://github.com/Hackmastr/sm-requests/


Description :

Yup, it's again a small plugin. I think its can be helpfull because player can do request / report about what they want ! All request (or call it what you want) is stored into request.txt file who is stored under sourcemod/configs/request.txt .

This plugin use some code from "playerreport"

and use the include "morecolors"

Command and Cvar


You can use /request, /ask, /feedback or /rq to request/ask something by default (see cvr for more infos).

Cvar :

sm_time_before_request 30

This set after how much time a player can do a nother request.

sm_request_message "Do you want give us a feed back about our server ? Type /request !"

Text of advertisement, should begin with " and end with a nother "

sm_request_message_delay 45

This one set after how much sec the advertisment should be displayed. NOTE: set value to 0 for NOT displaying any advertisement about this plugin.

sm_custom_command "feedback,request,ask,rq"

What should be the command for the plugin ?


sm_save_path "configs/request.txt"

Save path of the log file, BASED ON THE SOURCEMOD FOLDER !

sm_use_database "1"

Set if the plugin should save request in database or in a text file. Take effect only on map restart !

Installation

remove (if exist) request.cfg in your cfg/sourcemod folder.
1) Put the request.smx file in your addons/sourcemod/plugin folder.
2) Restart server, reload map or refresh plugin folder.

Check the automatically created file request.cfg in your cfg/sourcemod folder !

OPTIONAL
Also, if you have set sm_use_database to "1" then you will have to confiure a database in your database.cfg.
Add this to your database.cfg
Code:
"Request"
	{
		"driver"			"default"
		"host"				"DATABASE SERVER IP"
		"database"			"DATABASE NAME"
		"user"				"DATABASE USER"
		"pass"				"DATABASE USER PASSWORD"
	}
Not extra configuration. (NOTE: request wont be saved in a txt file anymore !)

To do


Status : DONE!
Quote:
Adding a advertisement message configurable via Cvar
Status : DONE!
Quote:
Add a new trigger. See code if you need to change one manually.
Bugs


Status : FIXED!
Quote:
Originally Posted by Marverlous View Post
sm_request_message_delay doesnt work! ;~;
Attached Files
File Type: sp Get Plugin or Get Source (request.sp - 461 views - 6.0 KB)
File Type: smx request.smx (13.3 KB, 468 views)
__________________
Want to check my plugins ?

Last edited by Arkarr; 10-19-2019 at 07:56. Reason: Fixed my grammar :|.
Arkarr is offline