Jump to content
  • 0

How to enable command on a map I wish?


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

Posted

-	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

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