06.09.2013, 08:25
How to change the server name every 4 seconds? I saw that on a server and i want to do that , if you can help me i will rep you
format(str, sizeof(str), "hostname %s", HName1");
format(str, sizeof(str), "hostname %s", HName2");
#include <a_samp>
#define S_NAME1 "Modify Here"
#define S_NAME 2 "Modify Here"
#define S_NAME 3 "Modufy Here"
#define TIMER_CHANGE 4000
public OnGameModeInit()
{
SetTimer("SetNameServer", TIMER_CHANGE , true);
return 1;
}
forward SetNameServer();
public SetNameServer()
{
new r = random(3)
switch(r)
{
case 0:
{
new str[128];
format(str, sizeof(str), "hostname %s", S_NAME1);
SendRconCommand(str);
}
case 1:
{
new str[128];
format(str, sizeof(str), "hostname %s", S_NAME1);
SendRconCommand(str);
}
case 2:
{
new str[128];
format(str, sizeof(str), "hostname %s", S_NAME1);
SendRconCommand(str);
}
}
}
new r = random(3);
new r = random(3);
This forum requires that you wait 120 seconds between posts. Please try again in 13 seconds.