AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_user_footsteps not work (https://forums.alliedmods.net/showthread.php?t=130597)

mati009988 06-25-2010 13:00

set_user_footsteps not work
 
Hi!
When i use set_user_maxspeed(id, 1.7);
set_user_footsteps(id, 1) with this speed not work.
How to fix it?

JaGareN 06-25-2010 13:34

Re: set_user_footsteps not work
 
PHP Code:

set_user_footsteps(id1//can hear player steps
 
set_user_footsteps(id0//cant hear player steps 

I dont understand what you really want to do.

mati009988 06-25-2010 13:42

Re: set_user_footsteps not work
 
I inserted the xp mod class in which character has to be fast and you can not hear the steps.
When i set maxspeed to 1.7 command set_user_footsteps(id, 1) not work.
I still hear the steps

Alka 06-25-2010 13:44

Re: set_user_footsteps not work
 
Use set_user_footsteps(id, 0); ?

GXLZPGX 06-25-2010 14:10

Re: set_user_footsteps not work
 
Quote:

Originally Posted by JaGareN (Post 1219610)
PHP Code:

set_user_footsteps(id1//can hear player steps
 
set_user_footsteps(id0//cant hear player steps 

I dont understand what you really want to do.

Other way around.

From the fun.inc file:

PHP Code:

/* Gives player silent footsteps.
* if set = 0 it will return footsteps to normal */
native set_user_footsteps(idset 1); 


mati009988 06-25-2010 14:17

Re: set_user_footsteps not work
 
I tried 1 and 0 - does not work but I found [INC] Fakemeta Utilities ready to be the AMXX default and it worked.

JaGareN 06-25-2010 19:18

Re: set_user_footsteps not work
 
Quote:

Originally Posted by GXLZPGX (Post 1219641)
Other way around.

From the fun.inc file:

PHP Code:

/* Gives player silent footsteps.
* if set = 0 it will return footsteps to normal */
native set_user_footsteps(idset 1); 


it works fine for me one i use set_user_footsteps(id, 1);

JaGareN 06-25-2010 19:19

Re: set_user_footsteps not work
 
Quote:

Originally Posted by mati009988 (Post 1219648)
I tried 1 and 0 - does not work but I found [INC] Fakemeta Utilities ready to be the AMXX default and it worked.

Are you sure that you had #include <fun> at the top of your plugin?

grimvh2 06-25-2010 19:30

Re: set_user_footsteps not work
 
Quote:

Originally Posted by JaGareN (Post 1219610)
PHP Code:

set_user_footsteps(id1//can hear player steps
 
set_user_footsteps(id0//cant hear player steps 

I dont understand what you really want to do.

Quote:

Originally Posted by GXLZPGX (Post 1219641)
Other way around.

From the fun.inc file:

PHP Code:

/* Gives player silent footsteps.
* if set = 0 it will return footsteps to normal */
native set_user_footsteps(idset 1); 


Im reading this at the documentation :

set_user_footsteps - Gives player silent footsteps if set is 1.

Anyway, I have had problems with this to. Try both. If both does'nt work theres something wrong with ur code. (then post the code)

Kreation 06-25-2010 20:14

Re: set_user_footsteps not work
 
Quote:

Originally Posted by mati009988 (Post 1219648)
I tried 1 and 0 - does not work but I found [INC] Fakemeta Utilities ready to be the AMXX default and it worked.



All times are GMT -4. The time now is 14:47.

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