View Single Post
Plugin Info:     Modification:          Category:         
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-29-2015 , 10:15   Automatic Command Executor
Reply With Quote #1


< Automatic Command Executor >

This plugin allows you to add specific commands in a .ini file. The commands will be used on the player that you choose when he joins the server. This is useful when organizing tournaments in which the winner gets a specific reward that need to be given to him when he is in the server, for example deathrun points. Not all plugins use additional files for these kind of stuff, so instead of waiting for the player to join the server and an administrator to be online, simply add the player's name, SteamID or IP address and the command in the .ini file. The plugin can also be used as a server protection against particular players.

How to add a command through the .ini file:

In order to add a command, you need to enter the following information in configs/AutoCommandExec.ini:

PHP Code:
"type=name/steam/ip" "player's name/SteamID/IP" "command" "repeat (yes/no)" "message (optional)" 
In the command field you can add %info% to use the player's ID, and in the command field you can use %name% for the player's name and %prefix% for the plugin's prefix. You can also use different colors:

Quote:
!n = default (usually yellow)
!t = team color
!g = green
Examples:

PHP Code:
"name" "OciXCrom" "deathrun_give_points %info% 100" "no" "%prefix% Player !g%name% !nreceived !t300 DRPoints !nfor winning the !gTOURNAMENT"
"steam" "STEAM_0:0:123456789" "kick %info%" "yes"
"ip" "12.34.56.78" "echo He entered the server!" "no" "Player !g%name% !nhas joined the game." 
Bear in mind that any changes to the .ini file will take effect after the map changes. If you want them to take effect right away, use the "Reload .ini file" option in the main menu.

Plugin's main menu:

You can open up the plugin's main menu by typing autocommandexec in the console (requires RCON flag by default). The menu looks like this:


  • Add new entry: with this option you can add an entry directly into the .ini file
  • View all entries: this will show all active entries in the .ini file
  • Reload .ini file: use this option if you want to reload the .ini file (in case you edited it and want the changes to take effect right away)

Cvar list:
  • autocommand_time <default: "3.0"> -- The time that is needed for the command to be executed after the player has joined the server.

Images:














Last edited by OciXCrom; 07-17-2018 at 09:03. Reason: Version 2.0: Full update.
OciXCrom is offline
Send a message via Skype™ to OciXCrom