Forum

> > CS2D > Scripts > Admin join msg
Forums overviewCS2D overview Scripts overviewLog in to reply

English Admin join msg

6 replies
To the start Previous 1 Next To the start

old Admin join msg

Logged
User Off Offline

Quote
What is wrong in this script?

1
2
3
4
5
6
7
addhook("join","adminjoin")
function adminjoin(id)
for _, usgn in ipairs(admins) do
if player(id,'usgn') == usgn then
          msg("©000000255Admin "..player(id,"name").." joined the server.")
     end
end

Thanks.

old Re: Admin join msg

MikuAuahDark
User Off Offline

Quote
missing ends!
untested >

old Re: Admin join msg

Anti-Grav
User Off Offline

Quote
1
admins = {Id1,id2}

is also missing. It has to be on the top or somewhere. Or did you remove it?

old Re: Admin join msg

EngiN33R
Moderator Off Offline

Quote
He probably only provided part of the script.

Although, seeing as he tries to use ipairs not understanding precisely where ends should go in his script, it might just be the case.

old Re: Admin join msg

Logged
User Off Offline

Quote
user EngiN33R has written
He probably only provided part of the script.

Although, seeing as he tries to use ipairs not understanding precisely where ends should go in his script, it might just be the case.


Yes. I don't understand lua very well, but I try to learn it.
Thank you all
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview