AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Speed plugin (https://forums.alliedmods.net/showthread.php?t=29909)

TheDemonIII 06-18-2006 16:46

Speed plugin
 
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?

Kensai 06-18-2006 16:46

Set their speed in the CurWeapon event.

TheDemonIII 06-18-2006 16:47

how do i do that?

TheDemonIII 06-18-2006 16:51

anyone know?

hip_hop_x 06-18-2006 18:59

set_user_maxspeed(id, 400)
400 is the spead, you have to add #include <fun> in your plugin header.

Kensai 06-18-2006 19:23

....


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

Set their speed in "speed"


All times are GMT -4. The time now is 08:00.

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