Raised This Month: $ Target: $400
 0% 

Simple Anti-Ad


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mayersdz
Member
Join Date: Jun 2015
Old 07-13-2015 , 10:28   Re: Simple Anti-Ad
Reply With Quote #1

not working
mayersdz is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 11-22-2010 , 16:24   Re: Simple Anti-Ad
Reply With Quote #2

How about catching is_user_admin(id) on connect, cause it does everytime check it if a player writes something in chat, and that happens usually alot.
bibu is offline
Mati_
Member
Join Date: Sep 2010
Old 11-22-2010 , 16:35   Re: Simple Anti-Ad
Reply With Quote #3

Quote:
Originally Posted by bibu View Post
How about catching is_user_admin(id) on connect, cause it does everytime check it if a player writes something in chat, and that happens usually alot.
Yeah true, that should be better. Will change that on the next small update.
Mati_ is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-23-2010 , 07:18   Re: Simple Anti-Ad
Reply With Quote #4

Quote:
Originally Posted by bibu View Post
How about catching is_user_admin(id) on connect, cause it does everytime check it if a player writes something in chat, and that happens usually alot.
Depending on how admin access is defined in users.ini, it's better to check each time if player is admin or not, anyway chat is not trigger often, from server referencial.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 11-23-2010 , 13:34   Re: Simple Anti-Ad
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
Depending on how admin access is defined in users.ini, it's better to check each time if player is admin or not, anyway chat is not trigger often, from server referencial.
Why do you think that? Can't we get the user if he is admin on connect + client_infochanged?

Anyways, we are going Off-Topic I think, let the OP or you as approver choose what better is.
bibu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-23-2010 , 15:21   Re: Simple Anti-Ad
Reply With Quote #6

Quote:
Originally Posted by bibu View Post
Why do you think that? Can't we get the user if he is admin on connect + client_infochanged?

Anyways, we are going Off-Topic I think, let the OP or you as approver choose what better is.
Benefit would be really small, but both way could be ok.
Check if user is admin when he say something is a really small thing considering chat can happen something like once per second.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 11-22-2010 , 17:11   Re: Simple Anti-Ad
Reply With Quote #7

Sounds COol ^^
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 11-22-2010 , 17:29   Re: Simple Anti-Ad
Reply With Quote #8

Added do my server, tested and does the job well.
vL. is offline
BRENDQN
New Member
Join Date: Nov 2010
Old 11-22-2010 , 23:17   Re: Simple Anti-Ad
Reply With Quote #9

hmm , seems like a good plugn
__________________
lolumad.
BRENDQN is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 11-23-2010 , 15:51   Re: Simple Anti-Ad
Reply With Quote #10

Sorry about that post. Didn't mean to be hostile, I was in a bad mood before.

I stick by my gameserver advertisement suggestion, though.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Reply


Thread Tools
Display Modes

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 20:51.


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