Raised This Month: $ Target: $400
 0% 

Glow with Adminflag


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SpokY
Senior Member
Join Date: Feb 2009
Location: Darmstadt
Old 02-05-2010 , 13:28   Glow with Adminflag
Reply With Quote #1

Hello Guy's

I have found this Plugin

Code:
#include <amxmodx> 
#include <cstrike> 
#include <fun> 
#include <hamsandwich> 

public plugin_init() 
{ 
    register_plugin("JailBreak Glow Menu", "1.1", "izzle") 
    register_clcmd( "say /glow","JBGlowMenu"); 
    register_clcmd( "say_team /glow","JBGlowMenu"); 
    
    RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1) 
} 

public fw_PlayerSpawn_Post(id) 
{ 
    set_user_rendering(id)    
} 

public JBGlowMenu(id) 
{ 
    if (cs_get_user_team(id) != CS_TEAM_CT || !is_user_alive(id)) 
    {  
        return PLUGIN_HANDLED; 
    } 
    new menu = menu_create("\rJB Glow Menu:", "sub_menu"); 
    
    new players[32], pnum, tempid; 
    new szName[32], szTempid[10]; 
    
    get_players(players, pnum, "a"); 
    
    for( new i; i<pnum; i++ ) 
    { 
        tempid = players[i]; 
        
        if (cs_get_user_team(tempid) != CS_TEAM_T) 
        { 
            continue; 
        } 
        
        get_user_name(tempid, szName, 31); 
        num_to_str(tempid, szTempid, 9); 
        menu_additem(menu, szName, szTempid, 0); 
    } 
    
    menu_display(id, menu); 
    return PLUGIN_HANDLED; 
} 

public sub_menu(id, menu, item) 
{ 
    if( item == MENU_EXIT ) 
    { 
        menu_destroy(menu); 
        return PLUGIN_HANDLED; 
    } 
    
    new data[6], iName[64]; 
    new access, callback; 
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback); 
    
    new tempid = str_to_num(data); 
    new szName[32], szName2[32]; 
    get_user_name(id, szName, 31); 
    get_user_name(tempid, szName2, 31); 
    set_user_rendering(tempid, kRenderFxGlowShell, 255, 140, 0, kRenderNormal, 20) 
    set_hudmessage(0, 255, 0) 
    show_hudmessage(0, "[JBGM] %s gab %s^n einen Freeday und er ist nun am Leuchten!", szName, szName2); 
    
    menu_destroy(menu); 
    return PLUGIN_HANDLED; 
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
have i can make it that only users with for example X adminflag on the users.ini can use this plugin?

Thanks a lot
__________________
xtream.eSports Weil's einfach nur Geil ist !
www.xtream-esports.com
SpokY is offline
Send a message via ICQ to SpokY Send a message via MSN to SpokY
 



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 07:27.


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