Raised This Month: $ Target: $400
 0% 

JailBreak Gang System


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
KoLaCiC
BANNED
Join Date: Mar 2012
Location: BiH
Old 04-10-2012 , 08:20   Re: JailBreak Gang System
Reply With Quote #11

Quote:
Originally Posted by serdar598 View Post
PHP Code:
    public AddAdminMenu_HandleridhMenuiItem )
    {
        if( 
iItem == MENU_EXIT )
        {
            
menu_destroyhMenu );
            
ShowLeaderMenuid );
            return 
PLUGIN_HANDLED;
        }
        
        new 
iAccesshCallbackszData], szName32 ];
        
        
menu_item_getinfohMenuiItemiAccessszDatacharsmaxszData ), szNamecharsmaxszName ), hCallback );
        
        new 
iChosen str_to_numszData );
        
        if( !
is_user_connectediChosen ) )
        {
            
menu_destroyhMenu );
            
ShowLeaderMenuid );
            return 
PLUGIN_HANDLED;
        }
        
        
set_user_gangiChoseng_iGangid ], STATUS_LEADER );
        
        new 
iPlayers32 ], iNum;
        
get_playersiPlayersiNum );
        
        for( new 
0iPlayeriNumi++ )
        {
            
iPlayer iPlayers];
            
            if( 
g_iGangiPlayer ] != g_iGangid ] || iPlayer == iChosen )
                continue;
            
            
ColorChatiPlayerNORMAL"%s ^03%s ^01has been promoted to an admin of your gang."g_szPrefixszName );
        }
        
        
ColorChatiChosenNORMAL"%s ^01You have been promoted to an admin of your gang."g_szPrefix );
        
        
menu_destroyhMenu );
        return 
PLUGIN_HANDLED;
    } 
set_user_gang( iChosen, g_iGang[ id ], STATUS_LEADER );
to
set_user_gang( iChosen, g_iGang[ id ], STATUS_ADMIN );

PHP Code:
    public AddAdminMenu_HandleridhMenuiItem )
    {
        if( 
iItem == MENU_EXIT )
        {
            
menu_destroyhMenu );
            
ShowLeaderMenuid );
            return 
PLUGIN_HANDLED;
        }
        
        new 
iAccesshCallbackszData], szName32 ];
        
        
menu_item_getinfohMenuiItemiAccessszDatacharsmaxszData ), szNamecharsmaxszName ), hCallback );
        
        new 
iChosen str_to_numszData );
        
        if( !
is_user_connectediChosen ) )
        {
            
menu_destroyhMenu );
            
ShowLeaderMenuid );
            return 
PLUGIN_HANDLED;
        }
        
        
set_user_gangiChoseng_iGangid ], STATUS_ADMIN );
        
        new 
iPlayers32 ], iNum;
        
get_playersiPlayersiNum );
        
        for( new 
0iPlayeriNumi++ )
        {
            
iPlayer iPlayers];
            
            if( 
g_iGangiPlayer ] != g_iGangid ] || iPlayer == iChosen )
                continue;
            
            
ColorChatiPlayerNORMAL"%s ^03%s ^01has been promoted to an admin of your gang."g_szPrefixszName );
        }
        
        
ColorChatiChosenNORMAL"%s ^01You have been promoted to an admin of your gang."g_szPrefix );
        
        
menu_destroyhMenu );
        return 
PLUGIN_HANDLED;
    } 
Please edit points to money.
I do not want that be points for buy skill and gang. No no .
I want money to buy skill and buy gang. no points please edit :$
KoLaCiC is offline
Send a message via ICQ to KoLaCiC Send a message via AIM to KoLaCiC Send a message via Skype™ to KoLaCiC
 



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 09:51.


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