[HELP] Auto change name of server.
#1

Hello, guys
How to change my server name again and again like few servers do their names get changed after few seconds or minutes i wanna do it with mine server please help about it.
Reply
#2

Just send it to edit the config.
Reply
#3

Ok

Код:
(Set a timer)
SendRconCommand("hostname (What ever you want)");
Reply
#4

pawn Код:
new hn;//global variable
pawn Код:
//Under ongamemodeinit
SetTimer("changehost", 3000,1); // it will change the server name after every 3 seconds
pawn Код:
forward changehost();
public changehost()
{
switch(hn)
{
case 0:
{
SendRconCommand("hostname the name u want");
 hn++;
}
case 1:
{
SendRconCommand("hostname the name u want");
 hn++;
}
case 2:
{
SendRconCommand("hostname the name u want");
hn = 0;
}
}
return 1;
 }
You can do it how much names you want
Reply
#5

Thank's, guys
Reply
#6

Not Working tell me where i have to Add? i am telling you lines..

Really Help me i want that and Get REP+
Reply
#7

its Working Yes i fixed it and rep+ thanks for Help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)