08.07.2017, 13:14
Please I need help with how to create mapname in Server hostname
// above main()
forward Hostchange();
public OnFilterScriptInit()// or gamemodeinti
{
SetTimer("Hostchange",1000,1); // Change 1000 to whatever you want this is in milliseconds.
return 1;
}
public Hostchange()
{
new var = random(3);
switch (var)
{
case 0: SendRconCommand("hostname server name 1");
case 1: SendRconCommand("hostname Server name 2");
case 2: SendRconCommand("hostname servre name 3");
}
}