AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   no server message (https://forums.alliedmods.net/showthread.php?t=125988)

reinert 05-04-2010 10:43

no server message
 
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



drekes 05-04-2010 10:46

Re: no server message
 
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.


All times are GMT -4. The time now is 03:35.

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