Forum

> > CS2D > Scripts > [request]how to edit this script
Forums overviewCS2D overview Scripts overviewLog in to reply

English [request]how to edit this script

1 reply
To the start Previous 1 Next To the start

old [request]how to edit this script

super123s
User Off Offline

Quote
hi/i 'm Agent /today i need some help for edit this script
i have admin .lua
Spoiler >

i want cmd arrest/free/kick for admin level2/3 use
so i change it to this
Spoiler >

     
                    
and i get some error
1
LUA ERROR:sys/lua/admin.lua:179'end' expected{to close 'function' at line 28.
please help me to edit it

old Re: [request]how to edit this script

Apache uwu
User Off Offline

Quote
This is due to very crappy tabbing. You don't know how to tab at all.

Fixed.
More >


Oh btw somewhere I saw

1
2
3
4
5
6
7
8
9
10
if player(pl,"exists") then
     local ip = player(pl, "ip")
     local usgn = player(pl, "usgn")
     if ip then
          parse("banip "..ip)
     end
     if usgn then
          parse("banusgn "..usgn)
     end
end

That's pointless because usgn will return 0, not nil. Just run those 2 parses normally and cs2d won't ban usgn 0.

EDIT: Excuse my tabbing in the [code][/code] my text editor is crappy
edited 1×, last 24.07.11 06:25:00 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview