Forum

> > CS2D > Scripts > Admin log in after join
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Admin log in after join

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Admin log in after join

Manny
User Off Offline

Zitieren
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.

alt Re: Admin log in after join

Manny
User Off Offline

Zitieren
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.

alt Re: Admin log in after join

EngiN33R
Moderator Off Offline

Zitieren
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).

alt Re: Admin log in after join

Manny
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht