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

[TF2] Unusual effects 2.19 SQL (21/12/2015)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Erreur 500
Senior Member
Join Date: Aug 2012
Location: Paris, France
Plugin ID:
3465
Plugin Version:
2.19
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Let players chooses quality and unusual effects on their items
    Unapprover:
    Reason for Unapproving:
    Loads web pages from an expire domain. Plugin is technically sound.
    Old 01-12-2013 , 09:17   [TF2] Unusual effects 2.19 SQL (21/12/2015)
    Reply With Quote #1

    Unusual effects




    -------------------------------------------------------------------------


    Because of VALVE restriction:
    This plugin just add unusual effects on weapons, I don't have permission to add free unusual effects on hats, killstreak effects or australium items!



    -------------------------------------------------------------------------





    Last Change v2.19 (21/12/2015): Show log, Change : .sp and .smx. Use TF2 Item DB now!




    Description


    I publish this little plugin, to help admins who want add unusual effects on their players, donors or admins.
    Players can choose qualities and unusual effects on their items (level = 100 ). Plugin auto saves player data in SQL DB.

    Players can show current effect by selecting in the menu "Show effects" and will go on this site : http://bit.ly/l77777





    How does it works ?


    Write !unusual and select what you want on your current weapon.
    Effects are directly added or deleted!

    Players can be limited by flags:
    - You can restrict the number of effects that a player with a flag (or without flag) can have, by editing unusual_permissions.cfg
    - When a players lost his unusual effect flag, or has more effects than authorized by his flag, this plugin will delete all his effects!
    - You can upgrade players, nothing will be deleted.
    - You can restrict some unusual effects by editing flags in unusual_list.cfg
    - If a player has an effect which need a flag to be used, it will lose his effect!

    There is an admin tools in the menu, which allow you to add effects on a connected player or remove an unusual effect from player in DB. [/LEFT]


    There is a fix for FF2 and VSH mod:
    - If you run a FF2 server, this plugin will automatically block boss unusual effect update thanks to this enabled cvar : unusual_fix_ff2boss 1
    - If you run a VSH server, you must force boss team, and use this CVAR to block unusual effect on this team : unusual_team_restriction

    Command :
    Quote:
    !unusual
    Admin Commands (flag generic) :
    Code:
    unusual_permissions // Update permissions unusual_control //Control all player if they can still have unusual effects
    Cvar :
    Code:
    unusual_team_restriction (def: 0 ) // 0 = no restriction, 1 = red, 2 = blue, can't have unusual effects unusual_panel_flag (def: 0 ) // 0 = ADMFLAG_ROOT, 1 = ADMFLAG_GENERIC (Which flag can use it?) unusual_fix_ff2boss (def: 1 ) // 0 = boss can have unusual effects, 1 = boss can't (Work only for FF2) unusual_tag (def: 1 ) // 1 = Add 'unusual' tag, 0 = No

    For Developer : Native functions
    Spoiler



    unusual_list.cfg
    Spoiler



    unusual_permissions.cfg
    Spoiler


    Warning: Due to an issue which we are not able to fix, only Valve can, I remove Gunslinger and Lollichop from the plugin.




    Installation

    unusual.smx in tf\addons\sourcemod\plugins
    unusual.sp in tf\addons\sourcemod\scripting
    unusual.inc in tf\addons\sourcemod\scripting\include
    unusual.phrases in tf\addons\sourcemod\translations
    unusual_list.cfg in tf\addons\sourcemod\configs
    unusual_permissions.cfg in tf\addons\sourcemod\configs

    If you want to use MySQL, copy/paste this in sourcemod/configs/databases.cfg. Replace by your own data.

    PHP Code:
     
    "unusual"
    {
                
    "driver"                          "mysql"
                "host"                            "YourHost"
                "database"                        "YourDatabaseName"
                "user"                            "Login"
                "pass"                            "PassWord"
               
    //"timeout"                        "0"
               //"port"                           "0"

    Else use SQLite and do nothing.


    Need
    SourceMod 1.7 or after
    morecolors.inc
    Tf2 Items (the last snapshot)
    TF2 Items DB
    If you want to convert your old database file (unusual_effects.txt) to the new DB SQLite or MySQL, You can use this tool : Unusual effects SQL converter


    I'm alway open for any suggestion

    Old versions http://bit.ly/1auTR2Z



    Logs
    Spoiler



    BEFOR REPPORT A PROBLEM:

    Quote:
    My server Crash when I add an unusual effect !
    No effect appear when I had one !

    Are you using the last TF2ItemManager Snapshot !?
    Quote:
    Effect Menu or delete Menu don't appear !

    Are you using the last Database of TF2iDB !? If not, Update the Database !
    Quote:
    I can see my unusual effect just 1 sec, and it disappear when I'm at third person !
    But others players can see my effects !
    Thank Valve !
    Attached Files
    File Type: cfg unusual_permissions.cfg (297 Bytes, 7080 views)
    File Type: inc unusual.inc (1.1 KB, 3279 views)
    File Type: txt unusual.phrases.txt (2.4 KB, 2879 views)
    File Type: cfg unusual_list.cfg (5.8 KB, 2878 views)
    File Type: smx unusual.smx (32.5 KB, 2709 views)
    File Type: sp Get Plugin or Get Source (unusual.sp - 2152 views - 41.3 KB)
    __________________
    My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

    Need private plugin ? We can found an agreement !
    Steam : Erreur 500

    Last edited by Erreur 500; 02-07-2016 at 07:44. Reason: update
    Erreur 500 is offline
    Skyrider
    AMX Mod X Beta Tester
    Join Date: May 2005
    Location: Netherlands
    Old 01-12-2013 , 10:01   Re: [TF2] Unusuals effects
    Reply With Quote #2

    Effects on weapons works great, but when I chose new hat, and choose head or misc, nothing appears. The menu closes and does nothing.
    __________________
    Skyrider is offline
    Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 01-12-2013 , 10:05   Re: [TF2] Unusuals effects
    Reply With Quote #3

    The add new hat and add new weapons don't seem to do anything. Once I get to the head/misc or prim/sec the menu just closes.
    __________________
    Fearts is offline
    Pootisbird
    Junior Member
    Join Date: Jan 2013
    Location: Germany
    Old 01-12-2013 , 10:12   Re: [TF2] Unusuals effects
    Reply With Quote #4

    Thats really nice! Thanks
    __________________


    Pootisbird is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 01-12-2013 , 10:33   Re: [TF2] Unusuals effects
    Reply With Quote #5

    Oh... God. It has begun. Is it possible to remove particle attachments to hats? I'd prefer not to give my donors that as an incentive since... I have morals?

    PS: For those of you who don't like the inherent particle names and can't tell them apart, I've renamed them in the code snippet here:

    Code:
    PanelEffect(iClient)
    {
    	new Handle:UnusualMenu = CreateMenu(UnusualMenuAnswer);
    	SetMenuTitle(UnusualMenu, "Select Unusual Effect");
    
    	AddMenuItem(UnusualMenu, "1", "Particle 1 (Red)");
    	AddMenuItem(UnusualMenu, "2", "Flying Bits");
    	AddMenuItem(UnusualMenu, "3", "Nemesis Burst (Blue)");
    	AddMenuItem(UnusualMenu, "4", "Community Sparkle");
    	AddMenuItem(UnusualMenu, "5", "Holy Glow");
    	AddMenuItem(UnusualMenu, "6", "Green Confetti");
    	AddMenuItem(UnusualMenu, "7", "Purple Confetti");
    	AddMenuItem(UnusualMenu, "8", "Haunted Ghost");
    	AddMenuItem(UnusualMenu, "9", "Green Energy Plasma");
    	AddMenuItem(UnusualMenu, "10", "Purple Energy Plasma");
    	AddMenuItem(UnusualMenu, "11", "Circling TF Logo");
    	AddMenuItem(UnusualMenu, "12", "Massed Flies");
    	AddMenuItem(UnusualMenu, "13", "Burning Flame (Red)");
    	AddMenuItem(UnusualMenu, "14", "Burning Flame (Blue)");
    	AddMenuItem(UnusualMenu, "15", "Searing Plasma");
    	AddMenuItem(UnusualMenu, "16", "Vivid Plasma");
    	AddMenuItem(UnusualMenu, "17", "Sunbeams");
    	AddMenuItem(UnusualMenu, "18", "Circling Peace Sign");
    	AddMenuItem(UnusualMenu, "19", "Circling Heart");
    	AddMenuItem(UnusualMenu, "20", "Stamp Pin");
    	AddMenuItem(UnusualMenu, "28", "Pipe Smoke");
    	AddMenuItem(UnusualMenu, "29", "Stormy Storm");
    	AddMenuItem(UnusualMenu, "30", "Blizzardy Storm");
    	AddMenuItem(UnusualMenu, "31", "Nuts and Bolts");
    	AddMenuItem(UnusualMenu, "32", "Orbiting Planets");
    	AddMenuItem(UnusualMenu, "33", "Orbiting Fire");
    	AddMenuItem(UnusualMenu, "34", "Bubbling");
    	AddMenuItem(UnusualMenu, "35", "Smoking");
    	AddMenuItem(UnusualMenu, "36", "Steaming");
    	AddMenuItem(UnusualMenu, "37", "Orbiting Flaming Lantern");
    	AddMenuItem(UnusualMenu, "38", "Cloudy Moon");
    	AddMenuItem(UnusualMenu, "39", "Cauldron Bubbles");
    	AddMenuItem(UnusualMenu, "40", "Orbiting Eerie Fire");
    	AddMenuItem(UnusualMenu, "43", "Knifestorm");
    	AddMenuItem(UnusualMenu, "44", "Misty Skull");
    	AddMenuItem(UnusualMenu, "45", "Harvest Moon");
    	AddMenuItem(UnusualMenu, "46", "It's a Secret to Everybody");
    	AddMenuItem(UnusualMenu, "47", "Stormy 13th Hour");
    
    	SetMenuExitButton(UnusualMenu, true);
    	DisplayMenu(UnusualMenu, iClient, MENU_TIME_FOREVER);
    }
    Copy and preplace the codes with this in the .sp file and recompile.

    Last edited by Mr. Man; 01-12-2013 at 10:49.
    Mr. Man is offline
    Oshizu
    Veteran Member
    Join Date: Nov 2012
    Location: Warsaw
    Old 01-12-2013 , 11:20   Re: [TF2] Unusuals effects
    Reply With Quote #6

    Are you sure releasing plugin like that is okay?
    Not that i don't like plugin. It's nice but valve may put some restrictions on tf2items related plugins. Same was when people abused 'attachables'
    __________________
    ...
    Oshizu is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 01-12-2013 , 11:50   Re: [TF2] Unusuals effects
    Reply With Quote #7

    Nevermind. Looked through the code and realized the original .sp calls the TF2items plugin by its native name, not my renamed (name).

    Last edited by Mr. Man; 01-12-2013 at 12:05.
    Mr. Man is offline
    NameUser
    Senior Member
    Join Date: Apr 2012
    Location: Bay Area, California
    Old 01-12-2013 , 12:48   Re: [TF2] Unusuals effects
    Reply With Quote #8

    Valve will not like this.
    __________________
    NameUser is offline
    Send a message via Skype™ to NameUser
    Dispenz0r
    Senior Member
    Join Date: May 2011
    Old 01-12-2013 , 12:59   Re: [TF2] Unusuals effects
    Reply With Quote #9

    Why not this?

    Last edited by Dispenz0r; 03-09-2023 at 13:18.
    Dispenz0r is offline
    Oshizu
    Veteran Member
    Join Date: Nov 2012
    Location: Warsaw
    Old 01-12-2013 , 13:28   Re: [TF2] Unusuals effects
    Reply With Quote #10

    Quote:
    Originally Posted by Dispenz0r View Post
    Well, i've been using Advanced Give Item to give myself effects for a long time now, so why not this?
    The diffrence between advanced give item and this is that. Purpose of this is clearly saying that it gives unusual effects to items and 'Advanced Give item' is thing that allows you to modify item attributes and eventualy you can use it to give effects. Also there were already 2 plugins posted that gived clients unusual effects throught !unusuals / !unusual / !effects command. They all were closed
    __________________
    ...
    Oshizu 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 12:46.


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