View Single Post
Author Message
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 07-29-2011 , 17:14   [ANY] Toggle Special FX
Reply With Quote #1

This is a simple plugin with a cookie option that will appear in the ClientPrefs !settings menu. Users have a choice to 'Toggle Special FX.' The plugin will write the boolean cookie value to the ClientPrefs database and provide a native:

PHP Code:
/**
 * Returns whether the client would like special effects on or off.
 *
 * @param client    The client index of the player
 * @return            True/False
 */
native bool:ShowClientEffects(client); 
It's my hope that plugins which add extensive special effects (hats, trails, etc.) could all add this simple check in a SetTransmit hook so players have this option to disable the effects on their screen only.

I've submitted modifications to the hats plugin and TwistedPanda's player trails plugin that add this feature. If you have a suggestion for a plugin that you'd like this option for then post the link as a reply here.
Attached Files
File Type: sp Get Plugin or Get Source (ToggleEffects.sp - 3526 views - 2.2 KB)
File Type: inc ToggleEffects.inc (613 Bytes, 1963 views)
__________________
databomb is offline