Raised This Month: $ Target: $400
 0% 

Solved mdb ban to amx ban?


Post New Thread Reply   
 
Thread Tools Display Modes
@LeX
Junior Member
Join Date: Nov 2018
Old 11-10-2023 , 06:36   Re: mdb ban to amx ban?
Reply With Quote #11

Quote:
Originally Posted by mlibre View Post
disabled admin.amxx
no... please... no
admin.amxx has the role of assigning the admin degree.

he asked for amxbans to work for him on mban function

if amxbans registers the same command as admincmd (ie 'amx_ban', 'amx_banip')
then amxbans must be put in plugins.ini above the admincmd plugin because the first plugin that defines the function will execute the function first

the format of `amx_ban` in admincmd is `<name or #userid> <minutes> [reason]`
in amxbans is `<Time in Minutes> <SteamID | Nickname | #userid> <Reason> <SteamID> <IP>`

big difference between the two

so the statement `server_cmd( "amx_ban 1440 #%d ^"[^x03TEST^x01] hack (#2221) detected!^"", get_user_userid( id ) );` was correct, only that amxbans was under the admincmd plugin
either leave amxbans above admincmd or modify admincmd and remove all defined functions related to banning players so that amxbans can then register these functions instead

off: @popilas
`[^x03TEST^x01]`, No need for color here

p.s. I don't know exactly if it also needs ip/steamid to ban a player (I've never used amxbans)
but it can be solved in the statement

Last edited by @LeX; 11-10-2023 at 10:18.
@LeX is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode