Jump to content
  • 0

disable certain @ commands on certain maps


zim305

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  03/15/13
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

-        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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  03/15/13
  • Last Seen:  

yay!! it works like a charm...

thank you so much TrojanWorm ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   4
  • Joined:  06/20/13
  • Last Seen:  

hi how about if i want to disable @jump

Link to comment
Share on other sites

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