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

Steam Community Name


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 03-19-2023 , 23:33   Steam Community Name
Reply With Quote #1

  • Description
    This plugin will override your name to steam community name
  • Cvars
    steam_api_key - mandatory for using the steam api
    - https://steamcommunity.com/dev/apikey
  • Modules
    If you're using async gRIP you need its module.
    Get it here https://github.com/In-line/grip
  • Install
    1. Compile on AMXX 1.9 and later
    2. Drag steam_community_name.sma to amxmodx/scripting folder
    3. Drag steam_community_name.amxx to amxmodx/plugins folder
    4. Type steam_community_name.amxx in amxmodx/configs/plugins.ini file
    5. Type steam_api_key "<API_KEY>" in amxmodx/configs/amxx.cfg file
  • Credits
    ConnorMcLeod - block name change
    VEN - dead name change
    swank - obtain steam64 from steamid
    Shadows Adi - only standard ascii characters in name
    (detailed credits inside script file)
  • Beware
    This plugin will collide with other plugins that may change player's name and the functionality and output may not be as expected.
  • Additional information
    Due to the rules of json formatting, using certain characters in a name is not possible as it would cause the json limitations to be exceeded, therefore they are replaced with random numbers. If the json name is left blank, it will automatically be assigned 8 random digits(not sure how).
    The removal of the characters [ and ] was a main reason for this to function seamlessly, as there was no other way around.
Attached Files
File Type: sma Get Plugin or Get Source (steam_community_name.sma - 129 views - 3.7 KB)
File Type: sma Get Plugin or Get Source (steam_community_name_grip.sma - 81 views - 3.6 KB)
__________________

Last edited by bigdaddy424; 03-21-2023 at 15:59.
bigdaddy424 is offline
KrazyKat
Member
Join Date: Mar 2021
Old 03-20-2023 , 01:36   Re: Steam Community Name
Reply With Quote #2

Can you rewrite a new plugin for newer and asynchronous modules like grip? Sockets seems to crash my rehlds server.
KrazyKat is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 03-20-2023 , 13:37   Re: Steam Community Name
Reply With Quote #3

gRIP doesn't work on my machine

thread '<unnamed>' panicked at 'Client::new(): Error(DnsSystemConf(Custom { kind: Other, error: StringError("Error parsing resolv.conf: InvalidOption(21)") }))', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
fatal runtime error: failed to initiate panic, error 5
__________________
bigdaddy424 is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 03-21-2023 , 15:02   Re: Steam Community Name
Reply With Quote #4

Quote:
Originally Posted by bigdaddy424 View Post
gRIP doesn't work on my machine

thread '<unnamed>' panicked at 'Client::new(): Error(DnsSystemConf(Custom { kind: Other, error: StringError("Error parsing resolv.conf: InvalidOption(21)") }))', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
fatal runtime error: failed to initiate panic, error 5
This is an error due to gRIP not finding the hosts file.

There's a post in dev-cs.ru detailing the solution.
__________________
gabuch2 is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 03-21-2023 , 16:01   Re: Steam Community Name
Reply With Quote #5

thanks @gabuch2 i'm now able to run gRIP and ive updated steam_community_name_grip.sma.
both variants work
__________________
bigdaddy424 is offline
IC3k1ng
Senior Member
Join Date: Mar 2023
Location: Argentina
Old 03-21-2023 , 17:08   Re: Steam Community Name
Reply With Quote #6

Is this plugin a remade version of this one?
https://forums.alliedmods.net/showthread.php?t=231800
__________________


IC3k1ng is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 03-21-2023 , 18:40   Re: Steam Community Name
Reply With Quote #7

Quote:
Originally Posted by IC3k1ng View Post
Is this plugin a remade version of this one?
https://forums.alliedmods.net/showthread.php?t=231800
both serve one purpose
jailing to your steam name
__________________
bigdaddy424 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 14:26.


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