Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 17:51

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help Needed, Kick Command : )

Discussion on Help Needed, Kick Command : ) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Help Needed, Kick Command : )

Alrite i made this so far , Yet it kicks me insted of the user i set the name to, : )

Code:
if (Cmd[0] == "/kick")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                GC.Disconnect();
                        }
This is for 5165 FTW!!!
-Shunsui- is offline  
Old 01/26/2010, 04:55   #2
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
Replace with
Code:
                        if (Cmd[0] == "/kick")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.MyClient.Disconnect();
                        }
spare2 is offline  
Thanks
1 User
Old 01/26/2010, 22:30   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by -Shunsui- View Post
Alrite i made this so far , Yet it kicks me insted of the user i set the name to, : )

Code:
if (Cmd[0] == "/kick")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                GC.Disconnect();
                        }
This is for 5165 FTW!!!
Yes, as he said you made a small mistake.
First you make a reference to a class and call it C, and afterwards you use GC, which is a completely different class. So what you did is, you disconnected yourself, or closed a socket, not sure what GC is, and what you should do is, disconnect the Character's client. Anyway, now the more important part, make sure it saves the character before it disconnects him, not sure if this is added in the disconnect void, but check this.
Basser is offline  
Reply


Similar Threads Similar Threads
kick hack selber kick
11/15/2010 - Metin2 - 1 Replies
Hallo benutzte son 1 hit hack. Wenn ich auf Gaul lvl bekomme ich dann Kick :( woran liegt das?????
Need the command CPS!
02/14/2010 - CO2 Private Server - 5 Replies
Need the commands cps to PM,patch 5089 :] Thx:)
GM Command
09/19/2008 - Flyff Private Server - 5 Replies
Woltl ma wissen wie man Sich unsichtbar macht als GM? wenn ich unter Debug -Hide Player- Mache dann sehn mich alle noh



All times are GMT +2. The time now is 17:51.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.