21.08.2010, 15:00
(
Последний раз редактировалось BlackFin; 21.08.2010 в 15:15.
)
Acho que assim da
Edit: tenta agora!
pawn Код:
forward ServerNames();
new SVNAMES[2][256] = {
"[WinG]• Paraquedismo Brasil •[BasE]",
"[WinG]• Paraquedismo Brasil •[BasE]"
};
forward ServerNames2();
new SVNAMES2[2][256] = {
"[WinG]• Parachuting Brazil •[BasE]",
"[WinG]• Parachuting Brazil •[BasE]"
};
forward ServerNames3();
new SVNAMES3[2][256] = {
"[WinG]• Base Jumping •[BasE]",
"[WinG]• Base Jumping •[BasE]"
};
forward ServerNames4();
new SVNAMES4[2][256] = {
"[WinG]• Portuguese/English •[BasE]",
"[WinG]• Portuguese/English •[BasE]"
};
forward ServerNames5();
new SVNAMES5[2][256] = {
"[WinG]• Wingsuit-Base Jumping •[BasE]",
"[WinG]• Wingsuit-Base Jumping •[BasE]"
};
new SVNAMETIMER;
SVNAMETIMER = SetTimerEx("ServerNames",2000,1);
public ServerNames()
{
KillTimer(SVNAMETIMER);
new string[256];
new random1 = random(sizeof(SVNAMES));
format(string, sizeof(string), "hostname %s", SVNAMES[random1] );
SendRconCommand(string);
new SVNAME1TIMER;
SVNAME1TIMER = SetTimerEx("ServerNames2",2000,1);
return 1;
}
public ServerNames2()
{
KillTimer(SVNAME1TIMER);
new string[256];
new random2 = random(sizeof(SVNAMES2));
format(string, sizeof(string), "hostname %s", SVNAMES2[random2] );
SendRconCommand(string);
new SVNAME2TIMER;
SVNAME2TIMER = SetTimerEx("ServerNames3",2000,1);
return 1;
}
public ServerNames3()
{
KillTimer(SVNAME2TIMER);
new string[256];
new random3 = random(sizeof(SVNAMES3));
format(string, sizeof(string), "hostname %s", SVNAMES3[random3] );
SendRconCommand(string);
new SVNAME3TIMER;
SVNAME3TIMER = SetTimerEx("ServerNames4",2000,1);
return 1;
}
public ServerNames4()
{
KillTimer(SVNAME3TIMER);
new string[256];
new random4 = random(sizeof(SVNAMES4));
format(string, sizeof(string), "hostname %s", SVNAMES4[random4] );
SendRconCommand(string);
new SVNAME4TIMER;
SVNAME4TIMER = SetTimerEx("ServerNames5",2000,1);
return 1;
}
public ServerNames5()
{
KillTimer(SVNAME4TIMER);
new string[256];
new random5 = random(sizeof(SVNAMES5));
format(string, sizeof(string), "hostname %s", SVNAMES5[random5] );
SendRconCommand(string);
new SVNAMETIMER;
SVNAMETIMER = SetTimerEx("ServerNames1",2000,1);
return 1;
}