Avatar
Journeyman
Posts: 172
Likes Given: 6
Likes Received: 27 in 12 posts
Joined: Apr 2012
Reputation: 5
The North Shield
|
SendPacket
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.
|
|
04-25-2012 10:13 PM |
|
|
darksun84
Sir Spamalot
Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35
|
RE: SendPacket
here there is a packet list http://docs.polserver.com/packets/index....ll=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]
|
|
04-25-2012 10:45 PM |
|
|