Raised This Month: $ Target: $400
 0% 

[SOLVED]set_user_maxspeed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-14-2009 , 10:09   Re: set_user_maxspeed
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <fun>
 
#define PLUGIN "Speed!"
#define AUTHOR "One"
#define VERSION "0.1"
 
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
 
    
register_forward(FM_PlayerPreThink"fwd_PlayerPreThink");
}
 
public 
fwd_PlayerPreThink(id)
{
    if(!
is_user_alive(id))
    {
        return 
PLUGIN_HANDLED;
    }
 
    new 
button pev(idpev_button);
    new 
Float:speed get_user_maxspeed(id);
 
    if((
id) && (button IN_ATTACK2))
    {
        
set_user_maxspeed(idspeed 1300.0);
    }
    return 
PLUGIN_HANDLED;

__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 06-14-2009 at 15:10.
Xellath is offline
 



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 13:56.


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