Raised This Month: $12 Target: $400
 3% 

Solved Electricity Cut


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 07-08-2022 , 09:55   Electricity Cut
Reply With Quote #1

Hello every one QuickDroLLL here today i request a plugin
so the plugin has this functions:
when you type /cut the map light will be darkest and the normal light of map back again after 5 sec
you cannot type /cut again only when map changes i know that the normal light map is 'm' i wan't it when someone type cut it will be z and after 5 sec it will be m again i hope fully understod me.

Last edited by QuickDroLLL; 07-09-2022 at 03:08. Reason: me problem solved
QuickDroLLL is offline
TribalBlood
Member
Join Date: Oct 2020
Old 07-08-2022 , 13:00   Re: Electricity Cut
Reply With Quote #2

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

new bool:Lock_Light;

public 
plugin_init()
{
    
register_plugin("Change_Light""1.0""TribalBlood");
    
register_clcmd("say /cut""Cut_the_lights");
}

public 
Cut_the_lights(id)
{
    if(
Lock_Light == true)
    {
        return 
PLUGIN_HANDLED;
    }

    
engfunc(EngFunc_LightStyle0"a");
    
set_task(5.0"Reset_Light"id);

    return 
PLUGIN_HANDLED;
}

public 
Reset_Light(id)
{
    
engfunc(EngFunc_LightStyle0"m");
    
Lock_Light true;

__________________
My Steam Profile

- Online Rarely -
TribalBlood is offline
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 07-09-2022 , 03:05   Re: Electricity Cut
Reply With Quote #3

Quote:
Originally Posted by TribalBlood View Post
PHP Code:
#include <amxmodx>
#include <fakemeta>

new bool:Lock_Light;

public 
plugin_init()
{
    
register_plugin("Change_Light""1.0""TribalBlood");
    
register_clcmd("say /cut""Cut_the_lights");
}

public 
Cut_the_lights(id)
{
    if(
Lock_Light == true)
    {
        return 
PLUGIN_HANDLED;
    }

    
engfunc(EngFunc_LightStyle0"a");
    
set_task(5.0"Reset_Light"id);

    return 
PLUGIN_HANDLED;
}

public 
Reset_Light(id)
{
    
engfunc(EngFunc_LightStyle0"m");
    
Lock_Light true;

thank you very much just like i wan't
QuickDroLLL is offline
Reply


Thread Tools
Display Modes

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:41.


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