Jump to content
  • 0

pkmode


letstry

Question


  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

I want to only allow the use of @pkmode on town maps only :(

How can I do that?

int atcommand_pkmode( const int fd, struct map_session_data *sd, const char *command, const char *message ) {

int flag;

if ((map[sd->bl.m].flag.gvg) && (10 >= pc_isGM(sd))) { // Allows GM's Over lvl 10 or Higher To Still Use Command

clif_displaymessage(sd->fd,"Sorry, You Cant Use This Command Your Current Map.");

return -1;

}

BUMP

BUMP

Bump

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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