make server name animate
#1

how can i make my server name animate when they vew it in sa-mp.
Reply
#2

Make a timer and a function, like so:

pawn Код:
forward ChangeSName(); //Start of script

new name_State;

SetTimer("ChangeSName",60000,1); // Every 60 seconds, put this under OnGameModeInit

public ChangeSName()
{
  switch(name_State)
  {
    case 0:
    {
      SendRconCommand("hostname My server");
      name_State++;
    }
    case 1:
    {
      SendRconCommand("hostname My server 2");
      name_State = 0;
    }
  }
  return 1;
}
This is an example
Reply
#3

Remember that the stats (along with the host name) only update once per 10 seconds. Only the ping updates once per second.
Reply
#4

should i make it part of the gamemore or a filterscript whats the best way.
Reply
#5

what do you mean if you want it to change quicker then change the timer.
Reply
#6

i want it to switch server name from my server host name to description you know what i mean if you know how to do that please let me know.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)