AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Steam ID Check (https://forums.alliedmods.net/showthread.php?t=24426)

Dizzy 02-22-2006 11:54

Steam ID Check
 
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

Xanimos 02-22-2006 12:12

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 }

Dizzy 02-22-2006 12:20

I see, thanks Suicid3


All times are GMT -4. The time now is 20:24.

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