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

[CsGo]Tags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DragosVI
Junior Member
Join Date: May 2019
Location: Romania
Old 05-06-2020 , 09:32   [CsGo]Tags
Reply With Quote #1

Hi guys..
I have a problem..
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_Steam2g_szSteamID[client], sizeof(g_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_CUSTOM3
        { 
            
CS_SetClientClanTag(client"★ MOD ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_CUSTOM2
        { 
            
CS_SetClientClanTag(client"★ ADMIN+VIP ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_BAN
        { 
            
CS_SetClientClanTag(client"★ ADMIN ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_CUSTOM1
        { 
            
CS_SetClientClanTag(client"★ HELPER+VIP ★"
        } 
        else if(
GetUserFlagBits(client) & ADMFLAG_GENERIC
        { 
            
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"
        } 
    } 

ex:i joint Terrorist team,when i m going ct my tag not exista!
Srry for my bad english.
Good Day.
DragosVI is offline
Zarvan13
Junior Member
Join Date: Apr 2020
Location: Hungary
Old 05-07-2020 , 16:38   Re: [CsGo]Tags
Reply With Quote #2

Aye buddy. Maybe tomorrow I can take a look. Just contact me bellow.
__________________
[CONTACT INFORMATION]
Steam:https://steamcommunity.com/id/zarvan13/
Email: [email protected]
Discord: Zarvan13#1314
Or simply PM me on this forum!
[END]
Zarvan13 is offline
Weetabix
Member
Join Date: Feb 2017
Location: United Kingdom
Old 05-07-2020 , 20:04   Re: [CsGo]Tags
Reply With Quote #3

Check the timer function again. Theres an extra parameter for flags.

PHP Code:
CreateTimer(intervalfuncdataTIMER_REPEAT

Last edited by Weetabix; 05-07-2020 at 20:06.
Weetabix 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 08:18.


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