[Half-Life AMXX] / autocfg.sma Repository:
ViewVC logotype

View of /autocfg.sma

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Tue Oct 30 09:08:11 2007 UTC (15 years, 3 months ago) by ian
File size: 959 byte(s)
/*
*	AutoCFG v0.1
*	Created by Don Juan-jello
*	http://www.jello-net.com
*	For AMX 0.9.9
*	8/27/2005 4:33:13 PM
*==============================================================================
*	Change Log:
*		Key (+ added | - removed | c changed | f fixed | r refactored)
*		v0.1.1
*			f: Displays correct cfg file name to players.
*			r: Cvar no longer uses .cfg on end of config name.
*/

#include <amxmod>
#include <cstrike2>
public client_putinserver(id){
	if(!is_user_bot(id)){
		new ida[1]
		ida[0]=id
		set_task(2.0,"execcfg",0,ida,1)
	}
	return PLUGIN_CONTINUE
}
public execcfg(ida[1]){
	new cfg[16]
	get_cvar_string("mp_autocfg",cfg,15)
	if(strlen(cfg)){
		client_cmd(ida[0],"exec %s.cfg",cfg)
		new msg[50]
		format(msg,49,"^x04Now loading your %s.cfg if present.",cfg)
		saytext(ida[0],ida[0],msg)
	}
}
public plugin_init(){
	register_plugin("AutoCFG","0.1.1","Don Juan-jello")
	register_cvar("mp_autocfg","")
}

Contact
ViewVC Help
Powered by ViewVC 1.0.4