Disconnect a player

pedrola

New member
Messages
15
Points
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.

 
atcommand "@kick "+strcharinfo(PC_NAME);

 
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!!!
 
Seems like there is no charakter attached, means the script does not know who to kick

 
@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!

 
Code:
set .@name$, "pedrola";if(attachrid(getcharid(3,.@name$))){   atcommand "@kick "+.@name$;}
 haven't tried it, but should work
 
Last edited:
@Normynator, this pedrola should be the acc login or the character name?

but it didnt work...

 
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.

 
Last edited by a moderator:
Back
Top