Raised This Month: $ Target: $400
 0% 

new ban


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nyuszy
Senior Member
Join Date: Apr 2009
Old 08-22-2010 , 09:03   new ban
Reply With Quote #1

i try to make a new ban plugin that uses a new ban file, but i have problems...
can anybody help me?

Last edited by Nyuszy; 10-03-2010 at 11:32.
Nyuszy is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 08-22-2010 , 13:17   Re: new ban
Reply With Quote #2

Tell us, what's the problem?
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-22-2010 , 14:28   Re: new ban
Reply With Quote #3

What is wrong with the normal ban system? It is much much more efficient.
__________________
fysiks is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 08-22-2010 , 15:10   Re: new ban
Reply With Quote #4

compiler output:

Code:
new_ban.sma(89 -- 90) : error 006: must be assigned to an array
new_ban.sma(90 -- 91) : error 006: must be assigned to an array
new_ban.sma(100 -- 101) : error 006: must be assigned to an array
new_ban.sma(101 -- 102) : error 006: must be assigned to an array
but i don'n know how to correct this...

the normal cs's ban system don't work perfectly. for example somtimes the ban file was deleted...
Nyuszy is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-22-2010 , 15:21   Re: new ban
Reply With Quote #5

Use amxbans. Or advanced bans by Exolent.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 08-22-2010 , 18:04   Re: new ban
Reply With Quote #6

ok, but i want to make my own ban plugin
Nyuszy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-22-2010 , 18:36   Re: new ban
Reply With Quote #7

Quote:
Originally Posted by Nyuszy View Post
compiler output:

Code:
new_ban.sma(89 -- 90) : error 006: must be assigned to an array
new_ban.sma(90 -- 91) : error 006: must be assigned to an array
new_ban.sma(100 -- 101) : error 006: must be assigned to an array
new_ban.sma(101 -- 102) : error 006: must be assigned to an array
but i don'n know how to correct this...
You will need to learn how strings work.

Quote:
Originally Posted by Nyuszy View Post
the normal cs's ban system don't work perfectly. for example somtimes the ban file was deleted...
If that is the case then something is wrong with your HLDS and or installed mods because a properly working HLDS will not delete the ban file.

Show the output of the server command "meta list" (without the quotes of course).

Also, you can change the ban file to what ever you want. So, maybe doing so will stop it from happening if what ever is deleting it is doing by a hardcoded file name.

Put this in server.cfg:

Code:
bannedcfgfile "yourfile.cfg"
Quote:
Originally Posted by Nyuszy View Post
ok, but i want to make my own ban plugin
If you really want to do this then you must learn how to use Tries.
__________________
fysiks is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 08-24-2010 , 16:15   Re: new ban
Reply With Quote #8

i have problem with parse()...
for example:

parse("STEAM_0:0:1111111111 000.000.00.000:00000 0", arg1, 32, arg2, 32, arg3, 32) - this is not the original steamid and ip...

for "arg1 arg2 arg3" i get:
S10 10 0
Nyuszy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-24-2010 , 17:56   Re: new ban
Reply With Quote #9

Quote:
Originally Posted by Nyuszy View Post
i have problem with parse()...
for example:

parse("STEAM_0:0:1111111111 000.000.00.000:00000 0", arg1, 32, arg2, 32, arg3, 32) - this is not the original steamid and ip...

for "arg1 arg2 arg3" i get:
S10 10 0
SteamID must be in quotes for it to be interpreted as a single argument.

So, if you hard code the string like you have there you need to do:

Code:
parse("^"STEAM_0:0:1234567^" ^"000.000.00.000:00000^" ^"0^"", ...)
If reading from a file it should look like this in the file:

Code:
"STEAM_0:0:1234567" "000.000.00.000:00000" "0"
__________________

Last edited by fysiks; 08-24-2010 at 17:59.
fysiks is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 08-24-2010 , 18:11   Re: new ban
Reply With Quote #10

ok ,but i again get "S10 10 0"
Nyuszy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode