DEsMOn Posted April 12, 2022 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Share Posted April 12, 2022 Hello Scripters, Is there any way to restrict GM ID -4 in which he can't warp or go in MVP maps with msg in chat window "Your Not allowed in this MAP" Quote Link to comment Share on other sites More sharing options...
0 cook1e Posted April 18, 2022 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 172 Reputation: 68 Joined: 10/25/20 Last Seen: 16 hours ago Share Posted April 18, 2022 (edited) - 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. Edited April 18, 2022 by cook1e fix in .map_list$ 1 Quote Link to comment Share on other sites More sharing options...
0 DEsMOn Posted April 18, 2022 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Author Share Posted April 18, 2022 1 hour ago, cook1e said: - 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. Dear Sir, I checked its working for 1st map only i.e pay_fild11 not for others can u fix it? - 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$) { 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$, "pay_fild11", "pay_fild04", "niflheim", "moc_fild17", "xmas_fild01", "mjolnir_04","gef_fild02", "gef_fild10", "gef_fild14", "ve_fild01", "ve_fild02", "ra_fild02", "ra_fild03", "pay_dun04", "prt_sewb4", "anthell02", "beach_dun", "ama_dun03", "xmas_dun02", "gef_dun02", "lou_dun03", "gon_dun03", "mosk_dun03", "tur_dun04", "moc_pryd04", "in_sphinx5", "ayo_dun02", "ein_dun02", "jupe_core", "gl_chyard", "abyss_03", "abyss_02", "xmas_fild01", "lhz_dun02", "lhz_dun03", "kh_dun02", "ra_san05", "dic_dun02", "odin_tem03", "treasure02"; // add maps you don't want your gms to warp end; } //MVP maps niflheim mapflag loadevent pay_fild11 mapflag loadevent moc_fild17 mapflag loadevent xmas_fild01 mapflag loadevent mjolnir_04 mapflag loadevent gef_fild02 mapflag loadevent gef_fild10 mapflag loadevent gef_fild14 mapflag loadevent ve_fild01 mapflag loadevent ve_fild02 mapflag loadevent ra_fild02 mapflag loadevent ra_fild03 mapflag loadevent pay_dun04 mapflag loadevent prt_sewb4 mapflag loadevent anthell02 mapflag loadevent beach_dun mapflag loadevent ama_dun03 mapflag loadevent xmas_dun02 mapflag loadevent gef_dun02 mapflag loadevent lou_dun03 mapflag loadevent gon_dun03 mapflag loadevent mosk_dun03 mapflag loadevent tur_dun04 mapflag loadevent treasure02 mapflag loadevent moc_pryd04 mapflag loadevent in_sphinx5 mapflag loadevent ayo_dun02 mapflag loadevent ein_dun02 mapflag loadevent jupe_core mapflag loadevent gl_chyard mapflag loadevent abyss_03 mapflag loadevent abyss_02 mapflag loadevent bra_dun02 mapflag loadevent lhz_dun02 mapflag loadevent lhz_dun03 mapflag loadevent kh_dun02 mapflag loadevent ra_san05 mapflag loadevent dic_dun02 mapflag loadevent odin_tem03 mapflag loadevent pay_fild04 mapflag loadevent // P.S: Every map you add in array .map_list$ needs a mapflag loadevent to work. Quote Link to comment Share on other sites More sharing options...
0 cook1e Posted April 18, 2022 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 172 Reputation: 68 Joined: 10/25/20 Last Seen: 16 hours ago Share Posted April 18, 2022 (edited) I edited the script a few minutes ago, just copy it again. or change if(.@map$ == .map_list$) { to if(.@map$ == .map_list$[.@i]) { Edited April 18, 2022 by cook1e 1 Quote Link to comment Share on other sites More sharing options...
0 DEsMOn Posted April 19, 2022 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Author Share Posted April 19, 2022 5 hours ago, cook1e said: I edited the script a few minutes ago, just copy it again. or change if(.@map$ == .map_list$) { to if(.@map$ == .map_list$[.@i]) { Thank you so much Cookie Sir, 1 question just in case i want to add more than 1 group ID so how should i add it. if(getgroupid() == 4) { Quote Link to comment Share on other sites More sharing options...
0 cook1e Posted April 19, 2022 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 172 Reputation: 68 Joined: 10/25/20 Last Seen: 16 hours ago Share Posted April 19, 2022 if(getgroupid() == 4 || getgroupid() == 6 || getgroupid == 8) { 1 Quote Link to comment Share on other sites More sharing options...
0 DEsMOn Posted April 19, 2022 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Author Share Posted April 19, 2022 2 minutes ago, cook1e said: if(getgroupid() == 4 || getgroupid() == 6 || getgroupid == 8) { Thank you so much SIR....................................!!! Quote Link to comment Share on other sites More sharing options...
Question
DEsMOn
Hello Scripters,
Is there any way to restrict GM ID -4 in which he can't warp or go in MVP maps with msg in chat window "Your Not allowed in this MAP"
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.