Raised This Month: $23 Target: $400
 5% 

Solved [CS:S/ANY] Save the players SteamId


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lDarkness
Junior Member
Join Date: Jun 2019
Old 03-08-2020 , 15:47   [CS:S/ANY] Save the players SteamId
Reply With Quote #1

I need a plugin to save the steam id of the players that joined the server. This plugin should works like this:

When someone enter in the server with the plugin enabled it will save the steam name of the person and his steam id next to his name in a txt file.

It will need two commands, 1 - Name of the folder in cstrike to save the txt file, like: sm_savesteamid [folder into cstrike], and a command to enable or disable the save-steamid, because i want this plugin to use in a 5v5 plugin, that dont have steamid save, so it will save the steamid when i load some config.

Enable/disable: sm_enablesavesteamid

I think this would be helpful for many hosts.

Hope this be easy to do!

Last edited by lDarkness; 03-09-2020 at 12:55.
lDarkness is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 03-08-2020 , 17:06   Re: [CS:S/ANY] Save the players SteamId
Reply With Quote #2

I don't really know if this will work (i didn't test it)
You can always try it out and go back here to tell me if it works or not.
The log file will be created here:
"sourcemod/logs/savesteamdid/" (you must create a folder called savesteamdid in addons/sourcemod/logs before installing this plugin).
The log files will be called id_%s.log, the %s will be replaced by the date (month-day), and as you said above, you can enable/disable this feature using sm_enablesavesteamid / !enablesavesteamid (only admins with BAN flag)
Attached Files
File Type: sp Get Plugin or Get Source (SavesSteamID.sp - 29 views - 1.7 KB)
File Type: smx SavesSteamID.smx (9.5 KB, 21 views)
__________________
My plugins || Steam || Discord: nano#7638 || Donate me if you want via PayPal || Join in my community discord server!

NanoC is offline
Send a message via Skype™ to NanoC
lDarkness
Junior Member
Join Date: Jun 2019
Old 03-08-2020 , 18:15   Re: [CS:S/ANY] Save the players SteamId
Reply With Quote #3

The plugin didnt load:

L 03/08/2020 - 19:08:01: [SM] Exception reported: Game event "player_connect_full" does not exist
L 03/08/2020 - 19:08:01: [SM] Blaming: SavesSteamID.smx
L 03/08/2020 - 19:08:01: [SM] Call stack trace:
L 03/08/2020 - 19:08:01: [SM] [0] HookEvent
L 03/08/2020 - 19:08:01: [SM] [1] Line 23, D:\Archivos\Plugins\SavesSteamID.sp::OnPlugin Start
L 03/08/2020 - 19:08:01: [SM] Unable to load plugin "SavesSteamID.smx": Error detected in plugin startup (see error logs

I guess it is getting the wrong local to put the steamidsaves (my server is in other local).

Can you make the name be the hour day and map?
and if you can, make it be only in the cstrike folder.

Last edited by lDarkness; 03-08-2020 at 18:16.
lDarkness is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 03-08-2020 , 18:24   Re: [CS:S/ANY] Save the players SteamId
Reply With Quote #4

Sorry, that event is only for csgo, i just realized that you want it for CSS
Try this first
Attached Files
File Type: sp Get Plugin or Get Source (SavesSteamID.sp - 22 views - 1.6 KB)
File Type: smx SavesSteamID.smx (9.3 KB, 16 views)
__________________
My plugins || Steam || Discord: nano#7638 || Donate me if you want via PayPal || Join in my community discord server!

NanoC is offline
Send a message via Skype™ to NanoC
lDarkness
Junior Member
Join Date: Jun 2019
Old 03-08-2020 , 18:37   Re: [CS:S/ANY] Save the players SteamId
Reply With Quote #5

It is saving the steams-id but the rcon command doesnt work, the !enablesavesteamid works.

And to enable its 0 and to disable its 1, i guess this is strange but not a real problem.

Errors when try to do it by rcon:

sm_enablesavesteamid
L 03/08/2020 - 1907: [SM] Exception reported: Invalid client index 0
L 03/08/2020 - 1907: [SM] Blaming: SavesSteamID.smx
L 03/08/2020 - 1907: [SM] Call stack trace:
L 03/08/2020 - 1907: [SM] [0] ThrowError
L 03/08/2020 - 1907: [SM] [1] Line 40, D:\Archivos\Plugins\include\morecolors.inc::C PrintToChat
L 03/08/2020 - 1907: [SM] [2] Line 57, D:\Archivos\Plugins\SavesSteamID.sp::SavesSte amId

Other error line:

console command (cmdline "sm_enablesavesteamid 1")
L 03/08/2020 - 192:42: [SM] Exception reported: Invalid client index 0
L 03/08/2020 - 192:42: [SM] Blaming: SavesSteamID.smx
L 03/08/2020 - 192:42: [SM] Call stack trace:
L 03/08/2020 - 192:42: [SM] [0] ThrowError
L 03/08/2020 - 192:42: [SM] [1] Line 40, D:\Archivos\Plugins\include\morecolors.inc::C PrintToChat
L 03/08/2020 - 192:42: [SM] [2] Line 57, D:\Archivos\Plugins\SavesSteamID.sp::SavesSte amId
L 03/08/2020 - 192:42: [SM] [4] ServerCommandEx
L 03/08/2020 - 192:42: [SM] [5] Line 402, D:\builds\build-sourcemod-msvc12\windows-1.10\build\plugins\basecommands.sp::Command_R con

And please, if you can, make it save with the name of the map, the hour and the second, because i will use it many times in the day, and i need to separate the steam-ids in more specific files

Last edited by lDarkness; 03-08-2020 at 18:39.
lDarkness is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 03-08-2020 , 20:29   Re: [CS:S/ANY] Save the players SteamId
Reply With Quote #6

Try this.
Attached Files
File Type: sp Get Plugin or Get Source (clientlog.sp - 35 views - 3.9 KB)
__________________
Maxximou5 is offline
lDarkness
Junior Member
Join Date: Jun 2019
Old 03-08-2020 , 21:02   Re: [CS:S/ANY] Save the players SteamId
Reply With Quote #7

It didnt work Maxximou5.

L 03/08/2020 - 21:56:28: [SM] Exception reported: Could not open file "E:\Falcon Mix\steamapps\common\Counter-Strike Source Dedicated Server\cstrike\addons\sourcemod\logs\CL_de_du st2_2020-03-08_21:49:55.log"
L 03/08/2020 - 21:56:28: [SM] Blaming: clientlog.smx
L 03/08/2020 - 21:56:28: [SM] Call stack trace:
L 03/08/2020 - 21:56:28: [SM] [0] LogToFileEx
L 03/08/2020 - 21:56:28: [SM] [1] Line 102, /home/forums/content/files/2/2/2/8/2/2/180059.attach::LogReport
L 03/08/2020 - 21:56:28: [SM] [2] Line 43, /home/forums/content/files/2/2/2/8/2/2/180059.attach::OnClientPutInServer

Last edited by lDarkness; 03-08-2020 at 21:02.
lDarkness is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 03-08-2020 , 21:40   Re: [CS:S/ANY] Save the players SteamId
Reply With Quote #8

Appears to be your server doesn't have permissions to create a new file in that directory.
__________________
Maxximou5 is offline
lDarkness
Junior Member
Join Date: Jun 2019
Old 03-09-2020 , 11:36   Re: [CS:S/ANY] Save the players SteamId
Reply With Quote #9

I had a plugin that had the function to save steam ids in a folder into cstrike folder(it worked), but it was with other functions, this new plugin that im using is better but it dont have the save steam id.

Quote:
Originally Posted by Maxximou5 View Post
Appears to be your server doesn't have permissions to create a new file in that directory.
Idk if this is the real problem.
lDarkness is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 03-09-2020 , 12:15   Re: [CS:S/ANY] Save the players SteamId
Reply With Quote #10

Fixed version of Maxximou5's plugin.
Attached Files
File Type: sp Get Plugin or Get Source (clientlog.sp - 47 views - 4.0 KB)
__________________
(soon to be) Retired Sourcemod Coder
My [Dev] Website | Discord: Drixevel#5049

Last edited by Drixevel; 03-09-2020 at 12:58.
Drixevel is offline
Reply


Thread Tools
Display Modes

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 14:25.


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