viewing paste Unknown #14415 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13
function Restrict {
        if ((getarg(0) == "RE" && !checkre(0)) || (getarg(0) == "Pre-RE" && checkre(0))) {
                if (getarg(1,0)) {
                        set @warp_block,0;
                        for(set .@i,1; .@i<getargcount(); set .@i,.@i+1)
                                set @warp_block, @warp_block | (1<<getarg(.@i));
                } else {
                        message strcharinfo(0),"This map is not enabled in "+((checkre(0))?"":"Pre-")+"Renewal.";
                        close;
                }
        }
        return;
}
Viewed 347 times, submitted by Normynator.