Raised This Month: $32 Target: $400
 8% 

[CSGO]Help plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DragosVI
Junior Member
Join Date: May 2019
Location: Romania
Old 03-24-2021 , 06:48   [CSGO]Help plugin
Reply With Quote #1

Hi
i have a problem at a plugin,when i switch team my tag is disable
PHP Code:
#include <chat-processor>
#include <cstrike>

#define PLUGIN_VERSION   "1.0" 

char g_szSteamID[MAXPLAYERS+1][32];

public 
Plugin myinfo = { 
  
name ""
  
author ""
  
description ""
  
version PLUGIN_VERSION
  
url "" 
};

public 
void OnClientPostAdminCheck(int client

    
CreateTimer(10.0GiveTagGetClientUserId(client)) 


public 
Action GiveTag(Handle timerany userid

    
int client GetClientOfUserId(userid
     
    if(
client && IsClientInGame(client)) 
    { 
        
char szSteamID[32
        
GetClientAuthId(clientAuthId_Steam2szSteamIDsizeof(szSteamID)) 
         
        if(
GetUserFlagBits(client) & ADMFLAG_ROOT
        { 
            
CS_SetClientClanTag(client"★ FOUNDER ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_UNBAN)  
        { 
            
CS_SetClientClanTag(client"★ OWNER ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_CUSTOM4
        { 
            
CS_SetClientClanTag(client"★ MOD+VIP ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_CHANGEMAP
        { 
            
CS_SetClientClanTag(client"★ MOD ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_CUSTOM5
        { 
            
CS_SetClientClanTag(client"★ ADMIN+VIP ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_CUSTOM3
        { 
            
CS_SetClientClanTag(client"★ ADMIN ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_CUSTOM1
        { 
            
CS_SetClientClanTag(client"★ HELPER+VIP ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_CUSTOM2
        { 
            
CS_SetClientClanTag(client"★ HELPER ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_CUSTOM6
        { 
            
CS_SetClientClanTag(client"★ VIP ★"
        } 
         
        if(
StrEqual(szSteamID"STEAM_1:0:1234")) 
        { 
            
CS_SetClientClanTag(client"CLAN TAG"
        } 
    } 

srry for my bad english
DragosVI is offline
DragosVI
Junior Member
Join Date: May 2019
Location: Romania
Old 03-24-2021 , 08:24   Re: [CSGO]Help plugin
Reply With Quote #2

Solved!
DragosVI is offline
Reply


Thread Tools
Display Modes

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 11:53.


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