AlliedModders

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

Veggetta 08-18-2013 11:04

Getting Nvault Steam ID
 
How to check if steam id exisit on nvault ?

For exemple:
I would like do give a USP to new users (if steam id don't exist on nvault save data) ..

akcaliberg 08-18-2013 16:22

Re: Getting Nvault Steam ID
 
nvault_lookup returns true on success.

So, use steamid as a vault key. And then check if nvault_lookup returns true. If it returns true, give the weapon

lobopack23 08-20-2013 03:33

Re: Getting Nvault Steam ID
 
new authid[35], vaultdata[256], timestamp
get_user_authid(id,authid,charsmax(authid))

new dataExists = nvault_lookup(record, authid, vaultdata, charsmax(vaultdata), timestamp)

if( dataExists )
return 1

return 0

Veggetta 08-21-2013 13:08

Re: Getting Nvault Steam ID
 
You guys are the best ! Thank you


All times are GMT -4. The time now is 15:43.

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