Forum

> > CS2D > Scripts > Lua mapchange ?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua mapchange ?

20 replies
Page
To the start Previous 1 2 Next To the start

old Re: Lua mapchange ?

kch
User Off Offline

Quote
i made it more easier :

1
2
3
4
5
6
7
8
9
addhook("say" , "ALLCMD")
function ALLCMD(id,message)
        parts = message:split(' ')
        for _, usgn in ipairs(adminlist) do
                if player(id,'usgn') == usgn then
               
                        --Here are all the commands. parts[1] = first part of command, parts[2] = second part. Example '!specmode 2' parts[1]='!specmode' parts[2] = '2'
                        if (parts[1] == "!map") then
                                parse("sv_map " .. parts[2])
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview