server name
#1

This might be a noob question, well i forgot how to do this so can people remind me. How do i make multi server names "Hostname"
Reply
#2

Make some defines.

pawn Код:
#define HOSTNAME1 "hostname host-1"
#define HOSTNAME2 "hostname host-2"
#define HOSTNAME3 "hostname host-3"
// etc
Then create some callbacks and a timer and every and change the hostname every 10 seconds.

pawn Код:
forward Hostname1();
public Hostname1()
{
 SetTimer("Hostname2", 10000, 0);
 return 1;
}

forward Hostname2();
public Hostname2()
{
 SendRconCommand(HOSTNAME2);
 SetTimer("Hostname3", 10000, 0);
 return 1;
}
Reply
#3

ok thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)