Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    [Partage] Jailmod COMPLET!


    Recommended Posts

    
    #include <sourcemod>
    #include <cssclantags.inc>
    
    
    
    
    new Handle:g_hVip;
    new Handle:g_hAdmin;
    new Handle:g_hLeader;
    new Handle:g_hPrivate1;
    new Handle:g_hPrivate2;
    
    
    
    
    new String:g_sLeader[64];
    new String:g_sAdmin[64];
    new String:g_sVip[64];
    new String:g_sPrivate1[64];
    new String:g_sPrivate2[64];
    
    
    
    
    
    
    
    
    public Plugin:myinfo = 
    {
    name = "ClanTag Status",
    author = "Steven",
    version = "1.0",
    description = "Modifier les clan tags",
    url = "http://nsnf-clan.net"
    };
    public OnPluginStart()
    {
    HookEvent("player_spawn", PlayerSpawn);
    
    g_hVip = CreateConVar("sm_tm_vip", ".:VIP:. - ", "Tag pour les vip (flag: s)");
    g_hAdmin = CreateConVar("sm_tm_admin", ".:ADMIN:. - ", "Tag pour les admins (flag: a)");
    g_hLeader = CreateConVar("sm_tm_leader", ".:LEADER:. - ", "Tag pour les leaders (flag: t)");
    g_hPrivate1 = CreateConVar("sm_tm_perso1", "Private", "Perso (flag: q)");
    g_hPrivate2 = CreateConVar("sm_tm_perso2", "Private2", "Perso 2 (flag: p)");
    AutoExecConfig(true, "plugin_clantag");
    
    
    GetConVarString(g_hVip, g_sVip, sizeof(g_sVip));
    GetConVarString(g_hAdmin, g_sAdmin, sizeof(g_sAdmin));
    GetConVarString(g_hLeader, g_sLeader, sizeof(g_sLeader));
    GetConVarString(g_hPrivate1, g_sPrivate1, sizeof(g_sPrivate1));
    GetConVarString(g_hPrivate2, g_sPrivate2, sizeof(g_sPrivate2));
    
    
    
    }
    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 (GetUserFlagBits(client) & ADMFLAG_CUSTOM6)				CS_SetClientClanTag(client, g_sLeader);
    	else if (GetUserFlagBits(client) & ADMFLAG_RESERVATION)	CS_SetClientClanTag(client, g_sAdmin);
    	else if (GetUserFlagBits(client) & ADMFLAG_CUSTOM5)		CS_SetClientClanTag(client, g_sVip);
    	else if (GetUserFlagBits(client) & ADMFLAG_CUSTOM3)		CS_SetClientClanTag(client, g_sPrivate1);
    	else if (GetUserFlagBits(client) & ADMFLAG_CUSTOM2)		CS_SetClientClanTag(client, g_sPrivate2);
    	else															CS_SetClientClanTag(client, "[color=#ff0000]TONTAGPOURLESNONFLAGS[/color]");
       }
    }
    

    Edited by alex30555
    Link to post
    Share on other sites
    • Replies 61
    • Created
    • Last Reply

    Top Posters In This Topic

    
    #include <sourcemod>
    #include <cssclantags.inc>
    
    
    
    
    new Handle:g_hVip;
    new Handle:g_hAdmin;
    new Handle:g_hLeader;
    new Handle:g_hPrivate1;
    new Handle:g_hPrivate2;
    
    
    
    
    new String:g_sLeader[64];
    new String:g_sAdmin[64];
    new String:g_sVip[64];
    new String:g_sPrivate1[64];
    new String:g_sPrivate2[64];
    
    
    
    
    
    
    
    
    public Plugin:myinfo = 
    {
       name = "ClanTag Status",
       author = "Steven",
       version = "1.0",
       description = "Modifier les clan tags",
       url = "http://nsnf-clan.net"
    };
    public OnPluginStart()
    {
       HookEvent("player_spawn", PlayerSpawn);
    
       g_hVip = CreateConVar("sm_tm_vip", ".:VIP:. - ", "Tag pour les vip (flag: s)");
       g_hAdmin = CreateConVar("sm_tm_admin", ".:ADMIN:. - ", "Tag pour les admins (flag: a)");
       g_hLeader = CreateConVar("sm_tm_leader", ".:LEADER:. - ", "Tag pour les leaders (flag: t)");
       g_hPrivate1 = CreateConVar("sm_tm_perso1", "Private", "Perso (flag: q)");
       g_hPrivate2 = CreateConVar("sm_tm_perso2", "Private2", "Perso 2 (flag: p)");
       AutoExecConfig(true, "plugin_clantag");
    
    
       GetConVarString(g_hVip, g_sVip, sizeof(g_sVip));
       GetConVarString(g_hAdmin, g_sAdmin, sizeof(g_sAdmin));
       GetConVarString(g_hLeader, g_sLeader, sizeof(g_sLeader));
       GetConVarString(g_hPrivate1, g_sPrivate1, sizeof(g_sPrivate1));
       GetConVarString(g_hPrivate2, g_sPrivate2, sizeof(g_sPrivate2));
    
    
    
    }
    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 (GetUserFlagBits(client) & ADMFLAG_CUSTOM6)                CS_SetClientClanTag(client, g_sLeader);
           else if (GetUserFlagBits(client) & ADMFLAG_RESERVATION)    CS_SetClientClanTag(client, g_sAdmin);
           else if (GetUserFlagBits(client) & ADMFLAG_CUSTOM5)        CS_SetClientClanTag(client, g_sVip);
           else if (GetUserFlagBits(client) & ADMFLAG_CUSTOM3)        CS_SetClientClanTag(client, g_sPrivate1);
           else if (GetUserFlagBits(client) & ADMFLAG_CUSTOM2)        CS_SetClientClanTag(client, g_sPrivate2);
           else                                                            CS_SetClientClanTag(client, "[color=#ff0000]TONTAGPOURLESNONFLAGS[/color]");
       }
    }
    

    Tu peux faire la même chose avec les équipes ? CT - TERRO, donc si possible faudrait 2 tag pour les non flag (un anti-terroriste et un terroriste)

    Link to post
    Share on other sites
    • 1 year later...
    • 7 months later...
    • 3 weeks later...
    • 2 months later...

    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...