Raised This Month: $32 Target: $400
 8% 

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
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-18-2018 , 09:38   Re: Is User Steam ?
Reply With Quote #7

Quote:
Originally Posted by Black Rose View Post
The problem is that this guy wants to solve a dproto specific problem, not support steam players.
no this guy wants to solve plugin problem mr brain
__________________

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


Probably Left AM
Ghosted is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 11-18-2018 , 14:38   Re: Is User Steam ?
Reply With Quote #8

Quote:
Originally Posted by Ghosted View Post
no this guy wants to solve plugin problem mr brain
But the problem is still rooted in dproto and cannot be solved.
You cannot trust any of these functions to actually work. That is the whole problem with dproto and that is why no decent coder supports it, only noobs. It causes unexpected, illogical behavior that is just wasting my time as a coder.

No need trying to attack me or my intelligence. I mean, how am I supposed to feel inferior to you when your English is basically the same as a 10-year old?
__________________
Black Rose is offline
Old 11-18-2018, 14:54
Ghosted
This message has been deleted by Ghosted. Reason: whatever niga, im done with ur pronglish...
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-18-2018 , 15:00   Re: Is User Steam ?
Reply With Quote #9

Quote:
Originally Posted by Ghosted View Post
no this guy wants to solve plugin problem mr brain
The solution is to remove dproto or anything else that allows non-Steam clients to connect. Period.

Quote:
Originally Posted by Ghosted View Post
Btw if we can not trust dproto then create new system for STEAM SERVER to work with non-steam clients lul
That is the dumbest thing you've said yet. The reason we don't support dproto around here is BECAUSE it allows non-Steam clients to connect (because that is condoning theft/violating the DMCA).
__________________
fysiks is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-18-2018 , 15:49   Re: Is User Steam ?
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
The reason we don't support dproto around here is BECAUSE it allows non-Steam clients to connect (because that is condoning theft/violating the DMCA).
that was said 318238214 times.
nevermind other i just say if the guy says im using non steam server (or steam + dproto or something that supports non-steam clients) and has problem in plugin or something that actually does not refers to non-steam support then dont even say 'no steam no support' or something sh*t like 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 15:52.
Ghosted 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 01:25.


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