AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Is User Steam ? (https://forums.alliedmods.net/showthread.php?t=312126)

MagNNusS 11-17-2018 08:35

Is User Steam ?
 
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;



Nutu_ 11-17-2018 08:57

Re: Is User Steam ?
 
everybody is a steam player

Ghosted 11-17-2018 09:43

Re: Is User Steam ?
 
Quote:

Originally Posted by Nutu_ (Post 2624445)
everybody is a steam player

You event don't think that is true.

fysiks 11-17-2018 14:28

Re: Is User Steam ?
 
Quote:

Originally Posted by Ghosted (Post 2624448)
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.

Ghosted 11-18-2018 03:15

Re: Is User Steam ?
 
Quote:

Originally Posted by fysiks (Post 2624490)
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 rukia (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.

Black Rose 11-18-2018 04:48

Re: Is User Steam ?
 
Quote:

Originally Posted by Ghosted (Post 2624549)
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.

Ghosted 11-18-2018 09:38

Re: Is User Steam ?
 
Quote:

Originally Posted by Black Rose (Post 2624559)
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

Black Rose 11-18-2018 14:38

Re: Is User Steam ?
 
Quote:

Originally Posted by Ghosted (Post 2624595)
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?

fysiks 11-18-2018 15:00

Re: Is User Steam ?
 
Quote:

Originally Posted by Ghosted (Post 2624595)
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 (Post 2624629)
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).

Ghosted 11-18-2018 15:49

Re: Is User Steam ?
 
Quote:

Originally Posted by fysiks (Post 2624631)
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.


All times are GMT -4. The time now is 14:19.

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