Raised This Month: $51 Target: $400
 12% 

amx_show_activity help?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iggy_bus
BANNED
Join Date: Oct 2005
Old 05-07-2006 , 11:37   amx_show_activity help?
Reply With Quote #1

I have set "amx_show_activity 2" and I can see what commands admins are using.

But is there a way to customise amx_show_activity so that its value for some commands are 0?

Example: for amx_exec, I would like amx_show_activity 0 but for all ohter commands I want amx_show_activity 2 ???

Is this possible?
iggy_bus is offline
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 05-07-2006 , 11:42  
Reply With Quote #2

Edit the exec plugin to not show messages.
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
iggy_bus
BANNED
Join Date: Oct 2005
Old 05-07-2006 , 18:01  
Reply With Quote #3

is that possible od just kidding?

But I do not know anything about editing plugins, anyway I will try
iggy_bus is offline
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 05-07-2006 , 18:03  
Reply With Quote #4

What plugin are you using for exec? I can probably take it out.
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
iggy_bus
BANNED
Join Date: Oct 2005
Old 05-07-2006 , 18:43  
Reply With Quote #5

Ok I have tried but I do not know anything about scripting. I use amx_super but here is a part that considers amx_exec:

Code:
]// AMX Client Exec 0.03 v3x //================================================================================= new bool:isAll new bool:isTeam new bool:isServ // For messages public doExec(id,level,cid)     {         if(!cmd_access(id,level,cid,3))         {         return PLUGIN_HANDLED     }         new arg[32]     new command[64]     new players[32]     new player,num,i         read_argv(1,arg,31)     read_argv(2,command,63)         remove_quotes(command)         while(replace(command,63,"\'","^"")) { } // Credited to OLO         new activity = get_cvar_num("amx_show_activity")         new admin[32]     get_user_name(id,admin,31)         if(arg[0]=='@') {                 if(equali(arg[1],"A")         || equali(arg[1],"ALL"))         {             isAll = true             isTeam = false             isServ = false             get_players(players,num,"c")         }                 if(equali(arg[1],"TERRORIST")         || equali(arg[1],"T")         || equali(arg[1],"TERROR")         || equali(arg[1],"TE")         || equali(arg[1],"TER"))         {             isAll = false             isTeam = true             isServ = false             get_players(players,num,"ce","TERRORIST")         }                 if(equali(arg[1],"CT")         || equali(arg[1],"C")         || equali(arg[1],"COUNTER"))         {             isAll = false             isTeam = true             isServ = false             get_players(players,num,"ce","CT")         }                 if(equali(arg[1],"S")         || equali(arg[1],"SERV")         || equali(arg[1],"SERVER"))         {             isAll = false             isTeam = false             isServ = true             server_cmd(command)         }                 if(!(num) && !(isServ))             {             console_print(id,"[AMXX] No players on such team!")             return PLUGIN_HANDLED         }                 if(!isServ)             {                         for(i=0;i<num;i++)                 {                                 player = players[i]                                 if(!is_user_connected(player)) continue                                 else if(player)                     {                                         if(!(get_user_flags(player) & ADMIN_IMMUNITY))                         {                         client_cmd(player,command)                     }                 }             }         }                 if(isAll==true)             {                         switch(activity)             {                                 case 1:                 {                     client_print(0,print_chat,"ADMIN: Command line ^"%s^" has been used on everyone",command)                     server_print("ADMIN: Command line ^"%s^" has been used on everyone",command)                 }                 case 2:                 {                     client_print(0,print_chat,"ADMIN %s: Command line ^"%s^" has been used on everyone",admin,command)                     server_print("ADMIN %s: Command line ^"%s^" has been used on everyone",admin,command)                 }             }         }                 if(isTeam==true)             {                         switch(activity)             {                                 case 1:                 {                     client_print(0,print_chat,"ADMIN: Command line ^"%s^" has been used on the %ss",command,arg[1])                     server_print("ADMIN: Command line ^"%s^" has been used on the %ss",command,arg[1])                 }                 case 2:                 {                     client_print(0,print_chat,"ADMIN %s: Command line ^"%s^" has been used on the %ss",admin,command,arg[1])                     server_print("ADMIN %s: Command line ^"%s^" has been used on the %ss",admin,command,arg[1])                 }             }         }                 if(isServ==true)             {                         switch(activity)             {                                 case 1:                 {                     client_print(0,print_chat,"ADMIN: Command line ^"%s^" has been exectuted into the server",command)                     server_print("ADMIN: Command line ^"%s^" has been exectuted into the server",command)                 }                 case 2:                 {                     client_print(0,print_chat,"ADMIN %s: Command line ^"%s^" has been exectuted into the server",admin,command)                     server_print("ADMIN %s: Command line ^"%s^" has been exectuted into the server",admin,command)                 }             }         }     }         else if(arg[0]=='*')         {                 get_players(players,num,"c")                 for(i=0;i<num;i++)             {                         player = players[i]                         if(!is_user_connected(player)) continue                         else if(player)                 {                                 if(!(get_user_flags(player) & ADMIN_IMMUNITY))                     {                     client_cmd(player,command)                 }             }         }                                 switch(activity)         {                         case 1:             {                 client_print(0,print_chat,"ADMIN: Command line ^"%s^" has been used on everyone!",command)                 server_print("ADMIN: Command line ^"%s^" has been used on everyone!",command)             }             case 2:             {                 client_print(0,print_chat,"ADMIN %s: Command line ^"%s^" has been used on everyone!",admin,command)                 server_print("ADMIN %s: Command line ^"%s^" has been used on everyone!",admin,command)             }         }     }         else     {         new target = cmd_target(id,arg,3)         new name[33]                 if(!is_user_connected(target))             {             return PLUGIN_HANDLED         }                 get_user_name(target,name,32)                 if(!(get_user_flags(target) & ADMIN_IMMUNITY))             {             client_cmd(target,command)         }                 switch(activity)         {             case 1:             {                 client_print(0,print_chat,"ADMIN: Command Exec has been issued against %s!",name)                 server_print("ADMIN: Command Exec has issued used against %s!",name)             }             case 2:             {                 client_print(0,print_chat,"ADMIN %s: Command line ^"%s^" has been used on %s!",admin,command,name)                 server_print("ADMIN %s: Command line ^"%s^" has been used on %s!",admin,command,name)             }         }     }         return PLUGIN_HANDLED

Please if you can edit it so it shows no amx_activity
iggy_bus is offline
Silver Dragon
Veteran Member
Join Date: Jan 2005
Location: Chicago, Illinois
Old 05-07-2006 , 19:09  
Reply With Quote #6

Im not to sure but try deleteing client_print


Code:
client_print(0,print_chat,"ADMIN: Command line ^"%s^" has been used on everyone",command)
server_print("ADMIN: Command line ^"%s^" has been used on everyone",command)
}
case 2:
{
client_print(0,print_chat,"ADMIN %s: Command line ^"%s^" has been used on everyone",admin,command)
server_print("ADMIN %s: Command line ^"%s^" has been used on everyone",admin,command)
Recompile the plugin.
__________________

Silver Dragon is offline
Send a message via AIM to Silver Dragon Send a message via MSN to Silver Dragon Send a message via Yahoo to Silver Dragon
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 05-07-2006 , 20:28  
Reply With Quote #7

Okay I did two versions of this for you (They are untested but should work as far as I know.)
One version doesn't show the command to clients but still logs it to the server. Click To Download
The other version doesnt show it or log it. Click To Download
The choice is yours.
Attached Files
File Type: sma Get Plugin or Get Source (amx_super2.sma - 565 views - 103.6 KB)
File Type: sma Get Plugin or Get Source (amx_super1.sma - 563 views - 102.6 KB)
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 05-07-2006 , 23:52  
Reply With Quote #8

Just for future reference iggy_bus use
Code:
put code here
if you can because it makes it much easier for other people to read.
SubStream is offline
iggy_bus
BANNED
Join Date: Oct 2005
Old 05-08-2006 , 03:52  
Reply With Quote #9

@boom
I have no words. Thank you very much for your help. Both plugins work. I put the one that displays nothing to clients but logs to server.

Thanks man

@substream, I did not know that so I fixed my post and will use it in the future, tnx
iggy_bus is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 05-08-2006 , 11:13  
Reply With Quote #10

no problem. Always good to see people with good ideas post them in a good way
SubStream 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 02:24.


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