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

Add to Favorites Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tomba2k
Junior Member
Join Date: Jan 2008
Location: Zagreb, Croatia
Old 05-21-2009 , 20:48   Add to Favorites Menu
Reply With Quote #1

Is there a way to give player a option to add server to favorites when he connects to server?
I did some programing in amxx, modified plugins for use at my server, making them multilang supported etc (i know the basics of pawn and c++), but the problem is i have no idea where to find how the command for such thing would be implemented.
I know the favorites server list for non-steam cs is in platform/config/ServerBrowser.vdf, but for steam there is only plaform/servers/serverbrowser.dll

So, i would appriciate if someone has idea any idea how to:
First - is there a way to implement it via client console command?
Second - how to implement it for non steam server. (that way i would be able to understand how it would work)
Third - if the first is not posible, do i need half life sdk to implement it for steam favorites?
Forth - is the option "Add current server to favorites" of any use for such thing and is it usable via console command instead of separate window?
(or any other way i could use it by amx plugin)
Fifth - would some sort of *.bat file be of any use in this purpose if all of other mentioned options are imposible?
Sixt - if all the options from 1-5 are unusable, is it posible to create patch for cs that would add a menu which could be initiated via amx plugin to show player a option on his client to add server to favorites.

Please don't say that non steam is not supported, i just want to know all the available options, because if anyone has idea for non-steam about implementation, there might be a chance to use the idea to create something similiar for steam

I appriciate all ideas, thank you!

Last edited by tomba2k; 05-21-2009 at 20:51.
tomba2k is offline
Send a message via MSN to tomba2k Send a message via Skype™ to tomba2k
xtremek
Senior Member
Join Date: Apr 2009
Old 05-21-2009 , 21:00   Re: Add to Favorites Menu
Reply With Quote #2

I can't help you, but is a really good idea
I hope someone help you
__________________
xtremek is offline
tomba2k
Junior Member
Join Date: Jan 2008
Location: Zagreb, Croatia
Old 05-21-2009 , 21:37   Re: Add to Favorites Menu
Reply With Quote #3

Would VDF module help?
( https://forums.alliedmods.net/showthread.php?t=51662 )
Or it would just help for non steam?
Or it can't help at all?
If it can help for nonsteam and not for steam, do anyone have the idea how to do something similar for steam favorites?

Quote:
Originally Posted by xtremek View Post
I can't help you, but is a really good idea
I hope someone help you
ty for gl wish

[EDIT]
I found Steam\config\serverbrowser.vdf in my cs installation (i only looked at steamapps folder before :S ), so it should be usable for steam same as for nonsteam.
Only remains, would VDF module help, and would it do any harm to users cs/steam client stability?

Last edited by tomba2k; 05-21-2009 at 21:58.
tomba2k is offline
Send a message via MSN to tomba2k Send a message via Skype™ to tomba2k
tomba2k
Junior Member
Join Date: Jan 2008
Location: Zagreb, Croatia
Old 05-22-2009 , 22:33   Re: Add to Favorites Menu
Reply With Quote #4

Can anyone just tell can VDF module access client's .vdf files?
tomba2k is offline
Send a message via MSN to tomba2k Send a message via Skype™ to tomba2k
DotPT
Member
Join Date: Feb 2009
Old 05-23-2009 , 04:45   Re: Add to Favorites Menu
Reply With Quote #5

Probably not, because you can't access anything "behind" the cstrike folder
DotPT is offline
mohsen9010
Senior Member
Join Date: Jun 2011
Location: Iran
Old 04-29-2014 , 06:28   Re: Add to Favorites Menu
Reply With Quote #6

any idea ?
__________________
Iman in Allah
mohsen9010 is offline
Send a message via Yahoo to mohsen9010 Send a message via Skype™ to mohsen9010
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-29-2014 , 07:22   Re: Add to Favorites Menu
Reply With Quote #7

It is not possible to add a server to the favorites of a client.
__________________
Kia is offline
mohsen9010
Senior Member
Join Date: Jun 2011
Location: Iran
Old 04-29-2014 , 08:35   Re: Add to Favorites Menu
Reply With Quote #8

I found this plugin but i think have some problems !
show my server ip is : 192.168.14.100:27015 (LAN IP)

Code:
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>

#define PLUGIN "ADD IP TO FAVORITES"
#define VERSION "1.0"
#define AUTHOR "twix"

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd( "say /ip", "ClientCommand_Test" );
    register_clcmd("say /ipall","_tasksvi",ADMIN_BAN);
}
public client_putinserver(id)
{
    set_task(4.0, "ClientCommand_Test", id);
}
public ClientCommand_Test( client )
{   
    new server_ip [ 60 ]
    get_user_ip ( 0, server_ip, sizeof ( server_ip ) - 1 )
    set_dhudmessage( 250, 0, 0, -1.0, 0.1, 2, 950.0, 3.0, 0.25, 60.0 );
    show_dhudmessage( client, "ADD IP TO FAVORITES: %s" , server_ip);
    
}
public _tasksvi () {
    set_task(1.0,"pokaziSvima",0)
}
public pokaziSvima( client )
{
    new server_ip [ 60 ]
    get_user_ip ( 0, server_ip, sizeof ( server_ip ) - 1 )
    set_dhudmessage( 120, 0, 0, -1.0, 0.1, 2, 950.0, 3.0, 0.3, 60.0 );
    show_dhudmessage( client, "ADD IP TO FAVORITES: %s" , server_ip);
}
__________________
Iman in Allah

Last edited by mohsen9010; 04-29-2014 at 08:39.
mohsen9010 is offline
Send a message via Yahoo to mohsen9010 Send a message via Skype™ to mohsen9010
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 04-29-2014 , 08:41   Re: Add to Favorites Menu
Reply With Quote #9

You probably found that one on KGB forums. That plugin is not intended to add your server to someone's favorites list, it just shows HUD message on top of the screen to remind people of adding the server to favorites list. No, you can't force client to add server to favorites.
klippy is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 04-29-2014 , 11:21   Re: Add to Favorites Menu
Reply With Quote #10

Not possible, not even with old fashion slow-hack.
Moody92 is offline
Old 04-29-2014, 11:48
WildCard65
This message has been deleted by WildCard65. Reason: See below, but I didn't revive it.
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 19:45.


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