Raised This Month: $ Target: $400
 0% 

print player SteamID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DaniDin
Member
Join Date: Oct 2008
Old 03-10-2009 , 21:56   print player SteamID
Reply With Quote #1

hi
i want to do when player connect it will type
"Your SteamID is :STEAM_0:1:11115491"
DaniDin is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-10-2009 , 23:42   Re: print player SteamID
Reply With Quote #2

PHP Code:
public client_putinserver(id)
{
    new 
szAuthid[37];
    
get_user_authid(idszAuthid36);
    
client_print(idprint_chat"Your SteamID is %s"szAuthid);

__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 03-11-2009 , 07:04   Re: print player SteamID
Reply With Quote #3

It has been asked before.
__________________

anakin_cstrike is offline
DaniDin
Member
Join Date: Oct 2008
Old 03-11-2009 , 10:17   Re: print player SteamID
Reply With Quote #4

i dont found it
and YamiKaitou
it's not work
DaniDin is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-11-2009 , 10:18   Re: print player SteamID
Reply With Quote #5

Quote:
Originally Posted by DaniDin View Post
i dont found it
and YamiKaitou
it's not work
Um, yes it does. You will not see it as when putinserver is called, you can't see any chat messages. So, you will need to create a task that will delay the print
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
DaniDin
Member
Join Date: Oct 2008
Old 03-11-2009 , 10:21   Re: print player SteamID
Reply With Quote #6

that what i do :\
set_task(10.0, "client_putinserver", id, _,_, "b", 10)
DaniDin is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-11-2009 , 10:23   Re: print player SteamID
Reply With Quote #7

client_putinserver is called by the game. You should create your own function with Yami's code then set the task inside of client_putinserver().
__________________
fysiks is offline
DaniDin
Member
Join Date: Oct 2008
Old 03-11-2009 , 10:33   Re: print player SteamID
Reply With Quote #8

work
10x
DaniDin is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 03-11-2009 , 20:33   Re: print player SteamID
Reply With Quote #9

Code:
new szAuthid[37]

Way too large.

Code:
new szID[20]

STEAM_0:X:XXXXXXXX

18 characters, so 20 is more than futureproof.
Spunky is offline
Send a message via AIM to Spunky
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 03-12-2009 , 02:19   Re: print player SteamID
Reply With Quote #10

Quote:
Originally Posted by Spunky View Post
Code:
new szAuthid[37]

Way too large.

Code:
new szID[20]

STEAM_0:X:XXXXXXXX

18 characters, so 20 is more than futureproof.
Honestly, having extra cells doesn't hurt anything. Technically its worse but by such a small fraction Spunky. On top of that, the steamid range is always being increased soon enough nine digits will be popular then ten and so on, and with the rapid growth of Steam, I for see this happening faster and faster. So adding these extra cells will just prevent more kids from posting saying there plugin doesn't work since they obviously have no clue what there doing.
Styles is offline
Send a message via AIM to Styles
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 08:51.


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