Raised This Month: $ Target: $400
 0% 

[ Solved ]switch string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 01-09-2015 , 12:52   [ Solved ]switch string
Reply With Quote #1

How to ?
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

#define ADMIN_KICK_RANK "Basic Moderator"
#define ADMIN_BAN_RANK "Co Moderator"

#define GetPlayerBits(%1,%2)    ( %1 &     1 << ( %2 & 31 ) )

new g_Adminrank[20],
    
i_xtrem

public plugin_init() {
        
register_plugin(PLUGINVERSIONAUTHOR)
        
register_clcmd("say test","Just_try")
}
public 
client_connect(id) {
    
    new 
szName[32]
    
get_user_name(id,szName,charsmax(szName))
    if(
GetPlayerBits(id,i_xtrem)){
        
        if(
check_flg(id,ADMIN_KICK)){
            
                
g_Adminrank ADMIN_KICK_RANK

        
}

        else if (
check_flg(id,ADMIN_KICK))
        {
                
g_Adminrank ADMIN_BAN_RANK
        
}
    }
}
public 
Just_try(id){
    
/*
    switch(g_Adminrank){
        case '':
        //  Nothing yet :v
        
    }
    */
}
stock check_flg(idFLAG
{
    return (
get_user_flags(id) & FLAG)


Last edited by Freezo Begin; 01-09-2015 at 16:26.
Freezo Begin is offline
 



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 15:23.


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