Set Gamemode password for certain time
#1

Hi,

I want when OnGameModeInit lock my server and after 50 seconds unlock him, because am loading something and i don't want that anybody connect.
Reply
#2

Should be enough:
pawn Код:
forward RemovePass();
public RemovePass()
{
    SendRconCommand("password 0");
}

public OnGameModeInit()
{
    SendRconCommand("password soashrti3Q599hfyYThg5");
    SetTimer("RemovePass", 1000 * 50, false);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)