Raised This Month: $51 Target: $400
 12% 

Problem with speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kubad
Senior Member
Join Date: Sep 2015
Location: Czech Republic
Old 04-10-2016 , 16:24   Problem with speed
Reply With Quote #1

Hello guy one new example playspeed[MAXPLAYERS+1];

and 1 guy have playspeed[client] = 4;

and i need on this 1.4


code:
PHP Code:
stock SetClientSpeed(client,Float:speed)
{
 
SetEntPropFloat(clientProp_Data"m_flLaggedMovementValue"speed);
 return 
0;

Kubad is offline
Michael Shoe Maker
Senior Member
Join Date: Apr 2016
Old 04-10-2016 , 17:28   Re: Problem with speed
Reply With Quote #2

I don't quite understand you.
Michael Shoe Maker is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 04-11-2016 , 10:08   Re: Problem with speed
Reply With Quote #3

You need something like this?
PHP Code:
stock SetClientSpeed(clientFloat:speed
{
 
speed += playspeed[client]/10;
 
SetEntPropFloat(clientProp_Data"m_flLaggedMovementValue"speed);
 return 
0;

or this?
PHP Code:
stock SetClientSpeed(client
{
 new 
Float:speed 1+playspeed[client]/10;
 
SetEntPropFloat(clientProp_Data"m_flLaggedMovementValue"speed);
 return 
0;

__________________

Last edited by Grey83; 04-11-2016 at 10:14.
Grey83 is offline
Kubad
Senior Member
Join Date: Sep 2015
Location: Czech Republic
Old 04-18-2016 , 10:45   Re: Problem with speed
Reply With Quote #4

Quote:
Originally Posted by Grey83 View Post
You need something like this?
PHP Code:
stock SetClientSpeed(clientFloat:speed
{
 
speed += playspeed[client]/10;
 
SetEntPropFloat(clientProp_Data"m_flLaggedMovementValue"speed);
 return 
0;

or this?
PHP Code:
stock SetClientSpeed(client
{
 new 
Float:speed 1+playspeed[client]/10;
 
SetEntPropFloat(clientProp_Data"m_flLaggedMovementValue"speed);
 return 
0;

First Thank you u help me
Kubad 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 19:55.


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