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

[CS:GO] Players models from flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Plugin ID:
4999
Plugin Version:
1.2
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Sets players skin by his flags
    Old 01-12-2016 , 18:45   [CS:GO] Players models from flags
    Reply With Quote #1



    This is pretty simple plugin, which allows you to set player models / arms for different flags. For example Counter terrorists with flag a (reservation) needs to have default model "models/players/xxx.mdl". Few guys requested this to me, because they couldnt find any plugin like this, so I made it and decided to release it.






    The name of section needs to be like this: "{FLAG}-{TEAM}" { .... }
    def flag stands for default. It is for users, that don't have any flags.
    Spoiler

    Here is simple example
    PHP Code:
    "Player_models_by_flags"
    {
        
    //Default terrorist arms.
        
    "def-t"
        
    {
            
    "arms_path"         "models/weapons/t_arms_separatist.mdl"
        
    }
        
        
    //People with 'z' (root) flag CT side player model and arms.
        
    "z-ct"
        
    {
            
    "model_path"         "models/player/custom_player/zombie/mummy/mummy.mdl"
            "arms_path"          "models/weapons/t_arms_professional.mdl"
        
    }
        
    "z-t"
        
    {
            
    "model_path"         "models/player/custom_player/zombie/crimsonhead/crimsonhead.mdl"
            "arms_path"          "models/player/custom_player/zombie/romeo_zombie/romeo_zombie_arms.mdl"
        
    }
        
    "a-t"
        
    {
            
    "model_path"         "some/path/model2T.mdl"
            "arms_path"          "some/path/model2T.mdl"
        
    }




    If you have custom models, you will need this plugin. It will download
    and precahe all files inside downloads.ini







    1. Download 'Player models from flags.zip'
    2. Download Sm downloader (if you have custom models)
    3. Extract all the files inside right place.
    4. Edit downloads.ini addons/sourcemod/configs. Place there all your custom model file paths.
    5. Edit skins.txt addons/sourcemod/configs/flagplayerskins/.
    6. Change map
    7. Enjoy new player arms / models



    Attached Files
    File Type: zip Player models from flags.zip (19.1 KB, 1651 views)
    File Type: zip Player models from flags 1.2.zip (19.6 KB, 3603 views)

    Last edited by boomix; 04-28-2016 at 17:54.
    boomix is offline
    whtevrwt
    AlliedModders Donor
    Join Date: Apr 2015
    Old 01-12-2016 , 18:53   Re: [CS:GO] Players skins from flags
    Reply With Quote #2

    Very good plugin. Nice release.
    whtevrwt is offline
    MrPriime
    Junior Member
    Join Date: Oct 2015
    Old 01-13-2016 , 16:59   Re: [CS:GO] Players skins from flags
    Reply With Quote #3

    Do you guys know any website with playermodels ?
    __________________
    MrPriime is offline
    Send a message via Skype™ to MrPriime
    VJScope
    Senior Member
    Join Date: Jul 2012
    Location: Finland
    Old 01-14-2016 , 02:53   Re: [CS:GO] Players skins from flags
    Reply With Quote #4

    Quote:
    Originally Posted by MrPriime View Post
    Do you guys know any website with playermodels ?
    http://csgo.gamebanana.com/skins/cats/8008
    http://csgo.gamebanana.com/skins/cats/7660
    http://csgo.gamebanana.com/skins/cats/8016
    http://csgo.gamebanana.com/skins/cats/8017

    I haven't tried if all of those work but at least server-side category (first link) skins should work.
    __________________
    Strange women lying in ponds distributing swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony.
    VJScope is offline
    CaptainNervous
    Senior Member
    Join Date: Mar 2015
    Location: World
    Old 01-22-2016 , 17:12   Re: [CS:GO] Players skins from flags
    Reply With Quote #5

    Works fine but sometimes this error happens.
    SourceMod 1.8.0.5836
    Code:
    L 01/23/2016 - 00:08:30: [SM] Blaming: playermodelsbyflags.smx()
    L 01/23/2016 - 00:08:30: [SM] Call stack trace:
    L 01/23/2016 - 00:08:30: [SM]   [0] EquipPlayerWeapon
    L 01/23/2016 - 00:08:30: [SM]   [1] Line 207, D:\csgo\csgo\addons\sourcemod\scripting\playermodelsbyflags.sp::GiveBackWeapons()
    __________________
    CaptainNervous is offline
    barvica
    Senior Member
    Join Date: Oct 2014
    Old 02-15-2016 , 05:18   Re: [CS:GO] Players skins from flags
    Reply With Quote #6

    I use cksurf plugin and it doesnt work. I've added everything in downloads.ini and it downloads it successfully, but after putting it in skins config like this, it doesnt show. I've tried default ct and t and also flag "z" on ct and t, neither skin or arms skin wont show up

    "Player_models_by_flags"
    {
    "def-t"
    {
    "model_path" "models/player/custom_player/zombie/romeo_zombie/romeo_zombie.mdl"
    "arms_path" "models/player/custom_player/zombie/romeo_zombie/romeo_zombie_arms.mdl"
    }
    "def-ct"
    {
    "model_path" "models/player/custom_player/zombie/romeo_zombie/romeo_zombie.mdl"
    "arms_path" "models/player/custom_player/zombie/romeo_zombie/romeo_zombie_arms.mdl"
    }
    "z-t"
    {
    "model_path" "models/player/custom_player/zombie/romeo_zombie/romeo_zombie.mdl"
    "arms_path" "models/player/custom_player/zombie/romeo_zombie/romeo_zombie_arms.mdl"
    }
    "z-ct"
    {
    "model_path" "models/player/custom_player/zombie/romeo_zombie/romeo_zombie.mdl"
    "arms_path" "models/player/custom_player/zombie/romeo_zombie/romeo_zombie_arms.mdl"
    }
    }
    barvica is offline
    Lannister
    Veteran Member
    Join Date: Apr 2015
    Old 02-15-2016 , 10:28   Re: [CS:GO] Players skins from flags
    Reply With Quote #7

    I think CKSurf already remplaces all player models this may be the reason why this doesn't work.
    Lannister is offline
    boomix
    Senior Member
    Join Date: May 2015
    Location: Latvia
    Old 04-28-2016 , 17:55   Re: [CS:GO] Players models from flags
    Reply With Quote #8

    Update 1.2

    Made code cleaner, fixed few bugs.
    boomix is offline
    Jcrr
    Senior Member
    Join Date: Jul 2015
    Old 05-20-2016 , 16:47   Re: [CS:GO] Players models from flags
    Reply With Quote #9

    How it would work if i have A and T flag for this config?

    Code:
    "T-ct" 
        { 
             MODEL1
        } 
    "A-ct"
        {
             MODEL2
        }
    I will have MODEL1, MODEL2, it will work random or it wont work?
    __________________

    Jcrr is offline
    barvica
    Senior Member
    Join Date: Oct 2014
    Old 07-16-2016 , 13:48   Re: [CS:GO] Players models from flags
    Reply With Quote #10

    Could anyone fix this plugin so you can use fast dl instead of plugin SM downloader so it automaticly downloads the file from your fast dl link Thanks

    edit: nevermind

    Last edited by barvica; 07-16-2016 at 15:08.
    barvica is offline
    Reply



    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 09:51.


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