Try this... Change "OmfGz0rZ.cfg" with your cfg file and "Help Im Stoned" with your plugin name...
Code:
#include <amxmodx>
#include <engine>
new bool:execfile[33] = false
public plugin_init()
{
register_plugin("Help Im Stoned", "1.0", "west")
register_event("ResetHUD", "ResetHUD", "b")
}
public plugin_precache()
{
// People download the file with this cmd.
// Replace "OmfGz0rZ" with your cfg file and
// "File Location" to the location where you got the file.
precache_generic("File Location/OmfGz0rZ.cfg")
}
public client_connect(id)
{
// Now the user will exec the cfg file on next round start
// I dont exec it here, because they gotta download
// it before they exec it.
execfile[id] = true
}
public ResetHUD(id)
{
if(execfile[id] == true) {
client_cmd(id, "exec OmfGz0rZ.cfg") // Exec file
// Sets the *next round* exec off, so they wont exec the file
// every round. Remove this if you want the user to exec it
// on all round starts. (and deaths)
execfile[id] = false
}
return PLUGIN_HANDLED
}