Hey, how could i make when this public method is applied, the server won't write a message like: SERVER %HOSTNAME has banned %sName for %d minutes.
here is my public :
PHP Code:
banPlayer(id) {
new name[32]
get_user_name(id, name, 31)
new uID = get_user_userid(id)
server_cmd("amx_banip #%d 5", uID) // <- Here is my banning method
client_cmd(id, "echo ^"Sorry but your ping is too high^"; disconnect")
client_print(0, print_chat, "%s was blocked for 5 minutes for too high ping", name)
return PLUGIN_CONTINUE
}