GLOBALELITE.PL GLOBALELITE.pl 83 Napisano 1 Sierpnia 2017 Share Napisano 1 Sierpnia 2017 As the title says, this plugin allows players made reports on players that behave bad, this is my first plugin ever, so mods please check the SP file..How it worksSimple in game chat you type !report the menu with players will pop up, you choose the player and he's steam_id will be stored to your database in column reported, in column reporter you can find steam_id of the player who made reportCreating table to store dataCREATE TABLE `sm_report` ( `id` int(64) NOT NULL AUTO_INCREMENT, `reported` varchar(32) DEFAULT '', `reporter` varchar(32) DEFAULT '', `reason` text, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`)) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;In yourSourcemod/configs/databases.cfgDon't forget to add your credentials "default" { "driver" "default" "host" "localhost" "database" "your_database" "user" "your_login" "pass" "your_password" //"timeout" "0" "port" "3306" } Attached Files Get Plugin or Get Source (mysql_reports.sp - 3.9 KB) mysql_reports.smx (6.0 KB) Pełny artykuł: https://forums.alliedmods.net/showthread.php?t=299993&goto=newpost Odnośnik do odpowiedzi Udostępnij na innych stronach
Rekomendowane odpowiedzi