Raised This Month: $51 Target: $400
 12% 

someone good with amx help me here


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 02-10-2011 , 10:28   someone good with amx help me here
Reply With Quote #1

I'm pretty sure it's one of the plugins I had that has caused the problem described...

http://forums.alliedmods.net/showthread.php?t=149562
Gam3ronE is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-10-2011 , 18:13   Re: someone good with amx help me here
Reply With Quote #2

You need to find which plugin is doing it. Oh, BTW, you posting here is the same as bumping .
__________________
fysiks is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 02-10-2011 , 18:37   Re: someone good with amx help me here
Reply With Quote #3

Quote:
Originally Posted by Graham View Post
nobody else had this problem on gametracker.com?



all real players being marked as bots is a real pain. if you look here:

http://i55.tinypic.com/358cfm1.jpg

then hlsw shows the negative player times. I thought that this was fixed by removing a few recent plugins and it was fixed after a server restart but it's not fixed anymore and has gone back to thinking that players are bots.

EDIT:

Here's the plugins I removed which I thought was the cause since they were the only change I made to my server before starting to have this problem.

Here's the first plugin:

PHP Code:
#include <amxmodx>
#include <amxmisc>

#include <engine>
#include <fakemeta>

new const Plugin[] = "Bad Clients Handler"
new const Author[] = "joaquimandrade"
new const Version[]    = "1.0"

new Float:LastCommandReceivedTime[33]
new 
IsConnected[33]

new class[] = 
"badClientsHandler"
new MaxPlayers 

new Float:ThinkDelay 1.0

new CvarTimeout
new CvarTimeoutRoundStart

public plugin_init()
{
register_plugin(Plugin,Version,Author)
register_forward(FM_CmdStart,"cmdStart")

register_event("HLTV""newRound""a""1=0""2=0")

register_think(class,"handlerThink")

CvarTimeout register_cvar("badclients_timeout","5.0")
CvarTimeoutRoundStart register_cvar("badclients_timeout_round","3.0 ")
}

public 
newRound()
{
checkBadClients(get_pcvar_float(CvarTimeoutRo undStart))
}

public 
plugin_cfg()
{
MaxPlayers get_maxplayers()

new 
thinker create_entity("info_target")
set_pev(thinker,pev_classname,class)
handlerThink(thinker)
}

checkBadClients(Float:timeout)
{
for(new 
i=1;i<=MaxPlayers;i++)
{
if(
IsConnected[i])
{
if( (
get_gametime() - LastCommandReceivedTime[i]) >= timeout)
{    
forceDisconnect(i)
}
}    
}
}

public 
handlerThink(id)
{
checkBadClients(get_pcvar_float(CvarTimeout))

set_pev(id,pev_nextthink,get_gametime() + ThinkDelay)
}

forceDisconnect(id)
{
/*static name[32]
static steamID[34]

get_user_name(id,name,charsmax(name))
get_user_authid(id,steamID,charsmax(steamID))

log_to_file("badClientsHandler.txt","Forcing disconnect of client ^"%s<%s>^"",name,steamID)
*/
server_cmd("kick #%d",get_user_userid(id))
server_exec()
}

public 
client_putinserver(id)
{
IsConnected[id] = !is_user_bot(id)
LastCommandReceivedTime[id] = get_gametime() + 1.0
}

public 
client_disconnect(id)
{
if(
IsConnected[id])
IsConnected[id] = false
}

public 
cmdStart(id,uc_handle,random_seed)
{
LastCommandReceivedTime[id] = get_gametime()

This is the other plugin:

PHP Code:
#include <amxmodx>
#include <amxmisc>

#include <fakemeta>

#define PLUGIN    "Anti-SVC (Will See)"
#define AUTHOR    "joaquimandrade"
#define VERSION    "1.0"

new ConfigFilename[] = "svc.cfg"

new AllowedPairsNames[][] = 
{
"model",
"name",
"bottomcolor",
"_cl_autowepswitch",
"cl_dlmax",
"cl_lc",
"cl_lw",
"cl_updaterate",
"topcolor",
"_vgui_menus",
"_ah",
"rate",
"*sid",
"lang"
}

new 
AllowedPairsValueMaxLen[sizeof AllowedPairsNames] = 
{
50,
32,
3,
1,
4,
1,
1,
3,
3,
1,
1,
6,
30,
2
}

new 
Trie:AllowedPairsData

public plugin_init()
{
register_plugin(PLUGINVERSIONAUTHOR)

register_forward(FM_ClientUserInfoChanged,"in foChanged")
}

public 
plugin_cfg()
{
new 
path[50]

get_configsdir(path,charsmax(path))

format(path,charsmax(path),"%s/%s",path,ConfigFilename)

AllowedPairsData TrieCreate()

new 
file 

new line[100]

if(
file_exists(path))
{
file fopen(path,"r")

new 
pairName[50]
new 
pairValueMaxLenString[3]
new 
pairValueMaxLen

while(fgets(file,line,charsmax(line)))
{
parse(line,pairName,charsmax(pairName),pairVa lueMaxLenString,charsmax(pairValueMaxLenStrin g))

pairValueMaxLen str_to_num(pairValueMaxLenString)

TrieSetCell(AllowedPairsData,pairName,pairVal ueMaxLen)
}
}
else
{
file fopen(path,"w")

for(new 
i=0;i<sizeof AllowedPairsNames;i++)
{
TrieSetCell(AllowedPairsData,AllowedPairsName s[i],AllowedPairsValueMaxLen[i])
formatex(line,charsmax(line),"%s %d^n",AllowedPairsNames[i],AllowedPairsValueMaxLen[i])
fputs(file,line)
}
}

fclose(file)
}


readNextPairPart(buffer[],&position,pairPart[])
{
if(
buffer[position++])
{
new 


do
{
pairPart[i++] = buffer[position++]
}
while(
buffer[position] && (buffer[position] != '\'))

pairPart[i] = 0;
}
else
{
return false
}

return true
}

public infoChanged(id,buf[])
{
static buffer[257]
static pairName[50]

copy_infokey_buffer(engfunc(EngFunc_GetInfoKe yBuffer,id),buffer,charsmax(buffer));

new position 

while(readNextPairPart(buffer,position,pairNa me))
{
static pairValueMaxLen

if(TrieGetCell(AllowedPairsData,pairName,pair ValueMaxLen))
{
static pairValue[50]

if(readNextPairPart(buffer,position,pairValue ))
{
if(strlen(pairValue) > pairValueMaxLen)
{
/*static name[32]
get_user_info(id,"name",name,charsmax(name))

static steamID[34]
get_user_authid(id,steamID,charsmax(steamID))

log_amx("<^"%s^"><^"%s^"> Pair value for ^"%s^" has an invalid length. Truncating",name,steamID,pairName) 
*/
pairValue[pairValueMaxLen] = 0
set_user_info(id,pairName,pairValue)
break;
}
}
else
{
break;
}
}
else
{
/*static name[32]
get_user_info(id,"name",name,charsmax(name))

static steamID[34]
get_user_authid(id,steamID,charsmax(steamID))

log_amx("<^"%s^"><^"%s^"> Pair name ^"%s^" is invalid. Clearing",name,steamID,pairName)
*/
set_user_info(id,pairName,"")
break;
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1031\\ f0\\ fs16 \n\\ par }
*/ 
and the cfg for that last plugin:

PHP Code:
model 50
name 32
bottomcolor 3
_cl_autowepswitch 1
cl_dlmax 4
cl_lc 1
cl_lw 1
cl_updaterate 3
topcolor 3
_vgui_menus 1
_ah 1
rate 6
*sid 30
lang 2 
Hopefully someone can help me out here, I really need to get this fixed because I work so hard on the server, having such a good rank on a place like gametracker is pretty rewarding.

Last edited by YamiKaitou; 07-21-2012 at 08:21. Reason: Solved.
Gam3ronE is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-10-2011 , 18:48   Re: someone good with amx help me here
Reply With Quote #4

You never said you proved which plugin it was. You seem to be assuming.

Show the output of "meta list" in the server's console (e.g. HLSW).
__________________
fysiks is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 02-11-2011 , 04:46   Re: someone good with amx help me here
Reply With Quote #5

# KEY VALUE
1 _tutor_bomb_viewable_check_interval 0.5
2 _tutor_debug_level 0
3 _tutor_examine_time 0.5
4 _tutor_hint_interval_time 10.0
5 _tutor_look_angle 10
6 _tutor_look_distance 200
7 _tutor_message_character_display_time_coeffic ient 0.07
8 _tutor_message_minimum_display_time 1
9 _tutor_message_repeats 5
10 _tutor_view_distance 1000
11 admanager_version 0.5
12 allow_spectators 90
13 amx_client_languages 1
14 amx_contactinfo
15 amx_language sv
16 amx_nextmap zm_toxic_ice_attack
17 amx_timeleft 005
18 amxmodx_version 1.8.1.3746
19 coop 0
20 deathmatch 1
21 decalfrequency 40
22 dp_version 0.9.87
23 edgefriction 2
24 gal_version 1.1.290
25 hostage_debug 0
26 hostage_stop 0
27 humans_join_team any
28 max_queries_sec 1
29 max_queries_sec_global 1
30 max_queries_window 1
31 metamod_version 1.19p32
32 mp_allowmonsters 0
33 mp_autokick 0
34 mp_autoteambalance 0
35 mp_buytime 1.5
36 mp_c4timer 30
37 mp_chattime 5
38 mp_consistency 1
39 mp_fadetoblack 0
40 mp_flashlight 1
41 mp_footsteps 1
42 mp_forcecamera 0
43 mp_forcechasecam 0
44 mp_fragsleft 0
45 mp_freezetime 0
46 mp_friendlyfire 0
47 mp_ghostfrequency 0.1
48 mp_hostagepenalty 4
49 mp_kickpercent 0.66
50 mp_limitteams 0
51 mp_logdetail 3
52 mp_logfile 1
53 mp_logmessages 1
54 mp_mapvoteratio 0.66
55 mp_maxrounds 0
56 mp_mirrordamage 0
57 mp_playerid 1
58 mp_roundtime 3.5
59 mp_startmoney 800
60 mp_timeleft 0
61 mp_timelimit 39.999992
62 mp_tkpunish 0
63 mp_windifference 1
64 mp_winlimit 0
65 pausable 0
66 restnames_version 1.2a
67 spam_blocker 3.6
68 sv_accelerate 5
69 sv_aim 0
70 sv_airaccelerate 300
71 sv_airmove 1
72 sv_allowupload 1
73 sv_alltalk 0
74 sv_bounce 1
75 sv_cheats 0
76 sv_clienttrace 1
77 sv_clipmode 0
78 sv_contact
79 sv_friction 4
80 sv_gravity 800
81 sv_logblocks 0
82 sv_maxrate 25000
83 sv_maxspeed 900
84 sv_minrate 13000
85 sv_password 0
86 sv_proxies 1
87 sv_region 3
88 sv_restart 0
89 sv_restartround 0
90 sv_stepsize 18
91 sv_stopspeed 75
92 sv_uploadmax 0.5
93 sv_voiceenable 1
94 sv_wateraccelerate 10
95 sv_waterfriction 1
96 UAIO (Admin Menu) 1.50
97 zp_extra_adv_antidotegun v0.6 by meTaLiCroSS
98 zp_extra_chainsaw v0.9 by meTaLiCroSS
99 zp_extra_damage 1.3b
100 zp_extra_flamethrower 0.8.6
101 zp_extra_leap 1.5.8
102 zp_jp_version Extra Item Jetpack+Bazooka v3.2
103 zp_version 4.3
104 zp_vip_version 1.6
105 zp_zkill_bomb 1.0
106 gamedir cstrike
107 gamename Zombie Plague 4.3
108 steamid 10
109 clientcount 6
110 clientmax 32
111 botcount 0
112 secure 1
Gam3ronE is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 02-11-2011 , 15:18   Re: someone good with amx help me here
Reply With Quote #6

at the moment it appears to be working fine, here's the new output (well I say new, but there might be some difference)
EDIT: the only problem is that it has worked before, however after some map changes reverts back to not working until you restart the server again.

1 _tutor_bomb_viewable_check_interval 0.5
2 _tutor_debug_level 0
3 _tutor_examine_time 0.5
4 _tutor_hint_interval_time 10.0
5 _tutor_look_angle 10
6 _tutor_look_distance 200
7 _tutor_message_character_display_time_coeffic ient 0.07
8 _tutor_message_minimum_display_time 1
9 _tutor_message_repeats 5
10 _tutor_view_distance 1000
11 admanager_version 0.5
12 allow_spectators 90
13 amx_client_languages 1
14 amx_contactinfo
15 amx_language sv
16 amx_nextmap [not yet voted on]
17 amx_timeleft 213
18 amxmodx_version 1.8.1.3746
19 coop 0
20 deathmatch 1
21 decalfrequency 40
22 dp_version 0.9.87
23 edgefriction 2
24 gal_version 1.1.290
25 hostage_debug 0
26 hostage_stop 0
27 humans_join_team any
28 max_queries_sec 1
29 max_queries_sec_global 1
30 max_queries_window 1
31 metamod_version 1.19p32
32 mp_allowmonsters 0
33 mp_autokick 0
34 mp_autoteambalance 0
35 mp_buytime 1.5
36 mp_c4timer 15
37 mp_chattime 5
38 mp_consistency 1
39 mp_fadetoblack 0
40 mp_flashlight 1
41 mp_footsteps 1
42 mp_forcecamera 0
43 mp_forcechasecam 0
44 mp_fragsleft 0
45 mp_freezetime 0
46 mp_friendlyfire 0
47 mp_ghostfrequency 0.1
48 mp_hostagepenalty 4
49 mp_kickpercent 0.66
50 mp_limitteams 0
51 mp_logdetail 3
52 mp_logfile 1
53 mp_logmessages 1
54 mp_mapvoteratio 0.66
55 mp_maxrounds 0
56 mp_mirrordamage 0
57 mp_playerid 1
58 mp_roundtime 3.5
59 mp_startmoney 800
60 mp_timeleft 0
61 mp_timelimit 24.999990
62 mp_tkpunish 0
63 mp_windifference 1
64 mp_winlimit 0
65 pausable 0
66 restnames_version 1.2a
67 spam_blocker 3.6
68 sv_accelerate 5
69 sv_aim 0
70 sv_airaccelerate 300
71 sv_airmove 1
72 sv_allowupload 1
73 sv_alltalk 0
74 sv_bounce 1
75 sv_cheats 0
76 sv_clienttrace 1
77 sv_clipmode 0
78 sv_contact
79 sv_friction 4
80 sv_gravity 800
81 sv_logblocks 0
82 sv_maxrate 25000
83 sv_maxspeed 900
84 sv_minrate 13000
85 sv_password 0
86 sv_proxies 1
87 sv_region 3
88 sv_restart 0
89 sv_restartround 0
90 sv_stepsize 18
91 sv_stopspeed 75
92 sv_uploadmax 0.5
93 sv_voiceenable 1
94 sv_wateraccelerate 10
95 sv_waterfriction 1
96 UAIO (Admin Menu) 1.50
97 zp_extra_adv_antidotegun v0.6 by meTaLiCroSS
98 zp_extra_chainsaw v0.9 by meTaLiCroSS
99 zp_extra_damage 1.3b
100 zp_extra_flamethrower 0.8.6
101 zp_extra_leap 1.5.8
102 zp_jp_version Extra Item Jetpack+Bazooka v3.2
103 zp_version 4.3
104 zp_vip_version 1.6
105 zp_zkill_bomb 1.0
106 gamedir cstrike
107 gamename Zombie Plague 4.3
108 steamid 10
109 clientcount 13
110 clientmax 32
111 botcount 0
112 secure 1

Last edited by Gam3ronE; 02-11-2011 at 15:24.
Gam3ronE is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-11-2011 , 17:51   Re: someone good with amx help me here
Reply With Quote #7

That's not "meta list". The HLSW comment means that you can submit the command "meta list" to the server console via HLSW if you don't have direct access to it.

Anyways, I guess I can see what I was looking for.

We have no way of helping you as you do not run a legitimate Steam server.
__________________

Last edited by fysiks; 02-11-2011 at 17:56.
fysiks is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 02-12-2011 , 08:45   Re: someone good with amx help me here
Reply With Quote #8

If there's some non anti-steam haters that can help please move on to my personal support request at our community website:

Last edited by psychonic; 02-24-2013 at 23:13. Reason: removed url
Gam3ronE is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-12-2011 , 12:12   Re: someone good with amx help me here
Reply With Quote #9

Quote:
Originally Posted by Graham View Post
If there's some non anti-steam haters that can help please move on to my personal support request at our community website: http://urlremoved
First of all, it's not because of "anti-Steam haters", it's because non-Steam servers are an altered version of the game and is hence not the same game. We can't give you support for Half-Life and expect it to work on Half-Life 2 (it's just an analogy, don't tell me it's not the same).
__________________

Last edited by fysiks; 02-12-2011 at 22:06.
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode