Raised This Month: $100 Target: $400
 25% 

No Ads (by DokTor)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   Hawk552 (427)
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 03-13-2007 , 19:39   No Ads (by DokTor)
Reply With Quote #1


Original Author:DokTor
Version:0.1b
  • Description:
-This plugin modify players gl_polyoffset to -999 to get rid of ads!
  • Commands:
/noads -Remove ads from map.
/nopub -Remove ads from map.
/restore -Restore player gl_polyoffset value.
  • Changelog:
v0.1b

-removed client_disconnect that doesn't work.
-added restored values in plugin_end to restore client values at map end.
-added notification to player that they should restore their value before disconnect from server.
-added a Hud msg. to advert players.
  • Credits:
DokTor - His plugin!
VEN
  • To do:
Attached Files
File Type: sma Get Plugin or Get Source (no_ads.sma - 1646 views - 1.9 KB)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 03-20-2007 at 11:23.
Alka is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-13-2007 , 20:40   Re: No Ads (by DokTor)
Reply With Quote #2

Do you have his agreement?
__________________
Arkshine is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 03-14-2007 , 01:23   Re: No Ads (by DokTor)
Reply With Quote #3

Consent really does not matter when porting plugins, as long as he does not take credit for the original plugin.

I don't know if this is a bug with your port, or the original but.

There is no standard forward for client_end. It looks like since you're iterating all players and resetting the cvar, that you wanted plugin_end instead.

I also really don't think it's possible to send commands to a client as he is disconnecting, so there's no way to reset on disconnect.

Last edited by sawce the snail; 03-14-2007 at 02:16.
sawce is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 03-14-2007 , 07:29   Re: No Ads (by DokTor)
Reply With Quote #4

gl_polyoffset will also make all decals dissapear(blood stains etc.), i think the best solution to this is replace the ads wad file, and mark it read only, hopefully im not using steam, so i dont have the problem ;)
__________________
Voi is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 03-14-2007 , 09:20   Re: No Ads (by DokTor)
Reply With Quote #5

Quote:
Originally Posted by sawce View Post
Consent really does not matter when porting plugins, as long as he does not take credit for the original plugin.

I don't know if this is a bug with your port, or the original but.

I also really don't think it's possible to send commands to a client as he is disconnecting, so there's no way to reset on disconnect.
Ok Thanks...sawce!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-14-2007 , 12:36   Re: No Ads (by DokTor)
Reply With Quote #6

Also better use equali(mapname, ...) (notice "i") because map name may be in [upper/mixed]case.
VEN is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 03-14-2007 , 14:44   Re: No Ads (by DokTor)
Reply With Quote #7

Quote:
Originally Posted by VEN View Post
Also better use equali(mapname, ...) (notice "i") because map name may be in [upper/mixed]case.
Thanks!done...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-20-2007 , 09:31   Re: No Ads (by DokTor)
Reply With Quote #8

You didn't change public client_end(){ to public plugin_end(){.

What's the difference between equal and equali ?

Quote:
equal - Checks if two strings are equal.
equali - Checks if two strings are equal, case insensitively.
I can't get it...
ConnorMcLeod is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-20-2007 , 09:49   Re: No Ads (by DokTor)
Reply With Quote #9

equal checks to see if the 2 strings are 100% identical. So, equal("Google","google") would return false because one has a capital G and the other has a lowercase.
equali ignores the case of the letters. So, equali("Google","google") would return true
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, 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
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 03-20-2007 , 11:08   Re: No Ads (by DokTor)
Reply With Quote #10

Quote:
Originally Posted by connorr View Post
You didn't change public client_end(){ to public plugin_end(){
Fixed...
__________________
Still...lovin' . Connor noob! Hello
Alka 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 11:49.


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