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

    ClanTag.


    Azik

    Recommended Posts

    Ah, ok..

     

    Si sa te donne la motivation STP :)

     

    Ben voila

     

     

    #include <sourcemod>
    #include <cssclantags.inc>
    #include <cstrike>
    
    new Handle:g_T;
    new Handle:g_CT;
    
    new String:g_sT[64];
    new String:g_sCT[64];
    
    public OnPluginStart()
    {
    HookEvent("player_spawn", PlayerSpawn);
    
    g_T = CreateConVar("sm_tag_t", "Citoyens");
    g_CT = CreateConVar("sm_tag_ct", "Gouvernement");
    
    AutoExecConfig(true, "Gestion_Tags");
    
    GetConVarString(g_T, g_sT, sizeof(g_sT));
    GetConVarString(g_CT, g_sCT, sizeof(g_sCT));
    }
    
    public OnClientSettingsChanged(client)
    {
    change_tag(client);
    } 
    
    public Action:PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) 
    {
    change_tag(GetClientOfUserId(GetEventInt(event, "userid")));
    }
    
    public change_tag(client)
    {
       if (IsClientInGame(client))
       { 
     if (GetClientTeam(client) == CS_TEAM_T)  CS_SetClientClanTag(client, g_sT); 
     else
     if (GetClientTeam(client) == CS_TEAM_CT)    CS_SetClientClanTag(client, g_sCT);
       }
    }
    

     

    J'lai testé il marche

    Link to comment
    Share on other sites

    Code rapide si tu en veut un appart =>

     

    #include "cssclantags.inc"
    #include <sdktools>
    
    public Plugin:myinfo = 
    {
       name = "Force Clan tag",
       author = "Triezone",
       description = "Modifie le clan tag des joueurs",
       version = "1.0",
       url = ""
    }
    
    
    public OnPluginStart()
    {
       HookEvent("player_spawn", OnPlayerSpawn, EventHookMode_PostNoCopy);
    }
    
    
    public OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
    {
       new client = GetClientOfUserId(GetEventInt(event, "userid"));
       {
           if ((GetClientTeam(client) == 2) && (GetUserFlagBits(client) == 0))
           CS_SetClientClanTag(client, "Prisonnier |");
       }
       {
           if ((GetClientTeam(client) == 3) && (GetUserFlagBits(client) == 0))
           CS_SetClientClanTag(client, "Gardien |");
       }
    }
    

    Link to comment
    Share on other sites

    Si il a déjà un plugin de clan tag, et qu'il veut un clan tag pour les joueurs sans droits dans chaque team il faut ce code, essaie pas de faire le pro codeur mec, tu vas pas m'apprendre.

     

    Je te demande c'est tout meme si il n'as pas demandé .

     

    Commence pas a prendre la tete , tu le compile (@ Azik )

    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.

    ×
    ×
    • Create New...