You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
826 B
28 lines
826 B
var ID, input, maxClients;
|
|
ID = ds_map_find_value(async_load, "id")
|
|
if (ID == msg)
|
|
{
|
|
if ds_map_find_value(async_load, "status")
|
|
{
|
|
input = ds_map_find_value(async_load, "value")
|
|
if is_real(input)
|
|
{
|
|
ini_open((working_directory + "\settings.ini"))
|
|
maxClients = ini_read_real("Settings", "maxplayers", 16)
|
|
ini_close()
|
|
if (input != maxClients)
|
|
{
|
|
if instance_exists(oServer)
|
|
{
|
|
with (oServer)
|
|
instance_destroy()
|
|
ini_open((working_directory + "\settings.ini"))
|
|
ini_write_real("Settings", "maxplayers", input)
|
|
ini_close()
|
|
alarm[0] = 300
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|