xmaniacx Posted August 5, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 110 Reputation: 1 Joined: 04/03/12 Last Seen: April 29, 2019 Share Posted August 5, 2012 how do i make a script whereas if your not in a guild your not allowed to enter and only the guild master can enter in the room Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted August 5, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted August 5, 2012 (edited) try this... set .@gid,getcharid(2); if( .@gid == 0 ){ mes "Only members of a guild are allowed here!"; Close; }else if(getguildmaster(.@gid)!=strcharinfo(0)) mes "Only the guild master can enter in!"; Close; } edit: thx to Emistry code mention getguildmaster return name of ppl Edited August 5, 2012 by QQfoolsorellina Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 5, 2012 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 August 5, 2012 try this if( strcharinfo(0) != getguildmaster(getcharid(2) || !getcharid(2) ){ mes "Only guild master can go in."; close; } Quote Link to comment Share on other sites More sharing options...
Peopleperson49 Posted August 13, 2012 Group: Members Topic Count: 219 Topics Per Day: 0.05 Content Count: 1181 Reputation: 141 Joined: 01/27/12 Last Seen: April 15 Share Posted August 13, 2012 (edited) I'm not sure if this will help you, but I wrote it for you anyways. It will prevent anybody not in a guild from entering the map, even if a GM warped/recalled them there. - script GuildProtection -1,{ OnInit: end; OnPCLoadMapEvent: if(getgmlevel()<20&&getcharid(2)==0&&strcharinfo(3)=="PUTCASTLEMAPHERE") { announce "You must be in a guild to be on this map!",bc_self; warp "SavePoint",0,0; end; } end; } PUTCASTLEMAPHERE<TAB>mapflag<TAB>gvg_castle Peopleperson49 Edited August 13, 2012 by peopleperson49 Quote Link to comment Share on other sites More sharing options...
Question
xmaniacx
how do i make a script whereas if your not in a guild your not allowed to enter and only the guild master can enter in the room
Link to comment
Share on other sites
3 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.