View Single Post
AvaStIn
Senior Member
Join Date: Feb 2013
Location: Algeria
Old 10-21-2013 , 17:42   Re: forward speed plugin
Reply With Quote #2

i got this plugin , but maxspeed is 400.0 unit/sec it doesnt go any more further , i dunno the problem any help?
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <cstrike>

new PLUGIN_NAME[]     = "Buy Speed"
new PLUGIN_AUTHOR[]     = "unknown"
new PLUGIN_VERSION[]     = "1.0"

new const g_szPrefix[ ] = "[ Deathrun ]";
new 
g_pspeedCoast;


public 
plugin_init() 
{
    
register_pluginPLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR );
    
    
register_cvar"amx_speed_boost""1000.0" );

    
register_clcmd"say /buyspeed""CmdBuyspeed" );

    
g_pspeedCoast  register_cvar"deathrun_speedcoast",   "15000" );

}

public 
CmdBuyspeedid ) {
    
    new 
szMoneyMoney;
    
    new 
Float:addSpeed get_cvar_float"amx_speed_boost" );

    
Money get_pcvar_num(g_pspeedCoast);
    
    
szMoney cs_get_user_money(id);
    
    if(
Money szMoney) {
        
cs_set_user_money(idszMoney Money );

        
entity_set_float(idEV_FL_maxspeed,240.0 addSpeed );

        
client_print(idprint_chat"%s You have bought speed!"g_szPrefix );
        return 
PLUGIN_HANDLED;
    }
    else
    {
        
client_print(idprint_chat"%s You dont have money! "g_szPrefix );
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;

__________________
Project : Speedrun / Fastrun / CrazySpeed & [FPS CATEGORY]

o [
||||||||||||||||||||] - 95%

Project : Upgraded Drshop To V6.0

o [||||||||||||||||||||]- 100%
AvaStIn is offline