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

[CS:S/CS:GO] Admin clan tag v2


Post New Thread Reply   
 
Thread Tools Display Modes
bachusteam
Member
Join Date: Aug 2013
Old 03-16-2015 , 14:47   Re: [CS:S/CS:GO] Admin clan tag v2
Reply With Quote #31

Quote:
Originally Posted by dimult View Post
ok i will try and after that i come here with details. ty

i try too compile the original source and donţt work

ocks.inc(539) : warning 219: local variable "client" shadows a variable at a preceding level
AdminTag_v2_English.sp(16) : error 174: symbol 'Event' is a type and cannot be used as a value
AdminTag_v2_English.sp(17) : error 174: symbol 'Event' is a type and cannot be used as a value
AdminTag_v2_English.sp(1 : warning 213: tag mismatch
AdminTag_v2_English.sp(14) : error 180: function return type differs from prototype. expected 'void', but got 'int'
AdminTag_v2_English.sp(21) : warning 219: local variable "client" shadows a variable at a preceding level
AdminTag_v2_English.sp(24) : warning 213: tag mismatch
AdminTag_v2_English.sp(21) : error 180: function return type differs from prototype. expected 'void', but got 'int'
AdminTag_v2_English.sp(27) : error 021: symbol already defined: "Event"
AdminTag_v2_English.sp(30) : error 010: invalid function or declaration
AdminTag_v2_English.sp(32) : error 010: invalid function or declaration
AdminTag_v2_English.sp(34) : error 010: invalid function or declaration
AdminTag_v2_English.sp(37) : warning 219: local variable "client" shadows a variable at a preceding level
AdminTag_v2_English.sp(29) : warning 203: symbol is never used: "client"
AdminTag_v2_English.sp(27) : warning 203: symbol is never used: "dontBroadcast"
AdminTag_v2_English.sp(27) : warning 203: symbol is never used: "name"

8 Errors.

Last edited by bachusteam; 03-16-2015 at 15:02.
bachusteam is offline
DanesGamers
Junior Member
Join Date: Feb 2015
Old 03-29-2015 , 18:52   Re: [CS:S/CS:GO] Admin clan tag v2
Reply With Quote #32

So i've changed abit in this plugin, (for my needs.. added customflag5 and translated it to what an danish server would call their admingroups)

PHP Code:
#include <sourcemod>
#include <cstrike>

public Plugin:myinfo =
{
    
name "AdminTag",
    
description "Private Plugin",
    
author "KeepCalm",
    
version "2.0",
    
url ""
};


public 
OnPluginStart()
{
    
HookEvent("player_team"EventEventHookMode:1);
    
HookEvent("player_spawn"EventEventHookMode:1);
    return 
0;
}

public 
OnClientPutInServer(client)
{
    
HandleTag(client);
    return 
0;
}

public 
Action:Event(Handle:eventString:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    if (
client)
    {
        
HandleTag(client);
    }
    return 
Action:0;
}

HandleTag(client)


    if (
GetUserFlagBits(client) & ADMFLAG_ROOT
    { 
        
CS_SetClientClanTag(client"[Ejer]"); 
    }
    else
        if (
GetUserFlagBits(client) & ADMFLAG_CUSTOM6)
        { 
            
CS_SetClientClanTag(client"[Head Admin]"); 
        }
        else
                    if (
GetUserFlagBits(client) & ADMFLAG_CUSTOM5)
            {
                            
CS_SetClientClanTag(client"[JUNIOR ADMIN]"); 
                    }
                    else 
                if (
GetUserFlagBits(client) & ADMFLAG_GENERIC)
                { 
                    
CS_SetClientClanTag(client"[ADMIN]"); 
                }
                else
                    if (
GetUserFlagBits(client) & ADMFLAG_RESERVATION)
                    { 
                        
CS_SetClientClanTag(client"[VIP]"); 
                    }


And i was wondering, can anybody compile this?

i've tried with sourcemods compiler and downloaded the entire sourcemod to compile everything (sometimes it fails at compiling because of missing include files)

But nothing worked...

and i gets same error as the guy above. Can somebody compile this?

Last edited by DanesGamers; 03-30-2015 at 07:11. Reason: Changed the code from [quote] to [php]
DanesGamers is offline
indungi
Member
Join Date: Oct 2011
Location: Romania
Old 03-30-2015 , 08:40   Re: [CS:S/CS:GO] Admin clan tag v2
Reply With Quote #33

This plugin is not compatible with latest SM releases ...
__________________
indungi is offline
Dragonidas
AlliedModders Donor
Join Date: Jun 2014
Old 03-30-2015 , 09:27   Re: [CS:S/CS:GO] Admin clan tag v2
Reply With Quote #34

[CS:GO]
working version that i made for my server

flags to get tag :

z [HEAD ADMIN]
t [CHIEF ADMIN]
a [ADMIN]
r [ULTRA VIP]
s [SUPER VIP]
a [VIP]
no flag no tag
Attached Files
File Type: smx AdminTag_v4_Dragonidas.smx (3.2 KB, 408 views)
File Type: sp Get Plugin or Get Source (AdminTag_v4_Dragonidas.sp - 1047 views - 1.5 KB)
__________________

Last edited by Dragonidas; 03-30-2015 at 09:28.
Dragonidas is offline
indungi
Member
Join Date: Oct 2011
Location: Romania
Old 03-30-2015 , 10:11   Re: [CS:S/CS:GO] Admin clan tag v2
Reply With Quote #35

Old version that i've already compiled is working for me to ... but now if you want to compile is not working.
__________________
indungi is offline
secondtimesold
Senior Member
Join Date: Feb 2015
Old 04-02-2015 , 23:20   Re: [CS:S/CS:GO] Admin clan tag v2
Reply With Quote #36

can someone tell me how to recompile this so I can edit the tags
secondtimesold is offline
indungi
Member
Join Date: Oct 2011
Location: Romania
Old 04-03-2015 , 04:59   Re: [CS:S/CS:GO] Admin clan tag v2
Reply With Quote #37

Quote:
Originally Posted by secondtimesold View Post
can someone tell me how to recompile this so I can edit the tags
You can't compile it right now due to sourcemod incompatibility!
__________________
indungi is offline
secondtimesold
Senior Member
Join Date: Feb 2015
Old 04-03-2015 , 12:43   Re: [CS:S/CS:GO] Admin clan tag v2
Reply With Quote #38

well poo.

thanks
secondtimesold is offline
secondtimesold
Senior Member
Join Date: Feb 2015
Old 04-04-2015 , 23:02   Re: [CS:S/CS:GO] Admin clan tag v2
Reply With Quote #39

new working plugin for someone looking for it https://forums.alliedmods.net/showth...88#post2281988
__________________
secondtimesold is offline
parthi
Senior Member
Join Date: Mar 2015
Old 04-11-2015 , 11:46   Re: [CS:S/CS:GO] Admin clan tag v2
Reply With Quote #40

any one can change CHEF ADMIN to SUPER-VIP for FRENCH .smx please ?
parthi 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 01:06.


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