Raised This Month: $ Target: $400
 0% 

set_user_maxspeed [Help]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CaTaLinU
Junior Member
Join Date: Jun 2011
Old 06-25-2011 , 11:54   set_user_maxspeed [Help]
Reply With Quote #1

i have used set_user_maxspeed(id, 0.0) for a VIP plugin
it works the speed , but when i change the weapon , my speed it comes to normal
please help me
CaTaLinU is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-25-2011 , 12:17   Re: set_user_maxspeed [Help]
Reply With Quote #2

Hook CurWeapon event and set speed again.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 06-25-2011 , 12:31   Re: set_user_maxspeed [Help]
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
Hook CurWeapon event and set speed again.
Better with Ham.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 06-26-2011 , 03:29   Re: set_user_maxspeed [Help]
Reply With Quote #4

Quote:
Originally Posted by bibu View Post
Better with Ham.
dude, do you have a link for that? never heard of it before.
__________________
jc980 is offline
Old 06-26-2011, 03:58
fysiks
This message has been deleted by fysiks. Reason: umm, . . .
CaTaLinU
Junior Member
Join Date: Jun 2011
Old 06-26-2011 , 01:44   Re: set_user_maxspeed [Help]
Reply With Quote #6

but how?
CaTaLinU is offline
CaTaLinU
Junior Member
Join Date: Jun 2011
Old 06-26-2011 , 04:51   Re: set_user_maxspeed [Help]
Reply With Quote #7

can somewone help me with de script codes please ?
CaTaLinU is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 06-26-2011 , 05:08   Re: set_user_maxspeed [Help]
Reply With Quote #8

Something like this:

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

#define PLUGIN    "Speed"
#define AUTHOR    "joaquimandrade"
#define VERSION    "1.0"

new Ham:Ham_Player_ResetMaxSpeed Ham_Item_PreFrame

new maxSpeedFactorCvar 

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Player_ResetMaxSpeed,"player","playerResetMaxSpeed",1)
    
    
maxSpeedFactorCvar register_cvar("maxspeed_factor","50.0")
}

public 
playerResetMaxSpeed(id)
{
    static 
Float:maxspeed
    pev
(id,pev_maxspeed,maxspeed)
    
    if(
maxspeed != 1.0 /*&& NeedsSpeed(id) */)
    {
        
set_pev(id,pev_maxspeed,maxspeed get_pcvar_float(maxSpeedFactorCvar))
    }

You can read here more about it:

http://forums.alliedmods.net/showthr...t=94331&page=1
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 23:25.


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