This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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, 7098 views)
    File Type: inc unusual.inc (1.1 KB, 3315 views)
    File Type: txt unusual.phrases.txt (2.4 KB, 2906 views)
    File Type: cfg unusual_list.cfg (5.8 KB, 2940 views)
    File Type: smx unusual.smx (32.5 KB, 2727 views)
    File Type: sp Get Plugin or Get Source (unusual.sp - 2179 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
     



    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 01:48.


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