Salut astea sunt urmatoarele pluginuri din addons , nu stiu din ce cauza de kick la spectatori care sa fie problema ?
; Securitate
Krond-Functions.amxx
;// ----- || ----- Base
admin.amxx
cmd.amxx
help.amxx
vote.amxx
chat.amxx
spec_esp.amxx
freelook.amxx
ptb_ro.amxx
;// ----- || ----- Menu
mapsmenu.amxx
pluginmenu.amxx
;connect_menu.amxx
pausecfg.amxx
;// ----- || ----- Messages
imessage.amxx
;join.amxx
mesaje.amxx
;server_details.amxx
new_c4_timer.amxx
;teamflashsnitch.amxx
; Menus
menufront.amxx ; front-end for admin menus
plmenu.amxx ; players menu (kick, ban, client cmds.)
;telemenu.amxx ; teleport menu (Fun Module required!)
pluginmenu.amxx ; Menus for commands/cvars organized by plugin
;// ----- || ----- Map
lastmaps.amxx
timeleft.amxx
galileo.amxx
;ghostchat.amxx
; file_remover.amxx
;// ----- || ----- Stats
EndRoundStats.amxx
statscfg.amxx
statsx.amxx
;// ----- || ----- Fun
ShowRoundFrags.amxx
bomb_bonus.amxx
fire_in_the_hole.amxx
;ut_killstreak_adv.amxx
;// ----- || ---- Craciun
;santa_hat_teams.amxx
;snow.amxx
;rainysnowy.amxx
;amx_adminmodel.amxx
; Custom - Add 3rd party plugins here
;// ----- || ----- Comenzi
blind.amxx
demo.amxx
gag.amxx
resetscore.amxx
;invisible_spectator.amxx
ss.amxx
cfg_slash.amxx
Land3.amxx
;QuakeSounds.amxx
preturi_ranguri_motd.amxx
pingfaker.amxx
;amx_connect.amxx
New_AMXX_Who.amxx
destroy.amxx
;fakefull_original.amxx
slaylosers.amxx
;noapte.amxx
warmup.amxx
showip.amxx
tsf.amxx
;TP_aim.amxx
plugin_afk.amxx
LoadingMenu.amxx
played_time.amxx
rang_admin_chat.amxx
Plugin.ini
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
- Membru, skill +1
- Posts: 142
- Joined: 16 May 2010, 21:50
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com!
- Has thanked: 31 times
- Been thanked: 5 times
- Contact:
Plugin_afk,sna
iar ptb
// PTB Configuration
//
// File location: addons/amxmodx/configs/ptb.cfg
//
// Settings are loaded on every mapchange
// from this cfg file
//
// For details on the settings check out the documentation
// in the readme.txt file
echo [PTB] Ptb.cfg is being executed
// These two cvars must be set to 0 so PTB can work properly.
mp_autoteambalance 0
mp_limitteams 0
// Control of chatmessages which can be 0 for off 1 on if set to 2 then Transfers will show in hud but not chat.
// If set to 3 it will show all messages in chat and transfers as hudtext
ptb_saychat 1
// Transfertype can only be 1, 2 or 3 and 3 is the most agressive transfer
// 1 is PTBs original transfertype
ptb_transfer_type 1
// Set to 0 if admins with immunity also should be switched
ptb_switch_immunity 1
// Set to 0 if admins with immunity cant choose the team they wants
ptb_limitjoin_immunity 1
// Here you set which flag an admin must have to be immune against transfers (Default o ADMIN_LEVEL_C)
ptb_immunity_level "o"
// Here you set which flag an admin must have to be able to change PTB settings (Default l ADMIN_RCON)
ptb_access_level "l"
// If you want to see Transfers made in the HLSW chat have this set to 1
ptb_show_in_hlsw 1
// team selection control
amx_ptb limitjoin on // set limits on team joining
amx_ptb limitafter 0 // number of rounds after which teams limiting begins
amx_ptb limitmin 0 // number of minimum players on map for team limiting
amx_ptb maxsize 16 // maximum team size per team
amx_ptb maxdiff 2 // maximum team size difference
amx_ptb autorounds 3 // number of first rounds into match, which allow autojoin only
amx_ptb wtjauto off // wtj tries needed to become autojoined
amx_ptb wtjkick off // wtj tries needed to become kicked
amx_ptb kick off // kick for wtj counts
amx_ptb savewtj off // save wtjs to wtj.log
// team balancing actions
amx_ptb switch on // switch/transfer players
amx_ptb switchafter 3 // number of rounds after which switching begins
amx_ptb switchmin 5 // number of minimum players on map for switching
amx_ptb switchfreq 1 // relative next possible switch round
amx_ptb playerfreq 7 // relative next possible switch round for player
amx_ptb forceswitch 0 // number of tries after which PTB switches alive, if neccessary
amx_ptb deadonly off // switch dead only
// messages (good to have on when debugging if you use statsx dont have them on)
amx_ptb tellwtj off // tell about wtj tries
amx_ptb announce off // announce team status at beginning of round
amx_ptb sayok off // announce team status, if teams are alright
amx_ptb typesay off // use HUD messages
// team strength limits
amx_ptb maxstreak 3 // max. allowed team win streak
amx_ptb maxscore 2 // max. allowed team score difference
amx_ptb minrating 1.5 // minimum critical team rating
amx_ptb maxrating 2.0 // maximum critical team rating
amx_ptb superrating 3.0 // super critical team rating
amx_ptb maxincidents 50 // maximum kills + deaths before the score is divided by PTB_SCALEDOWN
amx_ptb scaledown 2 // divisor for kills and deaths, when PTB_MAXINCIDENTS is reached
nu cred ca sunt de la astea
Code: Select all
#include <amxmodx>
#include <cstrike>
#define MIN_AFK_TIME 30 // I use this incase stupid admins accidentally set mp_afktime to something silly.
#define WARNING_TIME 15 // Start warning the user this many seconds before they are about to be kicked.
#define CHECK_FREQ 5 // This is also the warning message frequency.
new g_oldangles[33][3]
new g_afktime[33]
new bool:g_spawned[33] = {true, ...}
public plugin_init() {
register_plugin("AFK Kicker","1.0b","VzG.Ro")
register_cvar("afk_version", "1.0b", FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_SPONLY)
register_cvar("mp_afktime", "60") // Kick people AFK longer than this time
register_cvar("mp_afkminplayers", "8") // Only kick AFKs when there is atleast this many players on the server
set_task(float(CHECK_FREQ),"checkPlayers",_,_,_,"b")
register_event("ResetHUD", "playerSpawned", "be")
}
public checkPlayers() {
for (new i = 1; i <= get_maxplayers(); i++) {
if (is_user_alive(i) && is_user_connected(i) && !is_user_bot(i) && !is_user_hltv(i) && g_spawned[i]) {
new newangle[3]
get_user_origin(i, newangle)
if ( newangle[0] == g_oldangles[i][0] && newangle[1] == g_oldangles[i][1] && newangle[2] == g_oldangles[i][2] ) {
g_afktime[i] += CHECK_FREQ
check_afktime(i)
} else {
g_oldangles[i][0] = newangle[0]
g_oldangles[i][1] = newangle[1]
g_oldangles[i][2] = newangle[2]
g_afktime[i] = 0
}
}
}
return PLUGIN_HANDLED
}
check_afktime(id) {
new numplayers = get_playersnum()
new minplayers = get_cvar_num("mp_afkminplayers")
if (numplayers >= minplayers) {
new maxafktime = get_cvar_num("mp_afktime")
if (maxafktime < MIN_AFK_TIME) {
log_amx("cvar mp_afktime %i is too low. Minimum value is %i.", maxafktime, MIN_AFK_TIME)
maxafktime = MIN_AFK_TIME
set_cvar_num("mp_afktime", MIN_AFK_TIME)
}
if(g_afktime[id] > maxafktime) {
new name[32]
get_user_name(id, name, 31)
chat_color( 0, "!g%s !na fost transferat la Spectatori pentru ca a fost AFK mai mult de !t%i secunde", name, maxafktime)
log_amx("%s a fost transferat la Spectatori pentru ca a fost AFK mai mult de %i secunde", name, maxafktime)
user_silentkill(id);
cs_set_user_team(id,CS_TEAM_SPECTATOR);
}
}
}
public client_connect(id) {
g_afktime[id] = 0
return PLUGIN_HANDLED
}
public client_putinserver(id) {
g_afktime[id] = 0
return PLUGIN_HANDLED
}
public playerSpawned(id) {
g_spawned[id] = false
new sid[1]
sid[0] = id
set_task(0.75, "delayedSpawn",_, sid, 1) // Give the player time to drop to the floor when spawning
return PLUGIN_HANDLED
}
public delayedSpawn(sid[]) {
get_user_origin(sid[0], g_oldangles[sid[0]])
g_spawned[sid[0]] = true
return PLUGIN_HANDLED
}
stock chat_color( const id, const input[], any:... )
{
new count = 1, players[32]
static msg[320]
vformat( msg, 190, input, 3 )
replace_all( msg, 190, "!g", "^4" )
replace_all( msg, 190, "!n", "^1" )
replace_all( msg, 190, "!t", "^3" )
replace_all( msg, 190, "!t2", "^0" )
if ( id ) players[0] = id; else get_players( players, count, "ch" )
{
for ( new i = 0; i < count; i++ )
{
if ( is_user_connected( players[i] ) )
{
message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[i] )
write_byte( players[i] )
write_string( msg )
message_end( )
}
}
}
}
// PTB Configuration
//
// File location: addons/amxmodx/configs/ptb.cfg
//
// Settings are loaded on every mapchange
// from this cfg file
//
// For details on the settings check out the documentation
// in the readme.txt file
echo [PTB] Ptb.cfg is being executed
// These two cvars must be set to 0 so PTB can work properly.
mp_autoteambalance 0
mp_limitteams 0
// Control of chatmessages which can be 0 for off 1 on if set to 2 then Transfers will show in hud but not chat.
// If set to 3 it will show all messages in chat and transfers as hudtext
ptb_saychat 1
// Transfertype can only be 1, 2 or 3 and 3 is the most agressive transfer
// 1 is PTBs original transfertype
ptb_transfer_type 1
// Set to 0 if admins with immunity also should be switched
ptb_switch_immunity 1
// Set to 0 if admins with immunity cant choose the team they wants
ptb_limitjoin_immunity 1
// Here you set which flag an admin must have to be immune against transfers (Default o ADMIN_LEVEL_C)
ptb_immunity_level "o"
// Here you set which flag an admin must have to be able to change PTB settings (Default l ADMIN_RCON)
ptb_access_level "l"
// If you want to see Transfers made in the HLSW chat have this set to 1
ptb_show_in_hlsw 1
// team selection control
amx_ptb limitjoin on // set limits on team joining
amx_ptb limitafter 0 // number of rounds after which teams limiting begins
amx_ptb limitmin 0 // number of minimum players on map for team limiting
amx_ptb maxsize 16 // maximum team size per team
amx_ptb maxdiff 2 // maximum team size difference
amx_ptb autorounds 3 // number of first rounds into match, which allow autojoin only
amx_ptb wtjauto off // wtj tries needed to become autojoined
amx_ptb wtjkick off // wtj tries needed to become kicked
amx_ptb kick off // kick for wtj counts
amx_ptb savewtj off // save wtjs to wtj.log
// team balancing actions
amx_ptb switch on // switch/transfer players
amx_ptb switchafter 3 // number of rounds after which switching begins
amx_ptb switchmin 5 // number of minimum players on map for switching
amx_ptb switchfreq 1 // relative next possible switch round
amx_ptb playerfreq 7 // relative next possible switch round for player
amx_ptb forceswitch 0 // number of tries after which PTB switches alive, if neccessary
amx_ptb deadonly off // switch dead only
// messages (good to have on when debugging if you use statsx dont have them on)
amx_ptb tellwtj off // tell about wtj tries
amx_ptb announce off // announce team status at beginning of round
amx_ptb sayok off // announce team status, if teams are alright
amx_ptb typesay off // use HUD messages
// team strength limits
amx_ptb maxstreak 3 // max. allowed team win streak
amx_ptb maxscore 2 // max. allowed team score difference
amx_ptb minrating 1.5 // minimum critical team rating
amx_ptb maxrating 2.0 // maximum critical team rating
amx_ptb superrating 3.0 // super critical team rating
amx_ptb maxincidents 50 // maximum kills + deaths before the score is divided by PTB_SCALEDOWN
amx_ptb scaledown 2 // divisor for kills and deaths, when PTB_MAXINCIDENTS is reached
nu cred ca sunt de la astea