Raised This Month: $ Target: $400
 0% 

Can somebody help for footsteps and invisible


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edga85
BANNED
Join Date: Jan 2009
Old 07-01-2009 , 10:07   Can somebody help for footsteps and invisible
Reply With Quote #1

Hi everyone i need help at this plugin
I have done menu with some help
But when i choose footsteps ( tylus ejimas on my language ) And invisibility ( nematomumas on my language ) Its on next round dont dissapear but lefts for all rounds...
And here is one bug that this menu shows to everybody not admins...
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);
            
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()


Last edited by edga85; 07-03-2009 at 05:22.
edga85 is offline
Send a message via Skype™ to edga85
edga85
BANNED
Join Date: Jan 2009
Old 07-01-2009 , 15:46   Re: Can somebody help for footsteps and invisible
Reply With Quote #2

Pls someone help
edga85 is offline
Send a message via Skype™ to edga85
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 07-02-2009 , 03:58   Re: Can somebody help for footsteps and invisible
Reply With Quote #3

set_user_footsteps(id, 0) taip gal
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
edga85
BANNED
Join Date: Jan 2009
Old 07-02-2009 , 08:57   Re: Can somebody help for footsteps and invisible
Reply With Quote #4

Not helping
edga85 is offline
Send a message via Skype™ to edga85
edga85
BANNED
Join Date: Jan 2009
Old 07-02-2009 , 17:12   Re: Can somebody help for footsteps and invisible
Reply With Quote #5

Why on other threads people quickly helping others on my not ?
edga85 is offline
Send a message via Skype™ to edga85
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-02-2009 , 17:29   Re: Can somebody help for footsteps and invisible
Reply With Quote #6

Quote:
Originally Posted by edga85 View Post
Why on other threads people quickly helping others on my not ?
I personally do not like having to download the file to look at the code. Post the code in php or pawn tags so others can quickly view it.

Edit: Nor do I like trying to read un-indented code.
__________________

Last edited by Bugsy; 07-02-2009 at 18:55.
Bugsy is offline
edga85
BANNED
Join Date: Jan 2009
Old 07-02-2009 , 17:40   Re: Can somebody help for footsteps and invisible
Reply With Quote #7

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", CONTACT, FCVAR_SERVER)
 
RegisterHam (Ham_Spawn, "player", "Player_Spawn", 1) 
register_forward( FM_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(menu, MPROP_EXIT, MEXIT_ALL); 
menu_display(id, menu, 0); 
} 
public vip_menu(id, menu, item) 
{ 
if( item == MENU_EXIT ) 
{ 
menu_destroy(menu); 
return PLUGIN_HANDLED; 
} 
new data[6], iName[64]; 
new access, callback; 
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback); 
 
new key = str_to_num(data); 
switch(key) 
{ 
case 1: 
{ 
strip_user_weapons (id) 
fm_set_user_health( id, 350 );
fm_give_item( id, "weapon_knife" ); 
fm_give_item( id, "weapon_usp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
client_print(id, print_center , "Tu pasiemiai 350 hp"); 
menu_destroy(menu); 
return PLUGIN_HANDLED; 
} 
case 2: 
{ 
strip_user_weapons (id) 
fm_give_item( id, "weapon_knife" ); 
fm_give_item( id, "weapon_usp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
set_user_gravity ( id, 0.75 );
client_print(id, print_center , "Tu pasiemiai Gravitacija"); 
} 
case 3: 
{ 
cs_set_user_money(id, cs_get_user_money(id) + 4000);
fm_give_item( id, "weapon_knife" ); 
fm_give_item( id, "weapon_usp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
client_print(id, print_center , "Gavai + 4000 pinigu"); 
} 
case 4: 
{ 
set_user_footstep( id, "1" );
fm_give_item( id, "weapon_knife" ); 
fm_give_item( id, "weapon_usp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" );
client_print(id, print_center , "Pamirsk SHIFT mygtuka"); 
} 
case 5: 
{ 
new Float:speed = get_user_maxspeed(id) + 100.0; 
set_user_maxspeed(id , speed);
fm_give_item( id, "weapon_knife" ); 
fm_give_item( id, "weapon_usp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
client_print(id, print_center , "Begsi greiciau"); 
} 
case 6: 
{ 
fm_set_user_armor( id, get_user_armor( id ) + 200 );
fm_give_item( id, "weapon_knife" ); 
fm_give_item( id, "weapon_usp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" );
client_print(id, print_center , "+200 armoro"); 
} 
case 7:
{
fm_give_item( id, "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_item( id, "weapon_usp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
client_print(id, print_center , "Tu Pasiemiai Visas Granatas"); 
} 
case 8: 
{ 
fm_set_rendering( id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 80 );
fm_give_item( id, "weapon_knife" ); 
fm_give_item( id, "weapon_usp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
fm_give_item( id, "ammo_45acp" ); 
client_print(id, print_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(id, print_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") != -1 && containi(said, "admin") != -1 ) || contain(said, "/vips") != -1 )
set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public client_connect(id) 
{ 
new name[32] 
get_user_info(id, "name", name, 31)
if(get_user_flags(id) & ADMIN_LEVEL_H)
set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1);
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 id, count, x, len
 
for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_LEVEL_H)
get_user_name(id, adminnames[count++], 31)
len = format(message, 255, "%s VIP ONLINE: ",COLOR)
if(count > 0) {
for(x = 0 ; x < count ; x++) {
len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message[len], 255-len, "No VIP online.")
print_message(user, message)
}
 
get_cvar_string("amx_contactinfo", contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact)
print_message(user, contactinfo)
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
edga85 is offline
Send a message via Skype™ to edga85
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 07-02-2009 , 20:00   Re: Can somebody help for footsteps and invisible
Reply With Quote #8

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..
__________________
+|- KARMA Respectively

HLM is offline
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
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-03-2009 , 05:17   Re: Can somebody help for footsteps and invisible
Reply With Quote #10

PHP Code:
set_user_footstepid"1" ); 
LoL, Should be
PHP Code:
set_user_footstepsid); 
__________________
xPaw is offline
Reply


Thread Tools
Display Modes

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