Raised This Month: $ Target: $400
 0% 

nO clip.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vechta
Veteran Member
Join Date: Jun 2010
Old 07-30-2010 , 08:13   Re: nO clip.
Reply With Quote #1

show whole code
Vechta is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 07-30-2010 , 08:30   Re: nO clip.
Reply With Quote #2

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

public plugin_init()
{
    
register_clcmd"say /vipmenu""VIPMenu" );
    
register_clcmd"say_team /vipmenu""VIPMenu" );
}

public 
VIPMenuid )
{
    new 
vip_menu menu_create"\rVip meniu:""menu_handler" );
    
menu_additemvip_menu"\wMax health and Ap""1");
    
menu_additemvip_menu"\wGive USP""2");
    
menu_additemvip_menu"\wLow gravity""3"0);
    
menu_additemvip_menu"\rNo clip!""4"0);
    
menu_additemvip_menu"\g+2500 money!""5"0)
    
    
menu_setpropvip_menuMPROP_EXITMEXIT_ALL );
    
menu_displayidvip_menu);
}

public 
menu_handleridmenuitem )
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroymenu );
        return 
PLUGIN_HANDLED;
    }
    new 
data[6], iName[64];
    new 
accesscallback;
    
    
menu_item_getinfomenuitemaccessdata,5iName63callback );
    new 
key str_to_numdata );
    switch( 
key )
    {
        case 
1:
        {
            if( 
is_user_aliveid ) )
            {
                
set_user_healthid255 ); //Sets health of id to 150
                
set_user_armorid255 ); //Sets armor of id to 200
            
}
        }
        case 
2:
        {
            if( 
is_user_aliveid ) )
            {
                
give_itemid"weapon_usp" ); //Gives id a USP
                
give_itemid"ammo_45acp" ); //Gives id USP ammo
            
}
        }
    case 
3:
    {
        if( 
is_user_aliveid ) )
        {
            
set_user_gravityid0.6 );
        }
    case 
4:
    {
            if(
is_user_alive(id))
            {
            
set_user_noclip(id1);
            
set_task(5.0"reset_noclip"id);
            }    
    }

    public 
reset_noclip(id)
    {
            if(
is_user_alive(id))
            
set_user_noclip(id0);
    }  
    case 
5:
    {
        if( 
is_user_aliveid ) )
        {
        
cs_set_user_money(idcs_get_user_money(id) + 2500);
        }
    }    
    }
    
    
menu_destroymenu );
    return 
PLUGIN_HANDLED;

zirualas is offline
Send a message via Skype™ to zirualas
Reply



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 00:18.


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