Raised This Month: $12 Target: $400
 3% 

forward speed plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AvaStIn
Senior Member
Join Date: Feb 2013
Location: Algeria
Old 10-05-2013 , 07:24   forward speed plugin
Reply With Quote #1

hello guys,i was hoping that someone can help me out, i need a plugin to change the forward speed of player like this:
1- he says: /speed
2- costs 16000$ of money.
3- changes default forward speed from 250.0 Unit/sec to 1000.0 Unit/sec , until he dies, and it comes back normal...
if still dont get it , just ask me , i think its clear , i appreciate anything would help
__________________
Project : Speedrun / Fastrun / CrazySpeed & [FPS CATEGORY]

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

Project : Upgraded Drshop To V6.0

o [||||||||||||||||||||]- 100%
AvaStIn is offline
Old 10-16-2013, 08:05
AvaStIn
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-22-2013 , 04:00   Re: forward speed plugin
Reply With Quote #3

Problems can be :

SERVER CVAR : sv_maxspeed

CLIENT CVARS : cl_forwardspeed , cl_sidespeed , cl_backspeed
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
AvaStIn
Senior Member
Join Date: Feb 2013
Location: Algeria
Old 10-22-2013 , 11:46   Re: forward speed plugin
Reply With Quote #4

yeah u were right ,thx is there anything u can add to the script so it changes the clients cvars , cuz if the didnt change they wontget speed..
Code:
cl_forwardspeed , cl_sidespeed , cl_backspeed
i will be thnkful ^^
__________________
Project : Speedrun / Fastrun / CrazySpeed & [FPS CATEGORY]

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

Project : Upgraded Drshop To V6.0

o [||||||||||||||||||||]- 100%
AvaStIn is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 10-22-2013 , 12:07   Re: forward speed plugin
Reply With Quote #5

Quote:
Originally Posted by AvaStIn View Post
yeah u were right ,thx is there anything u can add to the script so it changes the clients cvars , cuz if the didnt change they wontget speed..
Code:
cl_forwardspeed , cl_sidespeed , cl_backspeed
i will be thnkful ^^
Changing client-side settings without permission is a slow-hack, and also is blocked by valve on updated servers.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Reply


Thread Tools
Display Modes

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 08:51.


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