Raised This Month: $ Target: $400
 0% 

[Request] Retrieving STEAM_ID via motd CSS and CS:GO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CenT
Senior Member
Join Date: Aug 2009
Location: FRANCE
Old 06-03-2014 , 13:18   [Request] Retrieving STEAM_ID via motd CSS and CS:GO
Reply With Quote #1

Hello,

I search a plugin capable of recovered STEAM_ID a player that connects the motd variable
$_GET example:

http://mymotd.tld/?steamid={STEAM_ID}

This plugin should work for CS:GO and CS:S

There is already this plugin:

https://forums.alliedmods.net/showthread.php?t=147193

But it has not been update for CS: GO, if someone is interested in doing, I am very interested.


Thank you in advance.


CenT

~Sorry for my english~

Last edited by CenT; 06-04-2014 at 16:11.
CenT is offline
LambdaLambda
AlliedModders Donor
Join Date: Oct 2010
Location: London
Old 06-03-2014 , 14:34   Re: [Request] Retrieving STEAM_ID via motd CSS and CS:GO
Reply With Quote #2

I just started doing such plugin for CS:GO. If you will wait a week or two, then it should be posted in Plugins section.

#edit
miss readed first line. That's not what I'm doing.

Last edited by LambdaLambda; 06-03-2014 at 14:35.
LambdaLambda is offline
CenT
Senior Member
Join Date: Aug 2009
Location: FRANCE
Old 06-03-2014 , 14:54   Re: [Request] Retrieving STEAM_ID via motd CSS and CS:GO
Reply With Quote #3

Quote:
Originally Posted by LambdaLambda View Post
I just started doing such plugin for CS:GO. If you will wait a week or two, then it should be posted in Plugins section.

#edit
miss readed first line. That's not what I'm doing.
It allows to do what ? your plugin

Last edited by CenT; 06-03-2014 at 14:55.
CenT is offline
LambdaLambda
AlliedModders Donor
Join Date: Oct 2010
Location: London
Old 06-03-2014 , 15:12   Re: [Request] Retrieving STEAM_ID via motd CSS and CS:GO
Reply With Quote #4

It opens MOTD window after typing specific command that you can add via cfg. And allows to hook STEAM_ID, map name etc. But I don't really have time as for now, so I've stopped working on that.

Last edited by LambdaLambda; 06-03-2014 at 15:39.
LambdaLambda is offline
JoB2C
AlliedModders Donor
Join Date: Jan 2014
Location: France
Old 06-03-2014 , 19:19   Re: [Request] Retrieving STEAM_ID via motd CSS and CS:GO
Reply With Quote #5

That wouldn't take much code, just a call to GetClientAuthString, Format for the URL and ShowMOTDPanel.

The rest is PHP.
JoB2C is offline
CenT
Senior Member
Join Date: Aug 2009
Location: FRANCE
Old 06-04-2014 , 01:31   Re: [Request] Retrieving STEAM_ID via motd CSS and CS:GO
Reply With Quote #6

Quote:
Originally Posted by JoB2C View Post
That wouldn't take much code, just a call to GetClientAuthString, Format for the URL and ShowMOTDPanel.

The rest is PHP.
I already have the php part, I just need the plugin is missing me

Last edited by CenT; 06-04-2014 at 01:32.
CenT is offline
CenT
Senior Member
Join Date: Aug 2009
Location: FRANCE
Old 06-04-2014 , 14:01   Re: [Request] Retrieving STEAM_ID via motd CSS and CS:GO
Reply With Quote #7

there is nobody to do this for me ? :'(
CenT is offline
CenT
Senior Member
Join Date: Aug 2009
Location: FRANCE
Old 06-16-2014 , 15:58   Re: [Request] Retrieving STEAM_ID via motd CSS and CS:GO
Reply With Quote #8

I throw again my request
CenT is offline
Meitis
Member
Join Date: Jan 2014
Old 06-19-2014 , 17:15   Re: [Request] Retrieving STEAM_ID via motd CSS and CS:GO
Reply With Quote #9

I didn't personally test this, but I made some edits to the plugin linked in your first post to hopefully make it work in cs:go. If it doesn't let me know and I'll try and look how to fix it.
Attached Files
File Type: sp Get Plugin or Get Source (dynamic_motd.sp - 363 views - 24.9 KB)

Last edited by Meitis; 06-19-2014 at 18:39. Reason: small fix
Meitis is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-20-2014 , 05:18   Re: [Request] Retrieving STEAM_ID via motd CSS and CS:GO
Reply With Quote #10

so you want open a window by specific url included player steamid ?
PHP Code:
http://something.com?={STEAM_ID} 
Here is one kind, tested quickly https://forums.alliedmods.net/showth...01#post1746701

This works when player spawn on server, very first motd window
PHP Code:
public Plugin:myinfo 
{
    
name "MOTD window refresh. Valve fix this crap!!",
    
description "Refresh player MOTD window when spawn server",
    
url "https://forums.alliedmods.net/showthread.php?t=189158"
};

public 
OnPluginStart()
{
    
HookEventEx("player_activate"activate);
}

public 
activate(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
userid GetEventInt(event"userid");
    new 
client GetClientOfUserId(userid);
    new 
String:url[] = "http://steamidconverter.com/STEAM_0:0:00000000";

    
GetClientAuthString(clienturlsizeof(url), false);
    
Format(urlsizeof(url), "http://steamidconverter.com/%s"url);

    
ShowMOTDPanel(client"Refresh MOTD"urlMOTDPANEL_TYPE_URL);
    
CreateTimer(2.0delayuserid);
}

public 
Action:delay(Handle:timerany:userid)
{
    new 
client GetClientOfUserId(userid);
    if(
client != 0)
    {
        
//ShowMOTDPanel(client, "Message Of The Day", "motd", MOTDPANEL_TYPE_INDEX); // Command button OK in action.
        
new Handle:Kv CreateKeyValues("data");
        
KvSetString(Kv,    "title",        "Message Of The Day");
        
//KvSetNum(Kv,    "type",            MOTDPANEL_TYPE_INDEX);
        
KvSetNum(Kv,    "type",            MOTDPANEL_TYPE_URL);
        
//KvSetString(Kv,    "msg",            "motd");
        
        
new String:url[] = "http://steamidconverter.com/STEAM_0:0:00000000";

        
GetClientAuthString(clienturlsizeof(url), false);
        
Format(urlsizeof(url), "http://steamidconverter.com/%s"url);
        
KvSetString(Kv,    "msg",            url);

        
KvSetNum(Kv,    "cmd",            1); // Hope this work any game mod
        
ShowVGUIPanel(client"info",    Kv);
        
CloseHandle(Kv);
    }

But open window for later in csgo, regular motd would not appear.
You need use javascript pop-up window.
https://forums.alliedmods.net/showth...63#post1808763
And just add player steamid in url path.
*edit
still tricky tough

Last edited by Bacardi; 06-20-2014 at 05:19.
Bacardi 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 09:23.


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