07.12.2008, 16:47
I have seen some server, it changes the HostName each 5seg, how can I do this for my server?
// above main()
forward ChangeHostname();
public OnFilterScriptInit()
{
SetTimer("ChangeHostname",1000,1); // Change the, 1000 to whatever you want, in milliseconds ofc.
return 1;
}
public ChangeHostname()
{
new var = random(3);
switch (var)
{
case 0: SendRconCommand("hostname My server name 1");
case 1: SendRconCommand("hostname Server name 2");
case 2: SendRconCommand("hostname Name 3 here");
}
}
Originally Posted by •Lj•
Tez just go and play Roller Coaster Tycoon, you obviously suck at SA-MP.
You can use this as a filterscript if you want, else just change things around for it to be in gamemode format: pawn Code:
|
Originally Posted by •Lj•
Tez just go and play Roller Coaster Tycoon, you obviously suck at SA-MP.
You can use this as a filterscript if you want, else just change things around for it to be in gamemode format: pawn Code:
|