Jump to content
  • 0

Help to edit this script


Question

Posted

Hello everyone!

 ihave a script here . . but i want to disable command using this script if normal player are in  pvp and gvg map, this script works fine but the matter is i need to type all map of all pvp map and gvg map. . can anyone help me to make this script read the whole pvp and gvg map using a few code instead of typing all the pvp and gvg map one by one. .

thanks in advace. . have a nice day . .Newbie here . . thank you ?

 

 

OnQuest:
setarray .Map$[0],"new_1-1","prtg_cas01";
if(strcharinfo(3) == .Map$[0] || strcharinfo(3) == .Map$[1]){
  message strcharinfo(0),"This Command cannot be use in this Area!";
end;
}
warp "prt_in",284,129;
end;
 

2 answers to this question

Recommended Posts

  • 0
Posted
.@map$ = strcharinfo(3);
	if ( getmapflag( .@map$,mf_pvp ) ) || getmapflag( .@map$,mf_gvg ) {
		dispbottom .@atcmd_command$+" failed in PVP/GVG maps";
		end;
	}

 

  • Love 1
  • 0
Posted
3 hours ago, BeWan said:

.@map$ = strcharinfo(3);
	if ( getmapflag( .@map$,mf_pvp ) ) || getmapflag( .@map$,mf_gvg ) {
		dispbottom .@atcmd_command$+" failed in PVP/GVG maps";
		end;
	}

 

uhhh works fine.  . .thank you so much ?

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...