29.04.2012, 19:18
(
Последний раз редактировалось Padarom; 30.04.2012 в 20:50.
)
Hello,
today I introduce you my first ever released filterscript. It's a report system with which you can report players through diverse reasons.
This report will be saved as a file (or in a MySQL-table) and if wished sent to an admin.
Original (german) Thread
The script is quasi dynamic, which means that you can easily change settings in the script without having any knowledge of PAWN.
Therefore the name of the script is dynamic Report.
Further there are 3 file saving methods acceptable.
USED DIALOG-IDs: 100 up to including 107
Download
Pastebin (English version, tried my best to translate everything correct).
Mediafire
Virustotal Scan
ScreenshotsAdmin:I hope my english isn't too bad and you are able to understand it
Regards
Padarom
today I introduce you my first ever released filterscript. It's a report system with which you can report players through diverse reasons.
This report will be saved as a file (or in a MySQL-table) and if wished sent to an admin.
Original (german) Thread
The script is quasi dynamic, which means that you can easily change settings in the script without having any knowledge of PAWN.
Therefore the name of the script is dynamic Report.
Further there are 3 file saving methods acceptable.
- MySQL (Plugin by Strickenkid, included in the download)
- Dini (Include by DracoBlue, included in the download)
- fwrite-functions (doesn't require includes, SA:MP native functions)
- /report - Then follow the dialogs.
- TAB-Menu, click on a player - Then follow the dialogs (can be deactivated if undesired).
- /showtickets, /tickets, /checkreports - As RCON-Admin (or set as PVar in the gamemode) to see all created tickets.
- First you have to decide which way you want to save the reports. Therefore just follow the instructions given in the script and exclude not wanted features.
- If dini/fwrite should be used to save the reports you have to state the path in the scriptfiles-folder and create this folder manually.
- If MySQL is used you have to put in your mysql-connection data. Therefore also follow the instructions.
Код:
CREATE TABLE `reports` ( `id` INT NOT NULL AUTO_INCREMENT , `reporter` VARCHAR( 24 ) NOT NULL , `reported` VARCHAR( 24 ) NOT NULL , `reason` VARCHAR( 24 ) NOT NULL , `description` VARCHAR( 68 ) NOT NULL , `read` INT( 2 ) , `time` VARCHAR( 24 ) NOT NULL , PRIMARY KEY ( `id` ) )
Download
Pastebin (English version, tried my best to translate everything correct).
Mediafire
Virustotal Scan
ScreenshotsAdmin:I hope my english isn't too bad and you are able to understand it
Regards
Padarom