Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Detect IP have trigger admin command #47

Open
vs98-dev opened this issue Feb 1, 2024 · 0 comments
Open

[Feature Request] Detect IP have trigger admin command #47

vs98-dev opened this issue Feb 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@vs98-dev
Copy link
Contributor

vs98-dev commented Feb 1, 2024

This is a suggestion for NF.

Can we have a event to detect what IP have trigger a rcon command?
This way we can track what admin have send a command or something else done that.

Example

main:
local.admin_event = registerevent "adminrcon" global/admin_check.scr::admin

end

admin local.ip local.command:

for(local.i = 1; local.i <= $player.size;local.i++)
{
local.player = $player[local.i]
     
       if(local.player isAdmin && (getip local.player) == local.ip)
       {
          local.player iprint "I have trigger the command " + local.command + "!"
       }
}
end
@vs98-dev vs98-dev changed the title Detect IP have trigger admin command [Feature Request] Detect IP have trigger admin command Jun 16, 2024
@mohabhassan mohabhassan added the enhancement New feature or request label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants