SA-MP Forums Archive
make server name animate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: make server name animate (/showthread.php?tid=93240)



make server name animate - kidx - 24.08.2009

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


Re: make server name animate - JaTochNietDan - 24.08.2009

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


Re: make server name animate - Joe Staff - 24.08.2009

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


Re: make server name animate - kidx - 24.08.2009

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


Re: make server name animate - shady91 - 24.08.2009

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


Re: make server name animate - kidx - 24.08.2009

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.