Raised This Month: $32 Target: $400
 8% 

Simple Anti-Ad


Post New Thread Reply   
 
Thread Tools Display Modes
feifei
Senior Member
Join Date: Sep 2014
Location: India
Old 12-18-2014 , 16:53   Re: Simple Anti-Ad
Reply With Quote #41

I want only admin with immunity can post ip or url.
what to do ? 0_0
__________________
MaTriX is my life
Visit Here ;) For ZP MODs
feifei is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-18-2014 , 20:50   Re: Simple Anti-Ad
Reply With Quote #42

This plugin only affect usual player not the admin:
Code:
public CheckMessage(id) {
    if (id > 0 && id < 33 && !is_user_admin(id)) {
        new text[64];
        read_args(text,63);
        
        if (strlen(text) > 4) {
            new match = regex_match_c(text, re, ret);
        
            if (match > 0) {
                client_print(id, print_chat, "Advertising is prohibited on this server!");
                return PLUGIN_HANDLED;
            }
        }
    }
    return PLUGIN_CONTINUE;
}
zmd94 is offline
feifei
Senior Member
Join Date: Sep 2014
Location: India
Old 12-19-2014 , 06:46   Re: Simple Anti-Ad
Reply With Quote #43

I like this plugin bcz it's too simple and small coded.

can any 1 add code for only admin with immunity can advertise. please
__________________
MaTriX is my life
Visit Here ;) For ZP MODs
feifei is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-19-2014 , 12:34   Re: Simple Anti-Ad
Reply With Quote #44

So, you want only admin with immunity can advertise? Admin that do not have immunity cannot advertise, right?

Last edited by zmd94; 12-19-2014 at 12:35.
zmd94 is offline
feifei
Senior Member
Join Date: Sep 2014
Location: India
Old 12-20-2014 , 01:21   Re: Simple Anti-Ad
Reply With Quote #45

Quote:
Originally Posted by zmd94 View Post
So, you want only admin with immunity can advertise? Admin that do not have immunity cannot advertise, right?
yeah
__________________
MaTriX is my life
Visit Here ;) For ZP MODs
feifei is offline
mayersdz
Member
Join Date: Jun 2015
Old 07-13-2015 , 10:28   Re: Simple Anti-Ad
Reply With Quote #46

not working
mayersdz is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-10-2020 , 03:31   Re: Simple Anti-Ad
Reply With Quote #47

https://forums.alliedmods.net/showthread.php?t=197331
Unapproved.
__________________
HamletEagle 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 16:39.


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