dustin1525 / evolvemod

Automatically exported from code.google.com/p/evolvemod
0 stars 0 forks source link

Rank by STEAM ID #271

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to be able to use "ev rank STEAM_0:0:1 admin" in console or rcon and 
be able add that user with the steam id to the rank given. Any suggestions? I  
have been mulling over this code for a while now.

Original issue reported on code.google.com by blazedde...@gmail.com on 2 Dec 2010 at 11:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Something to add to this. It looks like evolve is trying to be able to do this 
when you use the command, but the regular expression isn't matched by a string 
that could be returned.

if you use "ev rank STEAM_0:0:0000" it fails because instead of 
"STEAM_0:0:0000" it gets "STEAM_0" and the rest is GONE at the beginning of the 
command.

Original comment by blazedde...@gmail.com on 2 Dec 2010 at 11:49

GoogleCodeExporter commented 9 years ago
Alright I have made a small fix that allows you to do this by changing any ":"s 
to "|" so they work in console. then at the top of the function you replace the 
string with

playername = string.Replace(args[1],"|",":")

and then change any usage of args[1] to playername

-------
While that is one victory you can't run it if the player isn't in the server 
which poses a problem. Is there not a way to add an admin by steam id even if 
they aren't in the server?

Original comment by blazedde...@gmail.com on 2 Dec 2010 at 11:56

GoogleCodeExporter commented 9 years ago
is this already here ? if that player one time is in you can use the steamid ?

Original comment by DilanoDr...@gmail.com on 3 Dec 2010 at 7:28

GoogleCodeExporter commented 9 years ago
.... what?

Original comment by blazedde...@gmail.com on 3 Dec 2010 at 7:37

GoogleCodeExporter commented 9 years ago
if the player what you want rank one time is in you can rank him with steam id 
if he is offline

Original comment by DilanoDr...@gmail.com on 4 Dec 2010 at 12:11

GoogleCodeExporter commented 9 years ago
It looks like it is trying to find a player online and does not match against 
existing players.

Original comment by blazedde...@gmail.com on 5 Dec 2010 at 2:12

GoogleCodeExporter commented 9 years ago
btw i am trying to do so via rcon

Original comment by blazedde...@gmail.com on 5 Dec 2010 at 7:32

GoogleCodeExporter commented 9 years ago
You ban by SteamID by using quotes. So:

ev ban "STEAM_0:0:00000"

Original comment by overv161@gmail.com on 23 Dec 2010 at 5:03