Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SendPacket
Author Message
Avatar
Journeyman
*

Posts: 172
Likes Given: 6
Likes Received: 27 in 12 posts
Joined: Apr 2012
Reputation: 5

The North Shield

Post: #1
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
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
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
Find all posts by this user Like Post Quote this message in a reply
Avatar
Journeyman
*

Posts: 172
Likes Given: 6
Likes Received: 27 in 12 posts
Joined: Apr 2012
Reputation: 5

The North Shield

Post: #3
RE: SendPacket
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.
04-26-2012 07:50 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)