Raised This Month: $ Target: $400
 0% 

[REQ] Enable/disable command for this plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
erkike93
Member
Join Date: Aug 2013
Old 08-29-2014 , 19:08   [REQ] Enable/disable command for this plugin
Reply With Quote #1

Hello to all people here, i need some help with this plugin that im using right now, it is a random glow for admins, and i want to add a command to enable or disable the glow because some admins get low fps, or dont want to use this, and this will be very helpful if someone can help me to make it, i just need that, a command like /glowon to able the admin to enable the glow or /glowoff to disable.

This is the code that i have:

PHP Code:
#include <amxmodx>   
#include <fun>   

#define FLAG ADMIN_BAN 

#define UserAdmin(%1) (get_user_flags(%1) & FLAG) 

new maxplayers 

public plugin_init() 
{   
    
register_plugin("Admin Glow""1.0""Uknown")   
     
    
maxplayers get_maxplayers()   
     
    
set_task(0.5"GiveAdminsGlow"___"b"

public 
GiveAdminsGlow(id

    for(new 
id 1id maxplayersid++) 
    { 
        if(
is_user_alive(id) && UserAdmin(id)) 
        { 
            
set_user_rendering(id,kRenderFxGlowShell,random_num(0255),random_num(0255),random_num(0255),kRenderNormal,35
        } 
    } 

I have a lit knowledge with scripting, but i can't make it by my self i dont know how, i try to make but it not work for me, so i hope someone with more experience can help me, sorry if this is the wrong section im newbie on this forum.

Last edited by erkike93; 08-29-2014 at 19:09.
erkike93 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 18:01.


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