xmaniacx Posted August 5, 2012 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
QQfoolsorellina Posted August 5, 2012 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
Emistry Posted August 5, 2012 Posted August 5, 2012 try this if( strcharinfo(0) != getguildmaster(getcharid(2) || !getcharid(2) ){ mes "Only guild master can go in."; close; } Quote
Peopleperson49 Posted August 13, 2012 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
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
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.