Host name changer? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Host name changer? (
/showthread.php?tid=97154)
Host name changer? -
uhumaham - 13.09.2009
How can I make an automatic host name changer?
Re: Host name changer? -
shady91 - 13.09.2009
Quote:
Originally Posted by uhumaham
How can I make an automatic host name changer?
|
Have You Searched as many topics have been made for this.
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);
Re: Host name changer? -
uhumaham - 13.09.2009
This will actually write the given text in the console. (sa-mp server.exe)
Re: Host name changer? -
shady91 - 13.09.2009
Quote:
Originally Posted by uhumaham
This will actually write the given text in the console. (sa-mp server.exe)
|
it changes your host name.