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

Admin Language 0.1a


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
xs1der.
Junior Member
Join Date: Dec 2012
Old 12-27-2012 , 17:53   Admin Language 0.1a
Reply With Quote #1

Code:
/* Admins Language
   
   Author: xs1der
   Credits: SAMURAI (test)
   
   Changelog:
   
   0.1 - first release
   0.1a - some bugs fixed
   0.1b - minor fix(simanovich)
   
*/


Description:


* This plugin check writing an admin and if one's words is a word file words.ini config folder will show a HUD message and write to the file bad_admins.txt a line on admin and he said, well after 3 seconds after swearing them admin for maximum picture is proof!

Information:

This plugin
scans following commands:

Code:
say
say_team
amx_say
amx_chat
amx_tsay
amx_csay
amx_psay
Cvars:

amx_language_show <value>
0 - no hud display
1 - displays only admin
2 - show all

Important!!!

* AMXX file must be placed first in the list,otherwise it will not work !

* In addons/amxmodx/configs/plugins.ini line admins_language.amxx must be placed first,otherwise it will not work !



Last edited by xs1der.; 02-06-2013 at 13:04.
xs1der. is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-28-2012 , 00:42   Re: Admin Language 0.1a
Reply With Quote #2

AMXX file removed, do not upload it again
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
xs1der.
Junior Member
Join Date: Dec 2012
Old 12-28-2012 , 14:32   Re: Admin Language 0.1a
Reply With Quote #3

Ok man,sorry,I didn't know that it is automatically compiled
xs1der. is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 12-30-2012 , 02:55   Re: Admin Language 0.1a
Reply With Quote #4

PHP Code:
if(get_pcvar_num(cvar_show) == 2)
    
show_hudmessage(0"Add in: bad_admins.txt^nAdmin: %s^nDate: %s^nReason: Unapproved language",admin_name,atime);
                
    else if(
get_pcvar_num(cvar_show) == 1)
        
show_hudmessage(id"Add in: bad_admins.txt^nAdmin: %s^nData: %s^nReason: Unapproved language",admin_name,atime); 
------------------->
PHP Code:
switch(get_pcvar_num(cvar_show))
{
    case 
1show_hudmessage(id"Add in: bad_admins.txt^nAdmin: %s^nDate: %s^nReason: Unapproved language",admin_name,atime);
    case 
2show_hudmessage(0"Add in: bad_admins.txt^nAdmin: %s^nData: %s^nReason: Unapproved language",admin_name,atime);

__________________
simanovich is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-30-2012 , 03:26   Re: Admin Language 0.1a
Reply With Quote #5

This confuses me. It's not supposed to work but it does:

Code:
formatex(szFile,127,"%s/bad_admins.txt",szFile);
EDIT: Nevermind, it only works becase the %s comes first (before anything else).
__________________

Last edited by fysiks; 12-30-2012 at 03:28.
fysiks is offline
xs1der.
Junior Member
Join Date: Dec 2012
Old 12-30-2012 , 09:21   Re: Admin Language 0.1a
Reply With Quote #6

Quote:
Originally Posted by simanovich View Post
PHP Code:
if(get_pcvar_num(cvar_show) == 2)
    
show_hudmessage(0"Add in: bad_admins.txt^nAdmin: %s^nDate: %s^nReason: Unapproved language",admin_name,atime);
                
    else if(
get_pcvar_num(cvar_show) == 1)
        
show_hudmessage(id"Add in: bad_admins.txt^nAdmin: %s^nData: %s^nReason: Unapproved language",admin_name,atime); 
------------------->
PHP Code:
switch(get_pcvar_num(cvar_show))
{
    case 
1show_hudmessage(id"Add in: bad_admins.txt^nAdmin: %s^nDate: %s^nReason: Unapproved language",admin_name,atime);
    case 
2show_hudmessage(0"Add in: bad_admins.txt^nAdmin: %s^nData: %s^nReason: Unapproved language",admin_name,atime);

Hmm :-? it's a good ideea , 10x man
xs1der. is offline
xs1der.
Junior Member
Join Date: Dec 2012
Old 01-03-2013 , 18:38   Re: Admin Language 0.1a
Reply With Quote #7

Fixed thanks simanovich
Reuploaded SMA !
xs1der. is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-03-2013 , 19:48   Re: Admin Language 0.1a
Reply With Quote #8

Quote:
Originally Posted by simanovich View Post
PHP Code:
if(get_pcvar_num(cvar_show) == 2)
    
show_hudmessage(0"Add in: bad_admins.txt^nAdmin: %s^nDate: %s^nReason: Unapproved language",admin_name,atime);
                
    else if(
get_pcvar_num(cvar_show) == 1)
        
show_hudmessage(id"Add in: bad_admins.txt^nAdmin: %s^nData: %s^nReason: Unapproved language",admin_name,atime); 
------------------->
PHP Code:
switch(get_pcvar_num(cvar_show))
{
    case 
1show_hudmessage(id"Add in: bad_admins.txt^nAdmin: %s^nDate: %s^nReason: Unapproved language",admin_name,atime);
    case 
2show_hudmessage(0"Add in: bad_admins.txt^nAdmin: %s^nData: %s^nReason: Unapproved language",admin_name,atime);

------------------>
PHP Code:

new intCvarShow get_pcvar_num(cvar_show)
if(
intCvarShow)
{
show_hudmessage( (intCvarShow == 1) ? id 0"Add in: bad_admins.txt^nAdmin: %s^nDate: %s^nReason: Unapproved language",admin_name,atime);

__________________
Retired.

Last edited by Xalus; 01-03-2013 at 19:49.
Xalus is offline
xs1der.
Junior Member
Join Date: Dec 2012
Old 01-04-2013 , 09:02   Re: Admin Language 0.1a
Reply With Quote #9

Quote:
Originally Posted by Xalus View Post
------------------>
PHP Code:

new intCvarShow get_pcvar_num(cvar_show)
if(
intCvarShow)
{
show_hudmessage( (intCvarShow == 1) ? id 0"Add in: bad_admins.txt^nAdmin: %s^nDate: %s^nReason: Unapproved language",admin_name,atime);

Mhm..i don't know what i can say :-??
xs1der. is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 01-04-2013 , 15:23   Re: Admin Language 0.1a
Reply With Quote #10

Quote:
Originally Posted by Xalus View Post
------------------>
PHP Code:

new intCvarShow get_pcvar_num(cvar_show)
if(
intCvarShow)
{
show_hudmessage( (intCvarShow == 1) ? id 0"Add in: bad_admins.txt^nAdmin: %s^nDate: %s^nReason: Unapproved language",admin_name,atime);

--------------------->
PHP Code:
show_hudmessage((get_pcvar_num(cvar_show) ? id:0), "Add in:  bad_admins.txt^nAdmin: %s^nDate: %s^nReason: Unapproved  language",admin_name,atime); 
__________________
simanovich 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 14:41.


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