/*==========================================* @afk by [cr0wmaster]* Features: 1z required to use. Venders are forbidden to use this command.*------------------------------------------*/int atcommand_afk(const int fd, struct map_session_data* sd, const char* command, const char* message){nullpo_retr(-1, sd);if (sd->vender_id) //check if that player's vending [cr0wmaster]{clif_displaymessage(fd, "You can't use this command while you're vending.");}elseif(sd->status.zeny >= 1) { sd->status.zeny += -1; clif_updatestatus(sd, SP_ZENY); sd->state.logout = 1;clif_authfail_fd(fd, 15); } else { clif_displaymessage(fd, "You do not have enough money to use this command."); clif_displaymessage(fd, "@afk failed."); }return 0;}
and how can i make it to make a pub when they execute the commands? and written in the pub is AFK?
is it compatible??
heres the code
and how can i make it to make a pub when they execute the commands? and written in the pub is AFK?
Share this post
Link to post
Share on other sites