CS.RIN.RU - Steam Underground Community
http://cs.rin.ru/forum/

[Release] dproto - double protocol for HL1 based games [ARCHIVE]
http://cs.rin.ru/forum/viewtopic.php?f=15&t=52728
Page 9 of 114

Author:  crp [ Tuesday, 16 Jun 2009, 23:25 ]
Post subject:  Re: dproto - double protocol for HL1 based games

baosen wrote:
Hey Crock, can you add a feature that displays a little nag message at each corner of the screen for Prot47 clients that says "You are using an old client! Please update at this webpage: (wwwsomething)".

Like this:

[http://i44.tinypic.com/atramg.jpg

That would help pushing people to update their clients.


Realy good idea :idea:

Author:  Owyn [ Tuesday, 16 Jun 2009, 23:45 ]
Post subject:  Re: dproto - double protocol for HL1 based games

crp wrote:
baosen wrote:
Hey Crock, can you add a feature that displays a little nag message at each corner of the screen for Prot47 clients that says "You are using an old client! Please update at this webpage: (wwwsomething)".

Like this:

[http://i44.tinypic.com/atramg.jpg

That would help pushing people to update their clients.


Realy good idea :idea:

it's not up to crock, you can write such amxx plugin yourself

Author:  gromo [ Wednesday, 17 Jun 2009, 02:30 ]
Post subject:  Re: dproto - double protocol for HL1 based games

  1. cid_NoSteam47 = 8


  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <hamsandwich>
  6.  
  7. #define PLUGIN "cid_NoSteam47 = 8"
  8. #define VERSION "1.0"
  9. #define AUTHOR "Sn!ff3r"
  10.  
  11. #define UPDATETASK 10.0
  12.  
  13. static hudchannel, cvar, cvar2, cvar3, url[64], bool:is_p47[33] = false, bool:spawned[33] = false
  14.  
  15. public plugin_init()
  16. {
  17.     register_plugin(PLUGIN, VERSION, AUTHOR)
  18.    
  19.     RegisterHam(Ham_Spawn, "player", "client_spawn", 1)
  20.    
  21.     hudchannel = CreateHudSyncObj()
  22.    
  23.     cvar = register_cvar("amx_sitename", "http://cs-puchatek.pl")
  24.     cvar2 = register_cvar("amx_showmessage", "1")
  25.     cvar3 = register_cvar("amx_spawninfo", "2")
  26. }
  27.  
  28. public plugin_cfg()
  29. {   
  30.     get_pcvar_string(cvar, url, 63)
  31. }
  32.  
  33. public client_spawn(id)
  34. {
  35.     if(is_p47[id])
  36.     {
  37.         switch(get_pcvar_num(cvar3))
  38.         {
  39.             case 1: {
  40.                 if(spawned[id])
  41.                     return             
  42.                 show_a_motd(id)            
  43.                 spawned[id] = true             
  44.             }
  45.             case 2: {
  46.                 show_a_motd(id)            
  47.             }
  48.             default: {
  49.                 return
  50.             }          
  51.         }      
  52.     }   
  53. }
  54.  
  55. public client_authorized(id)
  56. {
  57.     static steamid[33]
  58.     get_user_authid(id, steamid, 32)
  59.    
  60.     if(equal(steamid, "STEAM_ID_LAN"))
  61.     {   
  62.         if(get_pcvar_num(cvar2))
  63.             set_task(UPDATETASK, "show_message", id)
  64.        
  65.         is_p47[id] = true
  66.     }
  67. }
  68.  
  69. public client_disconnect(id)
  70. {
  71.     if(task_exists(id))
  72.         remove_task(id)
  73.    
  74.     is_p47[id] = false
  75.     spawned[id] = false
  76. }
  77.  
  78. public show_message(id)
  79. {
  80.     set_hudmessage(255, 0, 0, -1.0, 0.0, 0, 6.0, UPDATETASK)
  81.     ShowSyncHudMsg(id, hudchannel, "Please update your client to v48 Version! Visit %s",url)   
  82. }
  83.  
  84. public show_a_motd(id)
  85. {
  86.     static motd[2001], len
  87.    
  88.     len = format(motd, 2000,"<body style=^"background-color: black;^">^n^n")
  89.     len += format(motd[len], 1500-len,"<center>font color=^"red^"><h1><Update your client to p48!</h1>")
  90.     len += format(motd[len], 1500-len,"<h3>Visit %s</font></h3></center>", url)
  91.    
  92.     show_motd(id, motd, "Update Your Client!")
  93. }
  94.  

  1.  
  2. amx_sitename "http://cs-puchatek.pl" // your site name
  3. amx_showmessage "1" // show centered top hudmessage - 0/1
  4. amx_spawninfo "2" // show info about update at spawn, 0 - disabled, 1 - at first spawn, 2 - at every spawn

Author:  gearfoxx [ Wednesday, 17 Jun 2009, 03:11 ]
Post subject:  Re: dproto - double protocol for HL1 based games

thanks ::D

Author:  ryab [ Wednesday, 17 Jun 2009, 05:13 ]
Post subject:  Re: dproto - double protocol for HL1 based games

another one.
Use this plugin if you want to move users to protocol 48.
Before compile you must setup defines
DPROTO_P47_AUTH - depends from cid_NoSteam47 in dproto.cfg
URL_PATCH - f.e. http://rapidshare.com/files/242660692/cs16_v40_ns.exe
URL_FORUM - f.e. viewtopic.php?f=10&t=50126

and setup cvar's amx_a48_mode and amx_a48_delay.
modes:
1 = show motd with announcement after every <amx_a48_delay> death
2 = kick with announcement in console after <amx_a48_delay> death
3 = kick with announcement in console after team select
4 = kick with announcement in console after first death
5 = show motd with announcement after <amx_a48_delay> death and kick after next <amx_a48_delay> death

Attachments:
announcement48p.7z [2.54 KiB]
Downloaded 97 times

Author:  Zenyai [ Wednesday, 17 Jun 2009, 12:22 ]
Post subject:  Re: dproto - double protocol for HL1 based games

Hey can anyone make this for me.

When the player join the game. It check if there steam or not and change the player name

When [Non-Steam]
change his name from "Zenyai" to "[Non-Steam]Zenyai"
and if he is on steam don't change his name.

I've found this idea from
viewtopic.php?f=10&t=50689&start=600
but I can't download it Don't know why it said Unable to deliver file.

Big thank,
Sorry for my bad english

Author:  RessourectoR [ Wednesday, 17 Jun 2009, 18:13 ]
Post subject:  Re: dproto - double protocol for HL1 based games

Owyn wrote:
crp wrote:
baosen wrote:
Hey Crock, can you add a feature that displays a little nag message at each corner of the screen for Prot47 clients that says "You are using an old client! Please update at this webpage: (wwwsomething)".

Like this:

[http://i44.tinypic.com/atramg.jpg

That would help pushing people to update their clients.


Realy good idea :idea:

it's not up to crock, you can write such amxx plugin yourself



Yea, like ryab just did. Well done, by the way!
..but it would be much better if it were included into dproto. It's actually the perfect idea. Let your server run with that for 3 months and then switch to 48 only. Should work, shouldn't it?

Author:  iggy_bus [ Wednesday, 17 Jun 2009, 18:36 ]
Post subject:  Re: dproto - double protocol for HL1 based games

ryab wrote:
another one.
Use this plugin if you want to move users to protocol 48.
Before compile you must setup defines
DPROTO_P47_AUTH - depends from cid_NoSteam47 in dproto.cfg
URL_PATCH - f.e. http://rapidshare.com/files/242660692/cs16_v40_ns.exe
URL_FORUM - f.e. viewtopic.php?f=10&t=50126

and setup cvar's amx_a48_mode and amx_a48_delay.
modes:
1 = show motd with announcement after every <amx_a48_delay> death
2 = kick with announcement in console after <amx_a48_delay> death
3 = kick with announcement in console after team select
4 = kick with announcement in console after first death
5 = show motd with announcement after <amx_a48_delay> death and kick after next <amx_a48_delay> death


I put this on my server and nothing happends
[ 25] Announcement 48p 0.0.1 ryab announcement48p running

this is ok too:
DPROTO_P47_AUTH - depends from cid_NoSteam47 in dproto.cfg

:S

-- Edit --

now even worse, it only works with mode 3 and it also kicks legit steam clients :S

Author:  Flasher [ Wednesday, 17 Jun 2009, 21:27 ]
Post subject:  Re: dproto - double protocol for HL1 based games

RessourectoR wrote:
Yea, like ryab just did. Well done, by the way!
..but it would be much better if it were included into dproto. It's actually the perfect idea. Let your server run with that for 3 months and then switch to 48 only. Should work, shouldn't it?
I don't think that this will be so fast. But this is good idea overall. Just to show info about update. After few month, I think, we can start allowing old clients to play limited time per session, but allowing to reconnect. This is not hard annoying, but can rouse them to download the patch.

PS As for me, AMXX plugin is just fine for this.

Author:  supermega [ Wednesday, 17 Jun 2009, 22:10 ]
Post subject:  Re: dproto - double protocol for HL1 based games

Zenyai wrote:
Hey can anyone make this for me.

When the player join the game. It check if there steam or not and change the player name

When [Non-Steam]
change his name from "Zenyai" to "[Non-Steam]Zenyai"
and if he is on steam don't change his name.

I've found this idea from
viewtopic.php?f=10&t=50689&start=600
but I can't download it Don't know why it said Unable to deliver file.

Reuploaded (ns_name_prefix.amxx): http://www.sendspace.com/file/8bok74
CVAR:
amx_ns_prefix "[Non-Steam] "

Attachments:
ns_name_prefix.zip [2.73 KiB]
Downloaded 81 times

Author:  Reitak [ Wednesday, 17 Jun 2009, 22:57 ]
Post subject:  Re: dproto - double protocol for HL1 based games

OK guys, so server with 2 protocols end? no crack in future? change all version 47 to 48?

Author:  Flasher [ Thursday, 18 Jun 2009, 01:48 ]
Post subject:  Re: dproto - double protocol for HL1 based games

Reitak
No. Why?

Author:  Zenyai [ Thursday, 18 Jun 2009, 03:18 ]
Post subject:  Re: dproto - double protocol for HL1 based games

supermega wrote:
Zenyai wrote:
Hey can anyone make this for me.

When the player join the game. It check if there steam or not and change the player name

When [Non-Steam]
change his name from "Zenyai" to "[Non-Steam]Zenyai"
and if he is on steam don't change his name.

I've found this idea from
viewtopic.php?f=10&t=50689&start=600
but I can't download it Don't know why it said Unable to deliver file.

Reuploaded (ns_name_prefix.amxx): http://www.sendspace.com/file/8bok74
CVAR:
amx_ns_prefix "[Non-Steam] "


Big thank :D :D :D :D

Author:  ryab [ Thursday, 18 Jun 2009, 06:55 ]
Post subject:  Re: dproto - double protocol for HL1 based games

iggy_bus wrote:
ryab wrote:
another one.
Use this plugin if you want to move users to protocol 48.

now even worse, it only works with mode 3 and it also kicks legit steam clients :S

Oooops. Sorry, v.0.0.2 in attach :)

Attachments:
announcement48p.7z [2.4 KiB]
Downloaded 79 times

Author:  Reitak [ Thursday, 18 Jun 2009, 08:40 ]
Post subject:  Re: dproto - double protocol for HL1 based games

Flasher wrote:
Reitak
No. Why?


because last few posts are for end 2 protocols, are for only protocol 47. i can't write it english, because my english is not good, but i think you know what i am meaning :D

Page 9 of 114 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/