23.12.2009, 20:13
Untested.
pawn Код:
#define NAME1 "Abernethy ftw" // Change this to the first name
#define NAME2 "Abernethy for t3h win" // Change this to the second name
#define TIME 5*1000 // 5 Seconds
new bool:Name;
forward ToggleServerName();
public OnGameModeInIt()
{
SetTimer("ToggleServerName", true, TIME);
return true;
}
public ToggleServerName()
{
if (Name == false)
{
SendRconCommand("hostname "#NAME1"");
Name = true;
}
else if (Name == true)
{
SendRconCommand("hostname "#NAME2"");
}
}