13.09.2009, 00:27
Quote:
Originally Posted by uhumaham
How can I make an automatic host name changer?
|
pawn Код:
new Name;
forward ChangeName();
public ChangeName()
{
switch(Name)
{
case 0:
{
SendRconCommand("hostname your new name 1");
Name++;
}
case 1:
{
SendRconCommand("hostname your new name 2");
Name= 0;
}
}
return 1;
}
// add this under ongamemodeinit it will change every 17 seconds
SetTimer("ChangeName",17000,1);