Skepmeister Posted January 27, 2020 Share Posted January 27, 2020 Hi, Looking to ban shotguns on Sunday. Looks like procrulz doesn't have a date option with the day listed. InsaneLimits has a date option that gives a date as, Sunday December 25, 2011. Can you please give help to use that day from date variable to ban shotguns on Sunday. Link to comment
Plugin Developer maxdralle Posted January 27, 2020 Plugin Developer Share Posted January 27, 2020 yes, in proconrulz is no command to get the current name of the day. you can change the plugin source to add the cmd or you do it with a fix list of all dates of sundays... On Spawn; ServerFirst; Set %server_day_list% "2020_02_02,2020_02_09,2020_02_26,"; If %server_day_list% contains %ymd%; Set %server_day_sunday% 1 On Kill; If %server_day_sunday% == 1; PlayerSay you triggered the sunday rule... Link to comment
Skepmeister Posted January 28, 2020 Author Share Posted January 28, 2020 On 1/27/2020 at 4:06 PM, maxdralle said: yes, in proconrulz is no command to get the current name of the day. you can change the plugin source to add the cmd or you do it with a fix list of all dates of sundays... On Spawn; ServerFirst; Set %server_day_list% "2020_02_02,2020_02_09,2020_02_26,"; If %server_day_list% contains %ymd%; Set %server_day_sunday% 1 On Kill; If %server_day_sunday% == 1; PlayerSay you triggered the sunday rule... That will work, thank you very much Expand Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.