Raised This Month: $51 Target: $400
 12% 

Solved Is User Steam ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MagNNusS
Member
Join Date: May 2018
Location: World of Bushi
Old 11-17-2018 , 08:35   Is User Steam ?
Reply With Quote #1

Greetings AlliedModders.
I was looking for some codes that support's steam player's.
But the problem is i founded several codes. And I don't really know which of them works correctly or it's coded good.
I tested some of them, they worked as I thought.
If someone explain witch code can be used and why, i would be really happy.

Codes:
PHP Code:
stock bool:is_user_steam(id
{
        new 
auth[65]
        
get_user_authid(id,auth,64)
        if(
contain(auth"STEAM_0:0:") != -|| contain(auth"STEAM_0:1:") != -1)
        return 
true;
        return 
false;

PHP Code:
stock bool:is_user_steam(id)
{
    static 
dp_pointer
    
if(dp_pointer || (dp_pointer get_cvar_pointer("dp_r_id_provider")))
    {
        
server_cmd("dp_clientinfo %d"id)
        
server_exec()
        return (
get_pcvar_num(dp_pointer) == 2) ? true false
    
}
    return 
false

PHP Code:
stock bool:is_steam(auth[]) 
{
    if(
contain(auth"STEAM_0:0:") != -|| contain(auth"STEAM_0:1:") != -1)
        return 
true;

    return 
false;

PHP Code:
stock bool:is_user_steam(id)
{
        new 
authid[32]; 
        
get_user_authid(idauthid31);
        return 
containi(authid ":") != -true false;

PHP Code:
stock bool:is_steam(auth[]) 
{

    return 
bool:(contain(auth"STEAM_0:0:") != -|| contain(auth"STEAM_0:1:") != -1);

PHP Code:
stock bool:is_user_steam(id)
{
    if(!
is_user_connected(id) || is_user_bot(id) || is_user_hltv(id))
    {
        return -
1;
    }
    
    new 
pos;
    new 
authid[64];
    
get_user_authid(id,authid,63)
    
    if((
pos containi(authid,"VALVE_")) != -|| (pos containi(authid,"ID_LAN")) != -|| (pos containi(authid,"ID_PENDING")) != -|| equal(authid,"STEAM_666:88:666") || (pos containi(authid,"HLTV")) != -)
    {
        return 
false;
    }
    
    new 
ip[64]
    
get_user_ip(id,ip,63,1)
    
    if((
pos containi(authid,ip)) != -)
    {
        return 
false;
    }
    return 
true;

__________________
Just an impractical signature
nothing to see here.

Last edited by MagNNusS; 11-19-2018 at 16:00. Reason: Solved.
MagNNusS is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 11-17-2018 , 08:57   Re: Is User Steam ?
Reply With Quote #2

everybody is a steam player
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-17-2018 , 09:43   Re: Is User Steam ?
Reply With Quote #3

Quote:
Originally Posted by Nutu_ View Post
everybody is a steam player
You event don't think that is true.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-17-2018 , 14:28   Re: Is User Steam ?
Reply With Quote #4

Quote:
Originally Posted by Ghosted View Post
You event don't think that is true.
Every player for every plugin that would get support here is a Steam player. I.e. anything Non-Steam is not supported here.

So, if you properly make your server Steam-only, the answer is easy: everybody is a Steam player.
__________________

Last edited by fysiks; 11-17-2018 at 14:28.
fysiks is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-18-2018 , 03:15   Re: Is User Steam ?
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
anything Non-Steam is not supported here.
If this is steam only forum and user will post plugin help for its non-steam server which you dont know (that is not steam server) and you will help that means you are supporting non-steam (Ya some times plugin does not refer to non-steam but if he will say that then
Code:
delete Help;
)

Btw this guy wants to support steam players.

Download dproto man why the heck you need plugins for that.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 11-18-2018 at 03:19.
Ghosted is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 11-18-2018 , 04:48   Re: Is User Steam ?
Reply With Quote #6

Quote:
Originally Posted by Ghosted View Post
Bla bla bla
This is not a Steam only forum.

The rules prevent us from helping people breaking the DMCA. This means we cannot link to anything related to dproto, we cannot help install it, we cannot fix problems directly related to it. With your last sentence encouraging someone to illegally download something you are breaking the forum rules and possibly the law.

The problem is that this guy wants to solve a dproto specific problem, not support steam players. And the solution? There is none. This is exactly the problem with dproto. And this is why most scripters here refuse to help with these issues, me included.
__________________
Black Rose is offline
MagNNusS
Member
Join Date: May 2018
Location: World of Bushi
Old 11-19-2018 , 15:56   Re: Is User Steam ?
Reply With Quote #7

These conversations helped me a'lot...
In the mean time i solve my problem during reading all this posts...
Solved.
__________________
Just an impractical signature
nothing to see here.
MagNNusS is offline
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 07:56.


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