Raised This Month: $ Target: $400
 0% 

Changing player movement speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PWA
Junior Member
Join Date: May 2010
Old 06-01-2010 , 08:43   Re: Changing player movement speed
Reply With Quote #1

PHP Code:
new cvar_speed 
At the top
PHP Code:
    register_clcmd("say_team /speed""give_speed")
    
cvar_speed register_cvar"a_speed""400.0" )
    
server_cmd"sv_maxspeed 600.0" ); 
@ plugin_int

and down example you code

PHP Code:
public give_speed(id)
{
set_user_maxspeedidget_pcvar_floata_speed ) );
client_print(idprint_chat"%s You got speed!")
    
    return 
PLUGIN_HANDLED

thats all. x)
PWA is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 06-01-2010 , 09:08   Re: Changing player movement speed
Reply With Quote #2

Quote:
Originally Posted by PWA View Post
PHP Code:
  server_cmd"sv_maxspeed 600.0" 
First fail
Quote:
Originally Posted by PWA View Post
PHP Code:
client_print(idprint_chat"%s You got speed!"
Second Fail.

first . Check in this line
PHP Code:
client_print(idprint_chat"%s You got speed!"
  • Where are you getting the name from the player ?
  • You need check the user is alive.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
macas5
Member
Join Date: Aug 2008
Location: Lithuania
Old 06-01-2010 , 10:14   Re: Changing player movement speed
Reply With Quote #3

Quote:
Originally Posted by PWA View Post
PHP Code:
new cvar_speed 
At the top
PHP Code:
    register_clcmd("say_team /speed""give_speed")
    
cvar_speed register_cvar"a_speed""400.0" )
    
server_cmd"sv_maxspeed 600.0" ); 
@ plugin_int

and down example you code

PHP Code:
public give_speed(id)
{
set_user_maxspeedidget_pcvar_floata_speed ) );
client_print(idprint_chat"%s You got speed!")
    
    return 
PLUGIN_HANDLED

thats all. x)

I tried to make this too, but i get no difference again. Maybie you dont understand my question? I wanna to know how to increase speed just like in amx_super. All i want to differ from amx_super is to that i can configure how much increase speed
macas5 is offline
Send a message via Skype™ to macas5
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 05:19.


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