AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   new ban (https://forums.alliedmods.net/showthread.php?t=136044)

Nyuszy 08-22-2010 09:03

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

naven 08-22-2010 13:17

Re: new ban
 
Tell us, what's the problem?

fysiks 08-22-2010 14:28

Re: new ban
 
What is wrong with the normal ban system? It is much much more efficient.

Nyuszy 08-22-2010 15:10

Re: new ban
 
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...

ot_207 08-22-2010 15:21

Re: new ban
 
Use amxbans. Or advanced bans by Exolent.

Nyuszy 08-22-2010 18:04

Re: new ban
 
ok, but i want to make my own ban plugin

fysiks 08-22-2010 18:36

Re: new ban
 
Quote:

Originally Posted by Nyuszy (Post 1278999)
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 (Post 1278999)
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 (Post 1279158)
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.

Nyuszy 08-24-2010 16:15

Re: new ban
 
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

fysiks 08-24-2010 17:56

Re: new ban
 
Quote:

Originally Posted by Nyuszy (Post 1280814)
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"

Nyuszy 08-24-2010 18:11

Re: new ban
 
ok ,but i again get "S10 10 0"


All times are GMT -4. The time now is 21:57.

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