John_Scott Posted January 9, 2013 Posted January 9, 2013 Hi! I find the report resource in my server, after type /report. I want edit this resource, but i don't find the resource's location. Can you help me? Thanks!
xTravax Posted January 9, 2013 Posted January 9, 2013 you need to go in directory[admin]\admin and then idk what correctly file but there u need to find report file in .lua
uhm Posted January 9, 2013 Posted January 9, 2013 Yes, MTA San Andreas 1.3\server\mods\deathmatch\resources\[admin]\admin\client\gui\admin_report.lua -- Line 42: addCommandHandler ( "report", aReport )
John_Scott Posted January 9, 2013 Author Posted January 9, 2013 Yes,MTA San Andreas 1.3\server\mods\deathmatch\resources\[admin]\admin\client\gui\admin_report.lua -- Line 42: addCommandHandler ( "report", aReport ) Thanks!
John_Scott Posted January 9, 2013 Author Posted January 9, 2013 Yes,MTA San Andreas 1.3\server\mods\deathmatch\resources\[admin]\admin\client\gui\admin_report.lua -- Line 42: addCommandHandler ( "report", aReport ) Problem If is edit this file, in the server not amended
uhm Posted January 9, 2013 Posted January 9, 2013 It triggers a server event, check line 1264 of MTA San Andreas 1.3\server\mods\deathmatch\resources\[admin]\admin\server\admin_server.lua -- PM all admins to say a new message has arrived for _, p in ipairs ( getElementsByType ( "player" ) ) do if ( hasObjectPermissionTo ( p, "general.adminpanel" ) ) then outputChatBox( "New Admin message from " .. aReports[id].author .. " (" .. aReports[id].subject .. ")", p, 255, 0, 0 ) end end
John_Scott Posted January 9, 2013 Author Posted January 9, 2013 No not working! The original text remaing adter edit I try edit the admin_report.lua in more location, but not fixed it...
uhm Posted January 9, 2013 Posted January 9, 2013 Are you editing while the server is running? Then type refreshall into the server console window and it'll reload the changed scripts
John_Scott Posted January 9, 2013 Author Posted January 9, 2013 I watch the admin_report.lua file in FTP, and this is the edited version. The server is not give reaction after the /refreshall command.
uhm Posted January 9, 2013 Posted January 9, 2013 Well if it doesn't give a reply, then it means that you're logged in and that it probably executed alright (it does say 'refreshall completed' in console. But is doesn't say anyting in in chat). Try /report again?
John_Scott Posted January 9, 2013 Author Posted January 9, 2013 I type /refreshall to console and afte this i try the /report and it's show the original label texts.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now