SphereCommunity
SendPacket - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: SendPacket (/Thread-SendPacket)



SendPacket - Avatar - 04-25-2012 10:13 PM

Hi everyone,

I'm looking for sendpacket to disconnect player from server.

I know there is .disconnect but The thing that I'm doing is different than usual. For staff, I want to do that since you know there is prevelence level to disconnect someone from server. I have 3rd party program which recongize who is staff or not then according to that it does some work. At this point, while checking, I just want to disconnect staff, if someone tries password of staff and login, There is also another password which is differentten login password. At that point, I just check if the password is entered correct, then disconnect whoever try.

In short, I just need sendpacket to disconnect user from server.
In spherewiki, there is a little information about sendpackets.

Thanks in advance.


RE: SendPacket - darksun84 - 04-25-2012 10:45 PM

here there is a packet list http://docs.polserver.com/packets/index.php?ShowAll=1&Sort=

Maybe you can use the function f_onaccount_login that is found in sphere_serv_triggers.scp

// This function is called after client entered the password.
// ARGS --> username of the client logging in
// ARGO --> the client logging in
// RETURN
// 0 --> normal action (login)
// 1 --> disconnect the client
[FUNCTION f_onaccount_login]


RE: SendPacket - Avatar - 04-26-2012 07:50 AM

Thank you, but I know how to use f_onaccount_login. The thing I want is different since I just want to make after logining. I'll be looking at sendpackets at polserver.