Raised This Month: $ Target: $400
 0% 

get Steam Id, match names


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Demigod90
Junior Member
Join Date: Jul 2009
Location: Illinois, USA
Old 08-06-2009 , 13:41   Re: get Steam Id, match names
Reply With Quote #2

For the steam id that is easy as I show you an example of how I do it below. But for your 2nd request I couldn't say intil I tried it on my private server.

This example pretty much finds out your steam id and than display's it in the chat window in green text, it also plays a sound clip "blip" so you can hear that something popped up on the chat window.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <geoip>

#define PLUGIN "Gather & Display Steam ID"
#define VERSION "1.0"
#define AUTHOR "Demigod90"

new g_iMsgSayTextg_szSoundFile[] = "buttons/blip1.wav";

public 
plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
    
register_clcmd("say /sid","display_sid",0)
    
register_clcmd("say_team /sid","display_sid",0)
    
    
g_iMsgSayText get_user_msgid("SayText");
}

public 
plugin_precache()
{
    
precache_sound(g_szSoundFile);
}

public 
display_sid(id)
{
    if(
is_user_bot(id)) return PLUGIN_CONTINUE;
    
    new 
szAuthID[33];
    
get_user_authid(id,szAuthID,32);
    
    new 
szMessage[164];
    
format(szMessage163"^x04Your Steam ID is: %s"szAuthID);
    
    
client_cmd(id"spk %s"g_szSoundFile);
    
    
message_begin(MSG_ONEg_iMsgSayText, {0,0,0}, id);
    
write_byte  (id);
    
write_string(szMessage);
    
message_end ();
    
    return 
PLUGIN_HANDLED;

__________________

REP++
If you found this post helpful!

Demigod1990 <- Try my BRUTE!

Last edited by Demigod90; 08-06-2009 at 17:19. Reason: typo
Demigod90 is offline
 



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 18:21.


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