13.09.2009, 00:09
How can I make an automatic host name changer?
Originally Posted by uhumaham
How can I make an automatic host name changer?
|
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);
Originally Posted by uhumaham
This will actually write the given text in the console. (sa-mp server.exe)
|