command

06/27/2010 07:03 daniel7851109#1
Using:CoSX Source

hey guys i have my p server and i am PM and i have a normal the name of it is test1 i do /kick test1 ok so it gets dc so now my other friend has an acc name xSplashx i do /kick xSplashx and nothing happens i get a error on my CoSX console
06/27/2010 08:24 Arcо#2
Wait so what do you want?
You're not making it clear.
06/27/2010 10:53 ~Master#3
Could you screenshot the error and post it here?
06/27/2010 17:14 daniel7851109#4
Quote:
Originally Posted by .Arco View Post
Wait so what do you want?
You're not making it clear.
i want to get to kick like all players like the name like i only can kick my character name test1 and i cant kick my friend character name xSplashx
06/27/2010 17:19 Arcо#5
if (Cmd[0] == "/kick")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null)
C.MyClient.Disconnect();
}
06/27/2010 17:38 daniel7851109#6
it still didn't work i am making a vid to show u
06/27/2010 17:56 daniel7851109#7


thats my test acc if u can see i get to do the /kick command with it im uploading the other video


[Only registered and activated users can see links. Click Here To Register...]
06/27/2010 18:21 daniel7851109#8
[Only registered and activated users can see links. Click Here To Register...]
06/27/2010 23:55 Arcо#9
Instead of double/triple posting, use the edit button.
Also, did you compile the source?
And also, the command is case sensitive so if the characters name is ArCoTeMpLe the command would be /kick ArCoTeMpLe