![]() |
![]() ![]() |
![]() |
1 |
![]() ![]()
Post
#1
|
Newbie ![]() Group: Members Posts: 4 Joined: 13-February 07 Member No.: 1,032 ![]() |
I need your help for put this in "pingkick" Source Code: when a player connect to server i Need ask if the player have got cvar fps_max set in 100, if the player don't have fps_max = 100, the plugin must kick player.
here is the source: http://rapidshare.com/files/16287497/pingk..._Code_.rar.html Please its very important ![]() thank you |
Cheeseh |
![]()
Post
#2
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
I need your help for put this in "pingkick" Source Code: when a player connect to server i Need ask if the player have got cvar fps_max set in 100, if the player don't have fps_max = 100, the plugin must kick player. here is the source: http://3.mihd.net/dl/19b15c08507f7187d731f...ource_code_.rar Please its very important ![]() thank you you're probably better asking here how to find CVAR's from client players http://forums.bots-united.com/forumdisplay.php?f=33 I'm not sure how to do it in HL1 |
LordSkitch |
![]()
Post
#3
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
just a quick question, why the hell would you wanna kick people who have their fps_max set to less than 100?
|
1 |
![]()
Post
#4
|
Newbie ![]() Group: Members Posts: 4 Joined: 13-February 07 Member No.: 1,032 ![]() |
any example how to kick a player if not have fps_max 100?
|
Cheeseh |
![]()
Post
#5
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
just a quick question, why the hell would you wanna kick people who have their fps_max set to less than 100? I second that, I always have my FPS lower than that becuase my refresh rater isnt that high, and can cause stuttering etc on the client if vsync is on. Also I have no example here, you are better asking in a Valve SDK forum e.g. http://articles.thewavelength.net/ or hlcoders |
LordSkitch |
![]()
Post
#6
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
also, i dont know if the objective of this plugin is to kick people with PINGS higher than 100, because "people with high pings make other people lag"
THAT ISNT TRUE! there is in no way people with high pings can affect the pings of others, unless the server itself is out of bandwidth. |
Cheeseh |
![]()
Post
#7
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
also, i dont know if the objective of this plugin is to kick people with PINGS higher than 100, because "people with high pings make other people lag" THAT ISNT TRUE! there is in no way people with high pings can affect the pings of others, unless the server itself is out of bandwidth. yep. People with bad pings don't cause others to lag, only a bad server. It's only discrimination against high pingers and their advantage/disadvantages they have ![]() Anyway I already made a ping kick plugin in metamod years ago which can be downloaded + the source from the main rcbot files page. |
1 |
![]()
Post
#8
|
Newbie ![]() Group: Members Posts: 4 Joined: 13-February 07 Member No.: 1,032 ![]() |
Do you known a metamod forum where tutorials and coding for him?
|
LordSkitch |
![]()
Post
#9
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
i could code it in amxx in a couple lines... but metamod is a flying bastard of convolution
|
1 |
![]()
Post
#10
|
Newbie ![]() Group: Members Posts: 4 Joined: 13-February 07 Member No.: 1,032 ![]() |
Well i have the source of the plugin in AMXMODX can help me to translate to metamod plugin?
CODE #include <amxmodx> #include <engine> #include <amxmisc> public plugin_init() { register_plugin("Cvar Client", "1", "Me") } public client_putinserver(id) { set_task(15.0, "verificacion", id, "b") } public verificacion(id) { query_client_cvar(id,"fps_max","result2") } public result2(id, const cvar[], const value[]){ new name[32] get_user_name(id, name, 31) if(equal(value,"100")) { client_print(id,print_chat,"%s ***", value) } else { server_cmd("kick #%d ^"Please set fps_max 100 in^"",get_user_userid(id)) } } |
LordSkitch |
![]()
Post
#11
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
not me, i do amxx, not metamod... go ask at nsmod.org, peachy will probably do it.
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 8th September 2024 - 01:30 AM |