diegorifu22 Posted April 29, 2020 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 04/23/20 Last Seen: June 19, 2020 Share Posted April 29, 2020 (edited) How to allow all players type (1 and 99 for example, super players and GMs) to a certain map, but not normal players (0)? Edited April 29, 2020 by diegorifu22 Quote Link to comment Share on other sites More sharing options...
0 Chaos92 Posted April 29, 2020 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 1826 Reputation: 288 Joined: 08/03/12 Last Seen: 3 hours ago Share Posted April 29, 2020 (edited) I think you can use getgroupid script commands. *getgroupid({<char_id>}) This function will return the group id to which the invoking player belongs. - script Sample -1,{ OnPCLoginEvent: if ( getgroupid() > 0 && strcharinfo(3) == "mapname") end; atcommand "@kick " +strcharinfo(0); //or change to warp ? end; } Edited April 29, 2020 by Chaos92 Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted May 1, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted May 1, 2020 - script Sample -1,{ OnInit: .map$ = "prontera"; setmapflag, .map$, mf_loadevent; end; OnPCLoadMapEvent: if (strcharinfo(3) == .map$) { if (getgroupid() <= 0) warp "SavePoint", 0, 0; } end; } using OnPCLoadMapEvent are more appropriate, it triggered everytime you teleport or enter the map. Quote Link to comment Share on other sites More sharing options...
Question
diegorifu22
How to allow all players type (1 and 99 for example, super players and GMs) to a certain map, but not normal players (0)?
Link to comment
Share on other sites
2 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.