AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check if user has steam or not (https://forums.alliedmods.net/showthread.php?t=144271)

NucL3ra 12-01-2010 10:07

Check if user has steam or not
 
I need a little help with this.
I guess it should be like this, but I think I do it wrong (obviously:D)

PHP Code:

new authid[32], arg[32]
get_user_authid(idauthid31)
parseauthidarg31)
if (
arg[id] == "VALVE_ID_LAN"ColorChat(idGREEN"Buy steam"


zeus 12-01-2010 10:10

Re: Check if user has steam or not
 
PHP Code:

new szAuthId[33]
get_user_authid(id,szAuthId,32)
if(
equal(szAuthId,"VALVE_ID_LAN"//code 


NucL3ra 12-01-2010 10:15

Re: Check if user has steam or not
 
ye.. equal was it, thanks :D

lucas_7_94 12-01-2010 10:15

Re: Check if user has steam or not
 
don't use dproto ?

ConnorMcLeod 12-01-2010 11:20

Re: Check if user has steam or not
 
Also, steam is free :P

SpeeDeeR 12-01-2010 11:46

Re: Check if user has steam or not
 
you can also use regex
PHP Code:

regex_compile("^^STEAM_0:(0|1):\d+$", return, errorcharsmax(error)) 

simple as that

Exolent[jNr] 12-01-2010 16:54

Re: Check if user has steam or not
 
Or don't allow Non-Steam players on your server.


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

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