Jump to content
  • 0
pedrola

Disconnect a player

Question

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.

Share this post


Link to post
Share on other sites

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

@Normynator, Hi bro. I have  a script to change the vip status when it done but i need to disconnect the character if its online, do u have any idea? TY!

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
Guest

it would be really helpful if you share the script

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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