Jump to content
  • 0

How to make it all private bcoz the 1st room is public pls make it private


Hades03

Question


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

prontera,164,166,4 script Private PvP Room 935,{
setarray $@maps$[1], "06guild_01", "06guild_02", "06guild_03", "06guild_04", "06guild_05", "06guild_06", "06guild_07";
for(set .@b,1; .@b < getarraysize($@maps$); set .@b,.@b + 1) {
if(.@b==1){ set .@menu$, .@menu$  + "Public- "+((getmapusers($@maps$[.@b])>=30)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+")")+":"; } else { set .@menu$, .@menu$  + "Private["+(.@b-1)+"]- "+((getmapusers(""+$@maps$[.@b]+"")>=5)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+")")+":"; }
}
if(select(.@menu$)) { callfunc "GRfunction",$@maps$[@menu],@menu; }
}
function script GRfunction {
if(getmapusers(getarg(0))<=30&&getarg(1)==1){
warp getarg(0),0,0; end;
}
if(!getmapusers(getarg(0))){
mes "Input a new password.";
input($password$[getarg(1)]);
next; warp getarg(0),0,0;
end;
}
if(getmapusers(getarg(0))<=5&&getarg(1)!=1) {
mes "This room is password protected please input the password now.";
input(@name$);
if(@name$==$password$[getarg(1)]){
 mes "correct!"; next; warp getarg(0),0,0; end;
} else {
 mes "Incorrect!";
 close;
}
} else {
mes "I'm sorry this room is full.";
close;
}
}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...