ClientVersion - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: ClientVersion (/Thread-ClientVersion) |
ClientVersion - larmc20 - 06-13-2013 02:20 PM Hello Guys. I'am Trying to make a Client Version Script, but I nedd some help. PHP Code: [function f_clientversion] I added this here. Code: // This function is called after client entered the password. What Am I doing Wrong? RE: ClientVersion - Shaklaban - 06-13-2013 02:25 PM clientversion returns string, you need to use strcmp. RE: ClientVersion - Gyros - 06-13-2013 07:25 PM if !strmatch("<clientversion>","5.0.2") RE: ClientVersion - larmc20 - 06-13-2013 11:09 PM Thanks mates... well. It's complicated. When I type .f_clientversion the function ocurrs correctly... but When I log in nothing happends... I tried like this: PHP Code: [function f_onaccount_login] And Like this: Insted typing here [function f_onaccount_login], I tried: PHP Code: [function f_clientversion] But I don't know why the function is never triggered when the char log in... RE: ClientVersion - Breaker - 06-14-2013 03:07 AM PHP Code: [FUNCTION f_onaccount_login] Code: Packet Name: Login Denied RE: ClientVersion - larmc20 - 06-14-2013 08:35 AM Thanks Breaker. I realized the problem is deeper than i thought. Well. If i block unencrypted clients to log in, this script work really fine, and allow only client 5.0.2 to log in. however, I need players to use Injection, EUO, RAZOR... If I allow them to log in with unencrypted client they will log in using injection or razor using 3.0.0c client which there is lots 'n lots of bug. What I'd like to know is if there is a way to let them log in using razor, EUO, stealth or injection but ONLY with client 5.0.2. RE: ClientVersion - Breaker - 06-14-2013 11:54 PM For this need make client custom protection (by DLL for client\server) as lil.dll \ modifed wsock32.dll. You need find programmer for write wsock32.dll with yours checks and inject this dll for server and clients. imho Library "lil.dll" writted by Fallout on C language. But can write analog on delphi, or other language. RE: ClientVersion - larmc20 - 06-15-2013 06:22 AM well, Now I see the big black hole mate... Got fuc**d up... LOL I'll talk to some friend 'n see what they can do for that... thanks for the advise! RE: ClientVersion - larmc20 - 06-16-2013 02:52 AM Well guys. I think I got it.... At least here is working with razor and other macro programs, and allow only 5.0.2 to log in even if change the encryption. I dont have Injection yet, so I couldnt test with that. But I think will work fine. PHP Code: [DIALOG d_Clientversion] |