Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Block account ID from playing. (Multiple Server)


ccjosh

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   6
  • Joined:  11/13/12
  • Last Seen:  

So, currently I have two running servers in a VPS. They share 1 login database.

I want to restrict a GM account from the 1st server from playing in the 2nd server.


Basically, when that account ID logged in (after choosing a character) to the 2nd server. It kicks that account out.

 

Big thanks!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

-    script    OnPCLoginEvent#GMCheck    -1,{

OnPCLoginEvent:

    if (getcharid(3) == 2000000) {

         mes "You can't login on this server.";

         close2;

atcommand "@kick "+ strcharinfo(0);

    }

    end;

}

  • Upvote 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...