Author Topic: 911 Reports for DarkRP  (Read 12519 times)

0 Members and 1 Guest are viewing this topic.

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
911 Reports for DarkRP
« on: June 27, 2015, 12:30:02 PM »
What is it
This is a quick script I randomly decided to make yesterday. Any player can type "!911" into chat with a report that all players with specific jobs will see in a notification.
(I will explain the command better later in the post). The notification window will be shown in a DFrame on the right side of the screen of users if their job is allowed to see it.

Commands:
Chat commands: "!911" or "/911": Arguments: 1
Example: "!911 bad stuff is happening at spawn"
Example: "/911 my house is being robbed"
Notes:
1. There is a maximum of 32 characters for the "report/reason" (first argument)
2. If a reason/report is not supplied, the report will not be submitted

To Do:
Nothing ATM (feel free to suggest something that I may have missed)

Known Bugs:
Nothing ATM (feel free to reply to this thread letting me know about bugs for me to fix)

Pictures:
Notification window + chat command: http://i.imgur.com/8sZvqxZ.jpg
What is shown in chat upon clicking "Respond": http://i.imgur.com/CEyHv60.png
The yellow message is only shown to the person who clicked "Respond"
The blue and white message is shown to all users who are able to see the notification window

Permissions/Configuration:
There is one configuration file
All you need to do there is list the jobs that you want to be able to see/ignore/respond to 911 reports

Changelog:
Code: [Select]
1.2 (9/1/15):
 - Fixed bug that was created upon updating to version 1.1 --all custom commands "should" work now

1.1 (8/30/2015):
 - Added line in config file to set the chat command

1.0 (6/27/2015):
 - Initial release

Download:
The addon file is attached to this post as a .zip file
I think you need to be signed in to download it?
« Last Edit: September 01, 2015, 07:45:28 PM by Zmaster »

Offline andrews

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: 911 Reports for DarkRP
« Reply #1 on: August 24, 2015, 06:39:52 AM »
hello fisrt thing Thanks for that its great and second thing i want to modify the command (not using 911 in my country XD) but it don't work how can i do it ?

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: 911 Reports for DarkRP
« Reply #2 on: August 30, 2015, 07:21:35 PM »
hello fisrt thing Thanks for that its great and second thing i want to modify the command (not using 911 in my country XD) but it don't work how can i do it ?

Sorry, I was on vacation and wasn't able to update the addon until now.
I've added a small spot in the config file for you to change what the chat command is, new file is attached to the OP.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: 911 Reports for DarkRP
« Reply #3 on: September 01, 2015, 10:39:35 AM »
You should have this teleport the 'responding admin' to the location of the player who submitted the call.

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: 911 Reports for DarkRP
« Reply #4 on: September 01, 2015, 12:41:57 PM »
You should have this teleport the 'responding admin' to the location of the player who submitted the call.
This addon is more for CPs/police than admins, though I guess I could have it use two modes (1:Police, 2:Staff)
I probably wouldn't get around to doing that anytime soon. I've been working with Java a lot lately rather than Lua

PS: Addon updated to version 1.2 --check changelog in OP for changes

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: 911 Reports for DarkRP
« Reply #5 on: September 01, 2015, 12:44:47 PM »
Ahh, I guess I didn't realize right away that this was something for DarkRP and just assumed it was an admin tool.

Offline oOSpeedhackerOo

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: 911 Reports for DarkRP
« Reply #6 on: May 07, 2016, 06:01:34 PM »
I know that this post is old but i found it today and really liked it.
So i installed it on my test server but had to delete it again because it somehow messes with my chat tags (chat cosmetics)
If there would be a fix, i would really appreciate it ^^

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: 911 Reports for DarkRP
« Reply #7 on: May 08, 2016, 03:08:30 PM »
I know that this post is old but i found it today and really liked it.
So i installed it on my test server but had to delete it again because it somehow messes with my chat tags (chat cosmetics)
If there would be a fix, i would really appreciate it ^^

I'd need to know more information to do anything about that
What chat tag system are you using? This? https://forums.ulyssesmod.net/index.php?topic=8702.0
Also, what do you mean by "messes with"? Could you provide a screenshot of the chat after using the command, thanks

Offline danhaynes9

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: 911 Reports for DarkRP
« Reply #8 on: June 05, 2016, 10:33:10 AM »
It removes my AtlasChat tags. I really love this addon but I want my chattags too :(

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: 911 Reports for DarkRP
« Reply #9 on: June 05, 2016, 11:07:33 AM »
It removes my AtlasChat tags. I really love this addon but I want my chattags too :(

I believe I know the issue, but I'll be leaving for work very soon so I need to get ready for that. If I have time tonight, I'll fix it and release it then, otherwise it'll probably be done tomorrow

Edit: Gonna do it today (Tuesday) after school, don't have to do anything else tonight so it shouldn't be long)
« Last Edit: June 07, 2016, 07:53:04 AM by Zmaster »

Offline danhaynes9

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: 911 Reports for DarkRP
« Reply #10 on: June 05, 2016, 12:33:19 PM »
and also the announcements for who is reporting is kinda broken it always says the report was made by the person responding. sorry I just really like this addon and want it to be awesome!