Kick without rconpassword?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Ago
Private
Posts: 4
Joined: Wed Sep 27, 2006 3:50 pm
Location: sweden

Kick without rconpassword?

Post by Ago »

is it possible to kick someone without the rconpassword?

offcourse the server needs a script for it.

if i understand what the server can do correct, the server can see if i have a variable set. right?

so if a player on the server has set there kick variable to ex 6, i could make a script that scans all players for this variable.
and if the server sees anyone haveing this variable set it could use the command to kick player 6.


my thought of this script is (not "done")

if ($player 1 kick > 0)
{
stufftext ("clientkick kick") // or something... to kick the guy
$splayer 1 stufftext ("setu kick 0") // to "clean" the kickvariable so other player 6 can join without geting kicked
}

if ($player 2 kick > 0)
{
stufftext ("clientkick kick")
$splayer 2 stufftext ("setu kick 0")
}


and so on....

or is this impossible?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I'd say it's near impossible. I don't see what use it has, either?

Welcome to .Map, though :)
Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

yea you can stufftext

disconnect


Perhaps you could stuftext alias kick_value ### on players to ban or have high ping and have a script check all players every minutes or so and perform a disconnect on those who have kick_value > threshhold_kick_value ??????????


you would have to assign each player initially with rcon and if they could figure it out they would have to quit > edit > retart > comeback
Ago
Private
Posts: 4
Joined: Wed Sep 27, 2006 3:50 pm
Location: sweden

Post by Ago »

jv: why would you say its near impossible?
the point of this mod is to make "light admins" that can kick and perhaps use the status command.
so they can kick people that are annoying and if he/she keeps comeing back you can use the status command to find out what the ip of that person is and send it to a real admin.

do you guys know IF the server can see what my variable values and how i do it in a script i think i can pull this off.

offcourse there should be a password on this mod so not everyone can kick whoever if they just know the variable, but that is an easy fix.. i hope ;-)

thank you!


viper: yeah why didnt i think of that!
$player "kick" stufftext (disconnect")
brilliant!

as i said above the banning should still be admins job so a ban script is what i need, but the high ping thing... a good thought!




i have tried the mohfill mod but it only works for AA i need something for SH.

thanks for your help so far!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

if i understand what the server can do correct, the server can see if i have a variable set. right?
This is only true for user variables (i.e. those set with the setu command), and although the server can retrieve them with clientinfo this information is not available in the script :(
Image
Ago
Private
Posts: 4
Joined: Wed Sep 27, 2006 3:50 pm
Location: sweden

Post by Ago »

ouch! :cry:
hmm.... ok.. that wasnt any good news.

but how does the server find out what skin im waring? is that sent to the server or is it "scanned" by the server?


anyone that got a good idea how to get my idea to work?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It's sent when you connect to a server.. I suppose it's resend when you change your model :?
Image
Ago
Private
Posts: 4
Joined: Wed Sep 27, 2006 3:50 pm
Location: sweden

Post by Ago »

do you know where i find the script that sends the skininfo to the server?

that might give me a smal chance of changeing it and makeing it work on the mod
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

There is no such script. This is handled by game code and therefore inaccessible :(
Image
Post Reply