Raised This Month: $ Target: $400
 0% 

enabled


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 03-20-2010 , 05:11   enabled
Reply With Quote #1

How do i enabled this ?

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

new g_PluginEnabled
new toggle

public plugin_init( )
{
    if ( !
g_PluginEnabled ) return;
    
register_plugin"PLUGIN" "VERSION""AUTHOR" )
    
register_concmd"lol_toggle""Toggle"_"< 1 | 0 > - Enable | Disable lol")
}

public 
plugin_precache( )
{
    
cvar_toggle register_cvar"sd_on""1" )
    if ( !
get_pcvar_numtoggle ) ) return;
    
g_PluginEnabled true
}

public 
Toggleidlevelcid )
{
    if ( !
cmd_accessidlevelcid) )
    {
        return 
PLUGIN_HANDLED
    
}
 
    new 
arg]
    
read_argv1argcharsmaxarg ) )
 
    if ( 
str_to_numarg ) == g_PluginEnabled )
             return 
PLUGIN_HANDLED;
 
    
set_pcvar_numtogglestr_to_numarg ) )
 
    new 
mapname32 ]
    
get_mapnamemapnamecharsmaxmapname ) )
 
    
server_cmd"changelevel %s"mapname )
 
    return 
PLUGIN_HANDLED;

I want to type lol_toogle to on and off how ?
zombieplague 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 08:37.


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