ok, you can use
get_gametime() function to store start_time in client_connect and end_time in client_putinserver, then calculate the difference..
Code:
#include <amxmodx>
new Float:start_time[33]
new Float:end_time[33]
public plugin_init(){
register_plugin("ConnectTime","1.0","KoST")
}
public client_connect(id){
start_time[id]=get_gametime()
return PLUGIN_CONTINUE
}
public client_putinserver(id){
end_time[id]=get_gametime()
new Float:difference=end_time[id]-start_time[id]
if (difference>7.0){
//do kick here
}
return PLUGIN_CONTINUE
}
but you can also disable download from server very easy:
set server-cvar
'sv_allowdownload 0'
__________________