Raised This Month: $ Target: $400
 0% 

[HELP] Compile Error.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 06-29-2009 , 07:33   Re: [HELP] Compile Error.
Reply With Quote #2

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

new PLUGIN[]="Dewys First Plugin"
new AUTHOR[]="SYOPS `dewY*"
new VERSION[]="1.0"

public plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
    
register_clcmd"say /menu""cmdPmenu" );
    
register_clcmd"say_team /menu""cmdPmenu" );
}

public 
cmdPmenuid )
{
    if ( 
is_user_alive id ) )
    {
        
set_task1.0"Pmenu"id )
    }
    else
    {
        
client_print idprint_chat"Try when alive" )
    }
}

public 
Pmenuid )
{
    new 
menu menu_create "Dewys Menu""P_Menu" )
    
    
menu_additem menu"Gimme HEALTH!""1"0)
    
menu_additem menu"Gimme ARMOR!""2"0)
    
menu_additem menu"Gimme STEALTH""3"0)
    
menu_additem menu"Gimme GRAVITY!""4"0)
    
    
menu_setprop menuMPROP_EXITMEXIT_NEVER );
    
menu_display (idmenu)
    return 
PLUGIN_HANDLED;
}

public 
P_Menu idmenuitem )
{
    
    new 
data], iName64 ], accesscallback;
    
    
menu_item_getinfo menuitemaccessdata5iName63callback )
    new 
key str_to_num data )
    
    switch ( 
key )
    {
        case 
1:
        { 
            
set_user_health id200 )
            
client_print idprint_chat"FUCK YEAH 200HEALTH!" );
        }
        case 
2:
        { 
            
set_user_armor id200 )
            
client_print idprint_chat"FUCK YEAH 200ARMOR!" );
        }
        case 
3:
        {
            
set_user_rendering idkRenderFxGlowShell000kRenderTransAlpha45 )
            
client_print idprint_chat"FUCK YEAH STEALTH!" );
        }
        case 
4:
        {
            
set_user_gravityid1.0 200 )
            
client_print idprint_chat"FUCK YEAH LOW GRAV!" );
        }
    }

__________________
alan_el_more 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 15:38.


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