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_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
register_cvar( "amx_speed_boost", "1000.0" );
register_clcmd( "say /buyspeed", "CmdBuyspeed" );
g_pspeedCoast = register_cvar( "deathrun_speedcoast", "15000" );
}
public CmdBuyspeed( id ) {
new szMoney, Money;
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(id, szMoney - Money );
entity_set_float(id, EV_FL_maxspeed,240.0 + addSpeed );
client_print(id, print_chat, "%s You have bought speed!", g_szPrefix );
return PLUGIN_HANDLED;
}
else
{
client_print(id, print_chat, "%s You dont have money! ", g_szPrefix );
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
__________________