Raised This Month: $ Target: $400
 0% 

whats wrong here?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
omgitsme
Veteran Member
Join Date: Mar 2010
Old 08-09-2010 , 16:56   Re: whats wrong here?
Reply With Quote #9

thanks alot but for some reason, when i spawn i get a awp a grenades. but i took out my hamspawn function
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>

#define PLUGIN "CSDM Vip"
#define VERSION "1.0"
#define AUTHOR "omgitsme"

public plugin_init() 
{
    
register_plugin("CSDM Vip""1.0""Omgitsme")
    
register_clcmd("say /vipmenu""VipMenu")
    
register_clcmd("say /vip""ShowMotd")
}

public 
ShowMotd(id)
{
    
show_motd(id"vip.txt")
}

public 
VipMenu(id)
{
    
    if(!
is_user_alive(id)    )
        return 
PLUGIN_HANDLED
    
if(!(get_user_flags(id) & ADMIN_CHAT)    )
    
client_print(1print_chat"Jus neturite vip statusas! Rasyk /vip")
        return 
PLUGIN_HANDLED
    
    
new menu menu_create ("\rVipMenu""menu_handler");
    
menu_additem(menu"\wAk47 + M4A1 + Deagle""1"0);
    
menu_additem(menu"\wGravity""2"0);
    
menu_additem(menu"\w200hp + 250ap""3"0);
    
menu_additem(menu"\wSpeed""4"0);
    
menu_additem(menu"\wPrimary Weapon + Awp""5"0);
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
    
    return 
PLUGIN_CONTINUE
}  

public 
menu_handler(idmenuitem)
{
    
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
            if(
is_user_alive(id))
                
strip_user_weapons(id)
            
give_item(id"weapon_knife")
            
give_item(id"weapon_deagle")
            
give_item(id"weapon_ak47")
            
give_item(id"weapon_m4a1")
            
client_print(1print_chat"Tu gavai Ak47 + M4A1 + Deagle")
            
menu_destroy(menu)
            return 
PLUGIN_HANDLED
        
}
        case 
2:
        {
            if(
is_user_alive(id))
                
set_pev(idpev_gravity0.5)
            
client_print(1print_chat"Tavo gravity buvo sumazintas!")
        }
        case 
3:
        {
            if(
is_user_alive(id))
                
set_user_health(id200)
            
set_user_armor(id250)
            
client_print(1print_chat"Tu gavai 200hp ir 250 armor!")
        }
        case 
4:
        {
            if(
is_user_alive(id))
                
set_user_maxspeed(id450.0)
        }
        case 
5:
        {
            if(
is_user_alive(id))
                
give_item(id"weapon_awp")
        }
    }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;

__________________
omgitsme is offline
Send a message via Skype™ to omgitsme
 



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


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