AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [TF2] Unusual effects 2.19 SQL (21/12/2015) (https://forums.alliedmods.net/showthread.php?t=205599)

Erreur 500 01-12-2013 09:17

[TF2] Unusual effects 2.19 SQL (21/12/2015)
 
17 Attachment(s)
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 !

Skyrider 01-12-2013 10:01

Re: [TF2] Unusuals effects
 
Effects on weapons works great, but when I chose new hat, and choose head or misc, nothing appears. The menu closes and does nothing.

Fearts 01-12-2013 10:05

Re: [TF2] Unusuals effects
 
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.

Pootisbird 01-12-2013 10:12

Re: [TF2] Unusuals effects
 
Thats really nice! Thanks

Mr. Man 01-12-2013 10:33

Re: [TF2] Unusuals effects
 
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.

Oshizu 01-12-2013 11:20

Re: [TF2] Unusuals effects
 
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'

Mr. Man 01-12-2013 11:50

Re: [TF2] Unusuals effects
 
Nevermind. Looked through the code and realized the original .sp calls the TF2items plugin by its native name, not my renamed (name).

NameUser 01-12-2013 12:48

Re: [TF2] Unusuals effects
 
Valve will not like this.

Dispenz0r 01-12-2013 12:59

Re: [TF2] Unusuals effects
 
Why not this?

Oshizu 01-12-2013 13:28

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Dispenz0r (Post 1872232)
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


All times are GMT -4. The time now is 06:30.

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