Raised This Month: $ Target: $400
 0% 

set_user_maxspeed() *SOLVED*


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-08-2010 , 06:11   set_user_maxspeed() *SOLVED*
Reply With Quote #1

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.

Last edited by hornet; 08-10-2010 at 03:44.
hornet is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-08-2010 , 06:12   Re: set_user_maxspeed() ?
Reply With Quote #2

The user does not run faster or does he run faster?
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-08-2010 , 06:16   Re: set_user_maxspeed() ?
Reply With Quote #3

Oh he doesn't.
hornet is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-08-2010 , 06:29   Re: set_user_maxspeed() ?
Reply With Quote #4

The user does not run faster* but he should.

sorry.
hornet is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-08-2010 , 07:30   Re: set_user_maxspeed() ?
Reply With Quote #5

Quote:
Originally Posted by hornet View Post
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.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-08-2010 , 07:57   Re: set_user_maxspeed() ?
Reply With Quote #6

Yeh theres a real hole in my knowledge of changing those kinda vars can you please help me with that?
hornet is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 08-08-2010 , 11:12   Re: set_user_maxspeed() ?
Reply With Quote #7

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.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 08-08-2010 , 12:10   Re: set_user_maxspeed() ?
Reply With Quote #8

Quote:
Originally Posted by Devil259 View Post
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

=/
Raddish is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-08-2010 , 23:39   Re: set_user_maxspeed() ?
Reply With Quote #9

hmm nah they didnt work either.

I tried using set_pev() I didn't have any luck with that either.
Any other ideas?
hornet is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 08-09-2010 , 05:42   Re: set_user_maxspeed() ?
Reply With Quote #10

Hi,

try this one. This is only a part of a huge plugin. I have removed many functions but this should still work.
Attached Files
File Type: txt addcom.txt (4.1 KB, 130 views)
File Type: sma Get Plugin or Get Source (adminspeed_addcom.sma - 550 views - 3.9 KB)
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015

Last edited by Leon M.; 08-09-2010 at 05:44.
Leon M. is offline
Reply



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 00:06.


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