Raised This Month: $ Target: $400
 0% 

Steam ID Check


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 02-22-2006 , 11:54   Steam ID Check
Reply With Quote #1

Hey, I was wondering how I would check a players Steam ID...

I have this...

Code:
#pragma tabsize 0 #include <amxmodx> #include <amxmisc> new authid[32] public plugin_init() {     register_plugin("Dizzy Kill","0.1","Dizzy")     register_cvar("amx_dizzykill","1")     register_event("DeathMsg","check","a") } public check(id) {     if(get_user_authid(id,authid,31)     {         set_hudmessage(255, 0, 0, -1.0, -1.0 ,_ , _, 2.0, _, _, 4)         show_hudmessage(id, "You Got Owned By Dizzy!")     } return PLUGIN_HANDLED }

I want it to check for my STEAM ID when I kill someone...

Soo, If Dizzy kills someone I want it to show a hud message "You Got Owned By Dizzy!"

Here's my Steam ID

STEAM_0:0:1682451

I got lost after I did the [small]if(get_user_authid(id,authid,31)

How do you make it check, thanks in advance
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 02-22-2006 , 12:12  
Reply With Quote #2

Here you go.
Code:
#include <amxmodx> #include <amxmisc> new const authid[18] = "STEAM_0:0:1682451" public plugin_init() {     register_plugin("Dizzy Kill","0.1","Dizzy")     register_cvar("amx_dizzykill","1")     register_event("DeathMsg","check","a") } public check(id) {     new AttackerAuth[18] , iAttacker = read_data(1);     get_user_authid( iAttacker , AttackerAuth , 17);     if(equal(AttackerAuth , authid))     {         set_hudmessage(255, 0, 0, -1.0, -1.0 ,_ , _, 2.0, _, _, 4)         show_hudmessage(id, "You Got Owned By Dizzy!")     }     return PLUGIN_HANDLED }
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 02-22-2006 , 12:20  
Reply With Quote #3

I see, thanks Suicid3
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
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 20:24.


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