K i n G Posted September 8, 2023 Group: Members Topic Count: 6 Topics Per Day: 0.01 Content Count: 17 Reputation: 1 Joined: 11/05/22 Last Seen: August 23, 2024 Share Posted September 8, 2023 Please help me to disable /w or /who or commands of normal players Quote Link to comment Share on other sites More sharing options...
0 Forshaken Posted September 11, 2023 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 152 Reputation: 21 Joined: 11/12/18 Last Seen: Friday at 02:07 PM Share Posted September 11, 2023 On 9/9/2023 at 1:52 AM, K i n G said: Please help me to disable /w or /who or commands of normal players just go to your truck folder conf/groups.yml and comment who command or set it to false. Quote Link to comment Share on other sites More sharing options...
0 K i n G Posted September 11, 2023 Group: Members Topic Count: 6 Topics Per Day: 0.01 Content Count: 17 Reputation: 1 Joined: 11/05/22 Last Seen: August 23, 2024 Author Share Posted September 11, 2023 2 hours ago, Forshaken said: just go to your truck folder conf/groups.yml and comment who command or set it to false. Thank you for replying, I need the ' / ' command not the ' @ ' command Quote Link to comment Share on other sites More sharing options...
0 Forshaken Posted September 11, 2023 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 152 Reputation: 21 Joined: 11/12/18 Last Seen: Friday at 02:07 PM Share Posted September 11, 2023 1 hour ago, K i n G said: Thank you for replying, I need the ' / ' command not the ' @ ' command oh my bad, go to clif.cpp and find /// Amount of currently online players, reply to /w /who (ZC_USER_COUNT). /// 00c2 <count>.L void clif_user_count(map_session_data* sd, int count) { int fd = sd->fd; WFIFOHEAD(fd,packet_len(0xc2)); WFIFOW(fd,0) = 0xc2; WFIFOL(fd,2) = count; WFIFOSET(fd,packet_len(0xc2)); } Change to /// Amount of currently online players, reply to /w /who (ZC_USER_COUNT). /// 00c2 <count>.L void clif_user_count(map_session_data* sd, int count) { /* int fd = sd->fd; WFIFOHEAD(fd,packet_len(0xc2)); WFIFOW(fd,0) = 0xc2; WFIFOL(fd,2) = count; WFIFOSET(fd,packet_len(0xc2)); */ } Quote Link to comment Share on other sites More sharing options...
0 Forshaken Posted September 11, 2023 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 152 Reputation: 21 Joined: 11/12/18 Last Seen: Friday at 02:07 PM Share Posted September 11, 2023 Just now, Forshaken said: oh my bad, go to clif.cpp and find /// Amount of currently online players, reply to /w /who (ZC_USER_COUNT). /// 00c2 <count>.L void clif_user_count(map_session_data* sd, int count) { int fd = sd->fd; WFIFOHEAD(fd,packet_len(0xc2)); WFIFOW(fd,0) = 0xc2; WFIFOL(fd,2) = count; WFIFOSET(fd,packet_len(0xc2)); } Change to /// Amount of currently online players, reply to /w /who (ZC_USER_COUNT). /// 00c2 <count>.L void clif_user_count(map_session_data* sd, int count) { /* int fd = sd->fd; WFIFOHEAD(fd,packet_len(0xc2)); WFIFOW(fd,0) = 0xc2; WFIFOL(fd,2) = count; WFIFOSET(fd,packet_len(0xc2)); */ } dont forget to compile after applying the changes Quote Link to comment Share on other sites More sharing options...
0 Forshaken Posted September 12, 2023 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 152 Reputation: 21 Joined: 11/12/18 Last Seen: Friday at 02:07 PM Share Posted September 12, 2023 19 hours ago, K i n G said: Thank you for replying, I need the ' / ' command not the ' @ ' command or if you just want to remove it for normal player's perspective just follow the code below /// Amount of currently online players, reply to /w /who (ZC_USER_COUNT). /// 00c2 <count>.L void clif_user_count(map_session_data* sd, int count) { + if(sd->group_id >= 1) { // you can adjust the group id here int fd = sd->fd; WFIFOHEAD(fd,packet_len(0xc2)); WFIFOW(fd,0) = 0xc2; WFIFOL(fd,2) = count; WFIFOSET(fd,packet_len(0xc2)); + } } Quote Link to comment Share on other sites More sharing options...
Question
K i n G
Please help me to disable /w or /who or commands of normal players
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.