Jump to content
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    Comment mettre des skins VIP [HELP]


    mishou
     Share

    Recommended Posts

    Salut à tous,

    aprés avoir installé Skins chooser,

    J'ai réussi a enlever le menu de skin a l'entré du serveur,

    si quelqu'un pourrais m'aider pour que le plugins mette le skin automatiquement, sans choisir pour les VIP.

    (je compte mettre un skin T et un skin CT)

    Merci de votre compréhension,

    Link to comment
    Share on other sites

    Azik stop faire du HS, ce compte est la pour un seul but, Adril et Phobie le savent ;)

    EDIT : Le compte Seven était à un pote IRL et me l'a prêter.

    C'est mon deuxième compte, tout comme toi tu en as deux :)

     

    @Mishou, si tu as un problème au niveau config fait le nous savoir :)

    Link to comment
    Share on other sites

    #include <sdktools>
    
    public Plugin:myinfo = 
    {
       name = "Light Simple Skins",
       author = "Kriax",
       version = "1.0",
    }
    
    public OnMapStart()
    {
       AddFileToDownloadsTable("materials/models/player/kirby/vip/t_phoenix.vmt");
       AddFileToDownloadsTable("materials/models/player/kirby/vip/kirby_phoenix_vip.vtf");
       AddFileToDownloadsTable("materials/models/player/kirby/vip/kirby_phoenix_vip_normal.vtf");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.dx80.vtx");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.dx90.vtx");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.mdl");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.phy");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.sw.vtx");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.vvd");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.xbox.vtx");
    
       AddFileToDownloadsTable("materials/models/player/dvshunter/specialforces/ct_urban.vmt");
       AddFileToDownloadsTable("materials/models/player/dvshunter/specialforces/ct_urban.vtf");
       AddFileToDownloadsTable("materials/models/player/dvshunter/specialforces/ct_urban_glass.vmt");
       AddFileToDownloadsTable("materials/models/player/dvshunter/specialforces/ct_urban_glass.vtf");
       AddFileToDownloadsTable("materials/models/player/dvshunter/specialforces/ct_urban_normal.vtf");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.dx80.vtx");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.dx90.vtx");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.mdl");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.phy");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.sw.vtx");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.vvd");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.xbox.vtx");
    
       PrecacheModel("models/player/dvshunter/specialforces/ct_urban.mdl", true);
       PrecacheModel("models/player/kirby/vip/kirby_vip.mdl", true);
    }
    
    public OnPluginStart()
    {    
       HookEvent("player_spawn", PlayerSpawn);
    }
    
    public Action:PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
    {
       new client = GetClientOfUserId(GetEventInt(event, "userid"));
       if (IsClientInGame(client) && IsPlayerAlive(client))
       {
           if(GetClientTeam(client) == 2)
           {
               SetEntityModel(client, "models/player/kirby/vip/kirby_vip.mdl");
               return Plugin_Handled;
           }
           else if(GetClientTeam(client) == 3)
           {
               SetEntityModel(client, "models/player/dvshunter/specialforces/ct_urban.mdl");
               return Plugin_Handled;
           }
       }
       return Plugin_Handled;
    }
    

     

    Compile ici : http://www.sourcemod.net/compiler.php

     

    Logiquement sa fonctionne :)

     

    Kriax.

    Link to comment
    Share on other sites

    J'ai droit à un bisou !!

     

    #include <sdktools>
    
    public Plugin:myinfo = 
    {
       name = "Light Simple Skins",
       author = "Kriax",
       version = "1.0",
    }
    
    public OnMapStart()
    {
       AddFileToDownloadsTable("materials/models/player/kirby/vip/t_phoenix.vmt");
       AddFileToDownloadsTable("materials/models/player/kirby/vip/kirby_phoenix_vip.vtf");
       AddFileToDownloadsTable("materials/models/player/kirby/vip/kirby_phoenix_vip_normal.vtf");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.dx80.vtx");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.dx90.vtx");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.mdl");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.phy");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.sw.vtx");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.vvd");
       AddFileToDownloadsTable("models/player/kirby/vip/kirby_vip.xbox.vtx");
    
       AddFileToDownloadsTable("materials/models/player/dvshunter/specialforces/ct_urban.vmt");
       AddFileToDownloadsTable("materials/models/player/dvshunter/specialforces/ct_urban.vtf");
       AddFileToDownloadsTable("materials/models/player/dvshunter/specialforces/ct_urban_glass.vmt");
       AddFileToDownloadsTable("materials/models/player/dvshunter/specialforces/ct_urban_glass.vtf");
       AddFileToDownloadsTable("materials/models/player/dvshunter/specialforces/ct_urban_normal.vtf");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.dx80.vtx");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.dx90.vtx");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.mdl");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.phy");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.sw.vtx");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.vvd");
       AddFileToDownloadsTable("models/player/dvshunter/specialforces/ct_urban.xbox.vtx");
    
       PrecacheModel("models/player/dvshunter/specialforces/ct_urban.mdl", true);
       PrecacheModel("models/player/kirby/vip/kirby_vip.mdl", true);
    }
    
    public OnPluginStart()
    {    
       HookEvent("player_spawn", PlayerSpawn);
    }
    
    public Action:PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
    {
       new client = GetClientOfUserId(GetEventInt(event, "userid"));
       if (IsClientInGame(client) && IsPlayerAlive(client) && GetUserFlagBits(client) & ADMFLAG_CUSTOM6)
       {
           if(GetClientTeam(client) == 2)
           {
               SetEntityModel(client, "models/player/kirby/vip/kirby_vip.mdl");
               return Plugin_Handled;
           }
           else if(GetClientTeam(client) == 3)
           {
               SetEntityModel(client, "models/player/dvshunter/specialforces/ct_urban.mdl");
               return Plugin_Handled;
           }
       }
       return Plugin_Handled;
    }
    

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

     Share

    ×
    ×
    • Create New...