Raised This Month: $ Target: $400
 0% 

Speed plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheDemonIII
Junior Member
Join Date: Aug 2005
Old 06-18-2006 , 16:46   Speed plugin
Reply With Quote #1

im trying to make a plugin to set a players speed

i use the function set_user_maxspeed(id, float speed)

it works but when i change weapons, the speed is changed. I guess i understand why this happens because every gun has a different speed you can move at, but does anyone know a way around this?
TheDemonIII is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 06-18-2006 , 16:46  
Reply With Quote #2

Set their speed in the CurWeapon event.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
TheDemonIII
Junior Member
Join Date: Aug 2005
Old 06-18-2006 , 16:47  
Reply With Quote #3

how do i do that?
TheDemonIII is offline
TheDemonIII
Junior Member
Join Date: Aug 2005
Old 06-18-2006 , 16:51  
Reply With Quote #4

anyone know?
TheDemonIII is offline
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 06-18-2006 , 18:59  
Reply With Quote #5

set_user_maxspeed(id, 400)
400 is the spead, you have to add #include <fun> in your plugin header.
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 06-18-2006 , 19:23  
Reply With Quote #6

....


Code:
register_event("CurWeapon", "speed", "be")

Set their speed in "speed"
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
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 08:00.


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