04-22-2012, 20:11 (This post was last modified: 04-22-2012, 21:46 by DidUknowiPwn.)
(04-22-2012, 19:55)OzonE Wrote: Yeah, i forgot too say its !plus
thats the bug , says prevented , but it did not, i think all about the servercommand line , i think its a syntax error in there
Ok so the code JariZ sent me messed up the whole plugin... just replaced with ban instead of kick.. hope this works...
No errors when compiled it but when I put it in my plugins folder it didn't even load again!
04-22-2012, 21:47 (This post was last modified: 04-22-2012, 23:00 by DidUknowiPwn.)
Ok so now is my final post for the day I think xP... but ya I replaced kick with banclient but it doesn't kick or dropclient or ban anyone b/c it doesn't get the clientnum first it should be that first it finds the clientnum of the player and then kicks/bans the person
(04-22-2012, 19:55)OzonE Wrote: Yeah, i forgot too say its !plus
thats the bug , says prevented , but it did not, i think all about the servercommand line , i think its a syntax error in there
Ok so the code JariZ sent me messed up the whole plugin... just replaced with ban instead of kick.. hope this works...
No errors when compiled it but when I put it in my plugins folder it didn't even load again!
My fault didn't compile it as framework 3.0 xP... But still it doesn't kick player on entry it tries but it just fails... Server console shows that "ban playername" i'm guessing client num isn't working.
04-24-2012, 08:55 (This post was last modified: 04-24-2012, 08:58 by OzonE.)
Use this , should work... (not sure)
Code:
if (fwords.Contains(x))
ServerSay("^7BadName Plugin ^1Prevented Connection of A ^5Badname Player!", true);
ServerCommand("dropclient" + Client.ClientNum + "\" Bad Name, ^1Fuck Off!\"");
// try this too : clientkick (or kickclient (im not sure about it :P))
EDIT : this works , but it does not show the "Bad name , Fuck Off" message , anybody has any idea?
04-24-2012, 15:10 (This post was last modified: 04-24-2012, 16:45 by DidUknowiPwn.)
(04-24-2012, 08:55)OzonE Wrote: Use this , should work... (not sure)
Code:
if (fwords.Contains(x))
ServerSay("^7BadName Plugin ^1Prevented Connection of A ^5Badname Player!", true);
ServerCommand("dropclient" + Client.ClientNum + "\" Bad Name, ^1Fuck Off!\"");
// try this too : clientkick (or kickclient (im not sure about it :P))
EDIT : this works , but it does not show the "Bad name , Fuck Off" message , anybody has any idea?
Think I know what it is.. Will try it soon it's like 7 AM for me still sleeping
(04-24-2012, 15:10)DidUknowiPwn Wrote:
(04-24-2012, 08:55)OzonE Wrote: Use this , should work... (not sure)
Code:
if (fwords.Contains(x))
ServerSay("^7BadName Plugin ^1Prevented Connection of A ^5Badname Player!", true);
ServerCommand("dropclient" + Client.ClientNum + "\" Bad Name, ^1Fuck Off!\"");
// try this too : clientkick (or kickclient (im not sure about it :P))
EDIT : this works , but it does not show the "Bad name , Fuck Off" message , anybody has any idea?
Think I know what it is.. Will try it soon it's like 7 AM for me still sleeping
So replaced the same lines but when I compiled it and put it into my plugins folder no plugin loaded >_>
04-24-2012, 16:58 (This post was last modified: 04-24-2012, 17:33 by DidUknowiPwn.)
Plugin still doesn't work for me.. getting this error message "bad slot '0'" also add a space after dropclient
WORK
Quote: (report) iAegle - 24-04 17:09 -- hmmkAYH
(report) iAegle - 24-04 17:09 -- because it cannot kick someone that didn't join just yet
(report) DidUknowiPwn - 24-04 17:09 -- nope
(report) iAegle - 24-04 17:08 -- do you call this OnCheckBan ?
100% fixed! Use this
Code:
ServerCommand("kickclient " + Client.ClientNum);
you dummy >_> you aren't supposed to include anything after ClientNum.. I already tested this and it works[/quote]
I'll upload 2 versions 1 that kicks the player only and 1 that bans the player permanently.