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

AUTO-INVIT SEND WHEN JOIN THE SERVER


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MrHustler
Zero Posts
Join Date: Aug 2011
Old 08-22-2011 , 08:37   AUTO-INVIT SEND WHEN JOIN THE SERVER
Reply With Quote #1

Hi All.

I've a Request for you.
I'm a French CSS player from a French CSS team; i want to set a plugin in our FFA server, witch will send an Auto invit to our steam community when a player join the server.
i've read on several forums that we need Python and CMsort.exe, but I don't know how use it.
I know also the method to make it: a robot1 extract all SteamIDs from HlstatsX and a Robot2 Send auto invitation to each SteamIDs ..
If someone can explain me how to do this..


i give you the steam Community iD : http://steamcommunity.com/groups/vipsteamevo
my Steam iD: STEAM_0:0:7527934
and finally, i send you my server adress: 77.111.200.112:27015
(Dedicate Server Hosted by VeryGames) in France

this is the eventscript i've find, but i guess it's a wrong one:
import sys, os, re

SID_NONE = 1<<0
SID_PRINT = 1<<1
SID_PROCESS = 1<<2
SID_QUIET = 1<<3

def about():
print "Steam Id <-> Community ID Converter\n" \
"Programmed by theY4Kman, algorithm discovered by voogru\n"

def syntax(command=None):
if command == ["help", "?", "/?"]:
print "Displays the help message."
else:
print "Usage: ", os.path.basename(sys.argv[0]), " SteamID|CommunityID [/p] [/q]\n" \
"Options:\n" \
" /p Show the process of deriving the Steam/Community ID\n" \
" /q Quiet mode. Only print out the Steam/Community ID"

def proc(message, check=SID_NONE, flags=SID_NONE):
if flags & check: print message

def convert(i, flags=SID_NONE):
steamid = re.compile(r'STEAM_0: ([01]): (\d{1,10})').match(i)
commid = re.compile(r"(\d{17})").match(i)
if steamid:
proc("Steam ID -> Community ID\n\n%s" % i, SID_PROCESS, flags)
tok = steamid.groups()
auth = int(tok[1]) * 2
server = int(tok[0])
proc("%s * 2 = %d" % (tok[1], auth), SID_PROCESS, flags)
tok = auth + 76561197960265728 + server
proc("%d + 76561197960265728 + %d = %d" % (auth, server, tok), SID_PROCESS, flags)
if flags & SID_PRINT: print "\nCommunity ID:", tok
else: return tok
else:
proc("Community ID -> Steam ID\n", SID_PROCESS, flags)
tok = int(i)
server = tok % 2
proc("%s is %s, so the auth server is %d" % (i, (server and "odd") or "even", server), SID_PROCESS, flags)
auth = tok - server
proc("%d - %d = %d" % (tok, server, auth), SID_PROCESS, flags)
auth -= 76561197960265728
proc("%d - 76561197960265728 = %d" % (tok - server, auth), SID_PROCESS, flags)
proc("%d / 2 = %d" % (auth, auth/2), SID_PROCESS, flags)
auth /= 2
if flags & SID_PRINT: print "\nSteam ID: STEAM_0:%d:%d" % (server, auth)
else: return "STEAM_0:%d:%d" % (server, auth)
return
if __name__ == '__main__':
if len(sys.argv) < 2:
syntax()
exit()
if sys.argv[1] == "about":
about()
exit()
if sys.argv[1] in ["help", "?", "/?"]:
syntax((len(sys.argv) >= 3) and sys.argv[2] or None)
exit()

flags = SID_NONE
i = None
for option in sys.argv[1:]:
if option == "/p": flags |= SID_PROCESS
if option == "/q": flags |= SID_QUIET
else:
if not i and re.compile(r'STEAM_0:[01]:\d{1,10}').match(option) or re.compile(r"\d{17}").match(option): i = option

if not i: # Then whom?
syntax()
else:
if flags & (SID_QUIET|SID_PROCESS) == (SID_QUIET|SID_PROCESS): flags ^= SID_PROCESS
convert(i, flags|SID_PRINT)
I will Happy to read you soon Guys !! and Thank you for your Help ! (i apologize if i make mistakes or misunderstanding words ^^)
MrHustler 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 13:59.


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