Jump to content
  • 0

pomoc Admin Příkaz - restart serveru


-FK-hofmiktom

Dotaz

Zdravím, potřeboval bych příkaz abych když jsem admin (mám svůj AS) třeba lvlu 2 abych napsal /restart a do chatu to napíše administrátor (jméno) spustil restart serveru - proběhne za 5 vteřin a nastavil by se timer na 5 vteřin a za 5 vteřin by se restartoval server jako když dáme /rcon gmx 

 

PS: a pokud možno aby šlo do príkazu i důvod takže by zpráva ToAll vypdala asi takto: Administrátor (jménoadmina) spustil restart serveru - restart proběhne za 5 vteřin (Důvod : Update GM)

 

tak předem díky :)

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0

příkaz si udělat snad umíš
 

podmínka, jestli je admin
zjistíš mu jméno
format(String, sizeof(String,.......
SendClientMessageToAll(String)

Settimer(funkce)
........................
public funkce{
proměnná něco;
GameTextForAll
proměnná ++;
if(proměnná > 5){
KillTimer(funkce)
SendRconCommand(gmx)
}}


 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...