Forum

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

English Admin log in after join

6 replies
To the start Previous 1 Next To the start

old Admin log in after join

Manny
User Off Offline

Quote
Hi, i'm working on my own admin lua script. If now player joins, script checks if player's USGN is in array of admin's USGN. If it is there, it will automatically set this player as admin.

The question is. How can I do command:
rcon_pw SECRET_PASSWORD

for this player from server side?

I'd like to log in this player as admin after he joins the game if lua script detects it is admin.

old Re: Admin log in after join

Manny
User Off Offline

Quote
Thanks for reply. Is there any other way to log in player as admin from server side? Some function like SetAdmin(PlayerID)? All i need is to set to some player admin rights for kick & ban.

old Re: Admin log in after join

EngiN33R
Moderator Off Offline

Quote
You can make it through say functions or menu, for example
1
if (txt:sub(1,5)=="@kick") then parse("kick "..tonumber(txt:sub(6)))
and make it only parseable if the player who said it is an admin (is in the table).

old Re: Admin log in after join

Manny
User Off Offline

Quote
Yea, that's true. But if you log in as admin with "rcon_pw XXX", you get new options if you press ESC (there is nice table for kicking or baning players). That's the reason why i'm asking for it
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview