set_user_maxspeed
does any1 kno why this doesnt work? o.O
public plugin_init() { register_plugin(PLUGIN,VERSION,AUTHOR) register_event("CurWeapon","Curweapon","be") } public check_weapon(id){ new clip, ammo new weapon = get_user_weapon(id,clip,ammo) switch(weapon) { case CSW_KNIFE: { set_user_maxspeed(id,500.0) } case CSW_C4: { set_user_maxspeed(id,400.0) } case CSW_HEGRENADE: { set_user_maxspeed(id,400.0) } case CSW_SMOKEGRENADE: { set_user_maxspeed(id,400.0) } case CSW_FLASHBANG: { set_user_maxspeed(id,400.0) } case CSW_GLOCK18: { set_user_maxspeed(id,350.0) } case CSW_USP: { set_user_maxspeed(id,350.0) } case CSW_P228: { set_user_maxspeed(id,350.0) } case CSW_DEAGLE: { set_user_maxspeed(id,300.0) } case CSW_FIVESEVEN: { set_user_maxspeed(id,350.0) } case CSW_ELITE: { set_user_maxspeed(id,300.0) } case CSW_XM1014: { set_user_maxspeed(id,250.0) } case CSW_M3: { set_user_maxspeed(id,150.0) } case CSW_SCOUT: { set_user_maxspeed(id,300.0) } case CSW_UMP45: { set_user_maxspeed(id,300.0) } case CSW_MP5NAVY: { set_user_maxspeed(id,300.0) } case CSW_TMP: { set_user_maxspeed(id,350.0) } case CSW_P90: { set_user_maxspeed(id,350.0) } case CSW_SG550: { set_user_maxspeed(id,150.0) } case CSW_M249: { set_user_maxspeed(id,150.0) } case CSW_G3SG1: { set_user_maxspeed(id,150.0) } case CSW_AWP: { set_user_maxspeed(id,150.0) } default: { set_user_maxspeed(id,250.0) } } return PLUGIN_CONTINUE } |
Re: set_user_maxspeed
cuz you're not calling the function.
|
Re: set_user_maxspeed
and how sould i do that?
|
Re: set_user_maxspeed
register_event("CurWeapon","check_weapon", "be")
|
Re: set_user_maxspeed
heh thx :)
|
Re: set_user_maxspeed
Hey, sorry for bumping this old topic, but I really need some help.
Here's my problem, is there anyway to code the plugin like it gives a certant % more speed to all the weapons, so I don't have to change every weapon speed and insert all the stuff to the code |
Re: set_user_maxspeed
try this:
PHP Code:
|
Re: set_user_maxspeed
Try this:
PHP Code:
|
Re: set_user_maxspeed
If I remember, you have to check if maxspeed is not on 1 ( freezetime ) and if player is alive.
Code:
|
Re: set_user_maxspeed
Sylwester: works like a charm +karma
Jon: can't try it, because I just don't know how to insert it to my plugin, but still for your effort +karma |
| All times are GMT -4. The time now is 00:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.