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

[CS:GO]Player Maxspeed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
G[o]Q
Member
Join Date: Jan 2010
Location: Poland (Malopolska)
Old 09-25-2014 , 17:49   [CS:GO]Player Maxspeed
Reply With Quote #1

How i Can setting up maxspeed for player?

my code:

HTML Code:
speed[client]=GetRandomInt(400,600);
SetEntPropFloat(client, Prop_Data, "m_flMaxspeed", speed[client]);
            
PrintCenterText(client,"you have more speed (+%d)",speed[client]);
and it doesn't work i use it in my roullete plugin and when player get speed bonus then he can't move
G[o]Q is offline
arthurdead
Senior Member
Join Date: Jul 2013
Old 09-25-2014 , 22:24   Re: [CS:GO]Player Maxspeed
Reply With Quote #2

new Float:speed[client]=GetRandomFloat(400.0,600.0);
SetEntPropFloat(client, Prop_Data, "m_flMaxspeed", speed[client]);

PrintCenterText(client,"you have more speed (+%f)",speed[client]);

or

speed[client]=GetRandomInt(400,600);
SetEntPropFloat(client, Prop_Data, "m_flMaxspeed", float(speed[client]));

PrintCenterText(client,"you have more speed (+%d)",speed[client]);

Last edited by arthurdead; 09-25-2014 at 22:31.
arthurdead 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 13:31.


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