AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_user_maxspeed() *SOLVED* (https://forums.alliedmods.net/showthread.php?t=134743)

hornet 08-08-2010 06:11

set_user_maxspeed() *SOLVED*
 
I'm kind of under the impression that this should raise the maximum speed of a player, but also have the doubt that the players acceleration / velocity would need to be also changed, because I've set set_user_maxspeed() higher then the default value and the player is not running faster.
Help please.

Thanks.

ot_207 08-08-2010 06:12

Re: set_user_maxspeed() ?
 
The user does not run faster or does he run faster?

hornet 08-08-2010 06:16

Re: set_user_maxspeed() ?
 
Oh he doesn't.

hornet 08-08-2010 06:29

Re: set_user_maxspeed() ?
 
The user does not run faster* but he should.

sorry.

ot_207 08-08-2010 07:30

Re: set_user_maxspeed() ?
 
Quote:

Originally Posted by hornet (Post 1265239)
The user does not run faster* but he should.

sorry.

You also need to set cl_sidespeed, cl_forwardspeed and cl_backspeed to higher values.

hornet 08-08-2010 07:57

Re: set_user_maxspeed() ?
 
Yeh theres a real hole in my knowledge of changing those kinda vars can you please help me with that?

Devil259 08-08-2010 11:12

Re: set_user_maxspeed() ?
 
PHP Code:

#include <amxmodx>
 
public client_putinserverid )
{
     
client_cmdid"cl_sidespeed 999; cl_forwardspeed 999; cl_backspeed 999" )


Add this in your sma and this should work.

Raddish 08-08-2010 12:10

Re: set_user_maxspeed() ?
 
Quote:

Originally Posted by Devil259 (Post 1265473)
PHP Code:

#include <amxmodx>
 
public client_putinserverid )
{
     
client_cmdid"cl_sidespeed 999; cl_forwardspeed 999; cl_backspeed 999" )


Add this in your sma and this should work.


sv_maxspeed 1000

=/

hornet 08-08-2010 23:39

Re: set_user_maxspeed() ?
 
hmm nah they didnt work either.

I tried using set_pev() I didn't have any luck with that either.
Any other ideas?

Leon M. 08-09-2010 05:42

Re: set_user_maxspeed() ?
 
2 Attachment(s)
Hi,

try this one. This is only a part of a huge plugin. I have removed many functions but this should still work.


All times are GMT -4. The time now is 00:06.

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