18.12.2010, 00:34
pawn Код:
public OnGameModeInit()
{
SetTimer("SetServerName",5000,1);//timer SetServerName, 5000 ms (5secs), looping true
pawn Код:
forward SetServerName()
public SetServerName()
{
switch(random(3)) // change this to the ammount of random names
{
// cases start with zero not with one
case 0: SendRconCommand("hostname TDM"); // hostname TDM sets the name to TDM
case 1: SendRconCommand("hostname DM War of nations");
case 2: SendRconCommand("hostname www.tdm.com");
return 1;
}
}