Host name changer?
#1

How can I make an automatic host name changer?
Reply
#2

Quote:
Originally Posted by uhumaham
How can I make an automatic host name changer?
Have You Searched as many topics have been made for this.

pawn Код:
new Name;

forward ChangeName();

public ChangeName()
{
  switch(Name)
  {
    case 0:
    {
      SendRconCommand("hostname your new name 1");
      Name++;
    }
    case 1:
    {
      SendRconCommand("hostname your new name 2");
      Name= 0;
    }
  }
  return 1;
}

// add this under ongamemodeinit it will change every 17 seconds
SetTimer("ChangeName",17000,1);
Reply
#3

This will actually write the given text in the console. (sa-mp server.exe)
Reply
#4

Quote:
Originally Posted by uhumaham
This will actually write the given text in the console. (sa-mp server.exe)
it changes your host name.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)