Raised This Month: $ Target: $400
 0% 

no server message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 05-04-2010 , 10:43   no server message
Reply With Quote #1

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(idname31)
   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(0print_chat"%s was blocked for 5 minutes for too high ping"name)
   return 
PLUGIN_CONTINUE

reinert is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-04-2010 , 10:46   Re: no server message
Reply With Quote #2

that depends on the amx_showactivity cvar.

maybe if you modify admincmd.sma(i think) to not display the message when the admin is not a player, it'll works.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 03:35.


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