Skip to content

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

@vs98-dev

Description

@vs98-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions