06.09.2013, 08:53
That tutorial is wrong maked
that " don't have to be there
and also here
Just a little bit easy
that " don't have to be there
pawn Код:
format(str, sizeof(str), "hostname %s", HName1");
pawn Код:
format(str, sizeof(str), "hostname %s", HName2");
Just a little bit easy
pawn Код:
#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);
}
}
}