- script restrict_gm -1,{
OnPCLoadMapEvent:
if(getgroupid() == 4) {
for(.@i = 0; .@i < getarraysize(.map_list$); ++.@i) {
getmapxy(.@map$,.@x,.@y,BL_PC);
if(.@map$ == .map_list$[.@i]) {
dispbottom "You are not allowed in this map.";
if(.savepoint)
warp "SavePoint",0,0;
else
warp "prontera",155,180;
end;
}
}
}
end;
OnInit:
.savepoint = true; // set to false if you don't want to warp gms to savepoint
setarray .map_list$, "map1", "map2"; // add maps you don't want your gms to warp
end;
}
map1 mapflag loadevent
map2 mapflag loadevent
// P.S: Every map you add in array .map_list$ needs a mapflag loadevent to work.