Jump to content
  • 0

How to enable command on a map I wish?


Talon

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  09/01/14
  • Last Seen:  

Hello, everyone I wanted to request a script that you can to gain access @refresh in a city, but I'm not sure how to make it works. But Is it possible though?

Normally I got @refresh disabled for players, but I wanted to have the feature on a map, help me please.

Edited by Talon
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

-	script	::atcmd_refresh	-1,{

OnInit:

bindatcmd "refresh",strnpcinfo(3)+"::OnAtcommand";

end;

OnAtcommand:

if (strcharinfo(3) == "map")

atcommand "@refresh";

end;

}

You can easily add conditions to any atcommand via script by this method.
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  09/01/14
  • Last Seen:  

Euphy, thanks for the speed reply I'm gonna test it out  /no1

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