Raised This Month: $ Target: $400
 0% 

Can somebody help for footsteps and invisible


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edga85
BANNED
Join Date: Jan 2009
Old 07-03-2009 , 03:48   Re: Can somebody help for footsteps and invisible
Reply With Quote #9

Quote:
Originally Posted by HLM View Post
here it is indented...

PHP Code:
#include <amxmodx> 
#include <hamsandwich> 
#include <fakemeta> 
#include <fakemeta_util> 
#include <fun> 
#include <cstrike> 
static const COLOR[] = "^x04" 
static const CONTACT[] = ""
new maxplayers
new gmsgSayText
new bool:FirstSpawn[33
public 
plugin_init() 

    
register_plugin("VIP""1.0""edgaras85")
    
register_clcmd("say /wantvip","ShowMotd")
    
maxplayers get_maxplayers()
    
gmsgSayText get_user_msgid("SayText")
    
register_clcmd("say""handle_say")
    
register_cvar("amx_contactinfo"CONTACTFCVAR_SERVER)
 
    
RegisterHam (Ham_Spawn"player""Player_Spawn"1
    
register_forwardFM_PlayerPreThink"forward_player_prethink" ); 
    
register_logevent"logevent_round_start"2"1=Round_Start" ); 
    return 
PLUGIN_CONTINUE
}
public 
Player_Spawn(id

    if( !
is_user_alive(id) ) 
    { 
        
FirstSpawn[id] = true 
        
return 
    } 
    
FirstSpawn[id] = false 
    
new menu menu_create("VIP MENU:""vip_menu"); 
    
menu_additem(menu"350 hp""1"ADMIN_LEVEL_H); 
    
menu_additem(menu"Gravitacija""2"ADMIN_LEVEL_H); 
    
menu_additem(menu"+4000$""3"ADMIN_LEVEL_H); 
    
menu_additem(menu ,"Tylus ejimas""4" ADMIN_LEVEL_H); 
    
menu_additem(menu ,"Greitas Begimas""5" ADMIN_LEVEL_H); 
    
menu_additem(menu ,"+200 Armoro""6" ADMIN_LEVEL_H); 
    
menu_additem(menu ,"Granatos""7" ADMIN_LEVEL_H); 
    
menu_additem(menu ,"Nematomumas""8" ADMIN_LEVEL_H); 
 
    
menu_setprop(menuMPROP_EXITMEXIT_ALL); 
    
menu_display(idmenu0); 

public 
vip_menu(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
        { 
            
strip_user_weapons (id
            
fm_set_user_healthid350 );
            
fm_give_itemid"weapon_knife" ); 
            
fm_give_itemid"weapon_usp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
client_print(idprint_center "Tu pasiemiai 350 hp"); 
            
menu_destroy(menu); 
            return 
PLUGIN_HANDLED
        } 
        case 
2
        { 
            
strip_user_weapons (id
            
fm_give_itemid"weapon_knife" ); 
            
fm_give_itemid"weapon_usp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
set_user_gravity id0.75 );
            
client_print(idprint_center "Tu pasiemiai Gravitacija"); 
        } 
        case 
3
        { 
            
cs_set_user_money(idcs_get_user_money(id) + 4000);
            
fm_give_itemid"weapon_knife" ); 
            
fm_give_itemid"weapon_usp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
client_print(idprint_center "Gavai + 4000 pinigu"); 
        } 
        case 
4
        { 
            
set_user_footstepid"1" );
            
fm_give_itemid"weapon_knife" ); 
            
fm_give_itemid"weapon_usp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" );
            
client_print(idprint_center "Pamirsk SHIFT mygtuka"); 
        } 
        case 
5
        { 
            new 
Float:speed get_user_maxspeed(id) + 100.0
            
set_user_maxspeed(id speed);
            
fm_give_itemid"weapon_knife" ); 
            
fm_give_itemid"weapon_usp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
client_print(idprint_center "Begsi greiciau"); 
        } 
        case 
6
        { 
            
fm_set_user_armoridget_user_armorid ) + 200 );
            
fm_give_itemid"weapon_knife" ); 
            
fm_give_itemid"weapon_usp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" );
            
client_print(idprint_center "+200 armoro"); 
        } 
        case 
7:
        {
            
fm_give_itemid"weapon_knife" );
            
fm_give_item id"weapon_hegrenade" );
            
fm_give_item id"weapon_flashbang" );
            
fm_give_item id"weapon_smokegrenade" );
            
fm_give_item id"weapon_flashbang" ); 
            
fm_give_itemid"weapon_usp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
client_print(idprint_center "Tu Pasiemiai Visas Granatas"); 
        } 
        case 
8
        { 
            
fm_set_renderingidkRenderFxNone000kRenderTransAlpha80 );
            
fm_give_itemid"weapon_knife" ); 
            
fm_give_itemid"weapon_usp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
fm_give_itemid"ammo_45acp" ); 
            
client_print(idprint_center "Nematomumas"); 
        }
    }
    
menu_destroy(menu); 
    return 
PLUGIN_HANDLED
}
public 
ShowMotd(id)
{
    
show_motd(id"vip.txt")
}
public 
client_authorized(id)
{
    
set_task(30.0"PrintText" ,id)
}
public 
PrintText(id)
{
    
client_print(idprint_chat"[VIP] write /wantvip and u will see how get VIP and VIP privilegies.")
}
public 
handle_say(id) {
    new 
said[192]
    
read_args(said,192)
    if( ( 
containi(said"who") != -&& containi(said"admin") != -) || contain(said"/vips") != -)
        
set_task(0.1,"print_adminlist",id)
    return 
PLUGIN_CONTINUE
}
public 
client_connect(id

    new 
name[32
    
get_user_info(id"name"name31)
    if(
get_user_flags(id) & ADMIN_LEVEL_H)
        
set_hudmessage(200,0,00.030.6220.025.00.010.11);
    
show_hudmessage(0"Specialus zaidejas %s atejo pazaisti",name)
}
public 
print_adminlist(user
{
    new 
adminnames[33][32]
    new 
message[256]
    new 
contactinfo[256], contact[112]
    new 
idcountxlen
 
    
for(id id <= maxplayers id++)
        if(
is_user_connected(id))
            if(
get_user_flags(id) & ADMIN_LEVEL_H)
                
get_user_name(idadminnames[count++], 31)
            
len format(message255"%s VIP ONLINE: ",COLOR)
        if(
count 0) {
        for(
count x++) {
            
len += format(message[len], 255-len"%s%s "adminnames[x], < (count-1) ? ", ":"")
            if(
len 96 ) {
                
print_message(usermessage)
                
len format(message255"%s ",COLOR)
            }
        }
        
print_message(usermessage)
    }
    else {
        
len += format(message[len], 255-len"No VIP online.")
        
print_message(usermessage)
    }
 
    
get_cvar_string("amx_contactinfo"contact63)
    if(
contact[0]) {
        
format(contactinfo111"%s Contact Server Admin -- %s"COLORcontact)
        
print_message(usercontactinfo)
    }
}
print_message(idmsg[]) {
    
message_begin(MSG_ONEgmsgSayText, {0,0,0}, id)
    
write_byte(id)
    
write_string(msg)
    
message_end()

this code is above my level..
Oh
maybe someone else can help me?
edga85 is offline
Send a message via Skype™ to edga85
 



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


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