SA-MP Forums Archive
Constant server hostname change? - 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: Constant server hostname change? (/showthread.php?tid=114521)



Constant server hostname change? - DeltaAirlines12 - 19.12.2009

How would i make it so my server's host name changes every few seconds like this one? : 67.228.177.42:3700


Re: Constant server hostname change? - LarzI - 19.12.2009

Use a timer and SendRconCommand


EDIT: example :P

pawn Код:
forward HostNameChange();

public OnGameModeInit()
{
    SetTimer( "HostNameChange", true, 10*1000 ); //timer will execute every 10th second
    return true;
}

public HostNameChange()
{  
    //here do the hostname change
}