Raised This Month: $ Target: $400
 0% 

disabling footsteps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ng1200
Member
Join Date: May 2005
Old 02-26-2006 , 06:19   disabling footsteps
Reply With Quote #1

hi,
i tryed making footsteps disabled for steves carmod
heres what i've done:
Code:
public client_infochanged(id)     {     if(incar[id] == 1 && is_user_alive(id)) {         set_user_info(id,"model",carmodel[id])         set_user_footsteps(id,0)         return PLUGIN_HANDLED     }     if(incar[id] == 0 && is_user_alive(id)) {         set_user_footsteps(id,1)         return PLUGIN_HANDLED     }     return PLUGIN_HANDLED }
but,
it doesnt work,
actually, it does the opposite
ppl cant hear footsteps, while theyre out of car
ng1200 is offline
Sandurr
Senior Member
Join Date: Aug 2005
Old 02-26-2006 , 06:31  
Reply With Quote #2

u answered yourself....

Code:
public client_infochanged(id)     {     if(incar[id] == 1 && is_user_alive(id)) {         set_user_info(id,"model",carmodel[id])         set_user_footsteps(id,1)         return PLUGIN_HANDLED     }     if(incar[id] == 0 && is_user_alive(id)) {         set_user_footsteps(id,0)         return PLUGIN_HANDLED     }     return PLUGIN_HANDLED }
Sandurr is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-26-2006 , 07:11  
Reply With Quote #3

Code:
set_user_footsteps(id , 1); // make the player's footsteps silent set_user_footsteps(id , 0); // make the player's footsteps normal
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-26-2006 , 07:12  
Reply With Quote #4

it should be the opposite... its confusing...
[ --<-@ ] Black Rose is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-26-2006 , 07:38  
Reply With Quote #5

Just think of it as "set_user_silent_footsteps" and VOLA!
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 02-26-2006 , 08:26  
Reply With Quote #6

Its Voila

---

Anyway, you could have searched the wiki. Its explained quite clear there :

http://www.amxmodx.org/funcwiki.php?go=func&id=130

(btw, I added the comment after this post ;) )
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood 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 20:23.


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