Jump to content
  • 0

disable certain @ commands on certain maps


Question

Posted

hi, this is my first post here.

i would like to know is it possible to disable certain @ command on certain maps or not.

for example, i enabled @storage for all players but i want to disable @storage from being opened while on a pvp map or maybe an event map.

 

if it is possible, how? what to edit/modified?

maybe someone already posted about this and i've tried to search but i couldnt find one.

thx /ok

4 answers to this question

Recommended Posts

Posted
-        script  storage22          -1,{
OnInit:
bindatcmd "storage",strnpcinfo(3)+"::OnAtcommand";
end;
 
OnAtcommand:
setarray .Map$[0],"guild_01","guild_02";
if(strcharinfo(3) == .Map$[0] || strcharinfo(3) == .Map$[1]){
  message strcharinfo(0),"You can't open your storage here!";
end;
}
openstorage;
end;
 
}

 

then on your groups.conf

 

 

remove

storage: true
  • Upvote 3

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...