08.02.2018, 21:23
You just need to save zone owner ID, and load when the gangzones are made.
Here is an example how you save, just do similar for loading (instead of Set, use Get).
Here is an example how you save, just do similar for loading (instead of Set, use Get).
PHP код:
public OnFilterScriptExit() {
// save owner
// example with dini2
new name[35 + 3]; // 35 for name and 3 for id
for (new i, j = sizeof(g_Turf); i < j; i++) {
format(name, sizeof(name), "%s%i", g_Turf[i][turfName], i);
dini_SetInt("filename", name, g_Turf[i][turfOwner]);
}
}