26.09.2009, 17:22
There's an mistake:
I suppose you wanted to change hostname, not mapname.
Use "hostname" rcon-command to change hostname.
And also, there's no need for four timers, you can have it in two timers.
Quote:
Code:
public hostname() { SendRconCommand("mapname [YOUR FIRST HOSTNAME HERE]"); SetTimer("hostname", hostnamechangetime, 0); return 1; } public hostname2() { SendRconCommand("mapname [YOUR SECOND HOSTNAME HERE]~ "); SetTimer("hostname2", hostnamechangetime, 0); return 1; } |
Use "hostname" rcon-command to change hostname.
And also, there's no need for four timers, you can have it in two timers.