Jump to content
  • 0
pedrola

Disconnect a player

Question

8 answers to this question

Recommended Posts

  • 0

Hi evilpuncker! Tnx for u answer. I did what u told me but i got this message:

 

17:18:00,851: [Debug]: Function: strcharinfo (1 parameter):
17:18:00,864: [Debug]: Data: number value=0
17:18:00,872: [Debug]: Source (NPC): SysVip#clock (invisible/not on a map)
 
how can I solve this?
 
TY!!!

Share this post


Link to post
Share on other sites
  • 0
Guest

Seems like there is no charakter attached, means the script does not know who to kick

Share this post


Link to post
Share on other sites
  • 0
Guest
set .@name$, "pedrola";if(attachrid(getcharid(3,.@name$))){   atcommand "@kick "+.@name$;}

 

 

 

 haven't tried it, but should work
Edited by Guest

Share this post


Link to post
Share on other sites
  • 0

Hi guys, id like to know if anyone knows how do I disconnect a player at 18:00 oclock with a function like this:

OnClock1800:

??

end;

 

Thx guys.

Disconnect a Player:

OnClock1800:set .@name$,"PlayerName";atcommand "@kick "+.@name$;end;

Disconnect All Players(Including GM's):

OnClock1800:atcommand "@kickall";end;

else explain a little bit more, so we can know exactly what you are trying to do.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.