pedrola 0 Posted October 17, 2014 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. Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted October 17, 2014 atcommand "@kick "+strcharinfo(PC_NAME); Quote Share this post Link to post Share on other sites
0 pedrola 0 Posted October 18, 2014 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!!! Quote Share this post Link to post Share on other sites
0 Guest Posted October 18, 2014 Seems like there is no charakter attached, means the script does not know who to kick Quote Share this post Link to post Share on other sites
0 pedrola 0 Posted October 18, 2014 @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! Quote Share this post Link to post Share on other sites
0 Guest Posted October 18, 2014 (edited) set .@name$, "pedrola";if(attachrid(getcharid(3,.@name$))){ atcommand "@kick "+.@name$;} haven't tried it, but should work Edited October 20, 2014 by Guest Quote Share this post Link to post Share on other sites
0 pedrola 0 Posted October 19, 2014 @Normynator, this pedrola should be the acc login or the character name? but it didnt work... Quote Share this post Link to post Share on other sites
0 Guest Posted October 19, 2014 it would be really helpful if you share the script Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted October 20, 2014 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. Quote Share this post Link to post Share on other sites
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