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

[REQ] csgo speed and gravity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BakedPotato
New Member
Join Date: Sep 2016
Old 09-16-2016 , 16:03   [REQ] csgo speed and gravity
Reply With Quote #1

Hello. I need something that will give to flag t speed eg 1.5 and gravity eg 0.8.

I found this plugin : https://forums.alliedmods.net/showthread.php?t=210912 but is not working for me.
I even tried the "thegodking`s" version (posted in the comments) still not working and yes, i have sdkhooks.

Thank you for your time and have a nice day.
BakedPotato is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 09-16-2016 , 16:12   Re: [REQ] csgo speed and gravity
Reply With Quote #2

PHP Code:
public void OnPluginStart() {
    
HookEvent("player_spawn"event_spawnEventHookMode_Post);
}

public 
Action event_spawn(Event eventchar[] namebool dontBroadcast) {
    
int I_Client event.GetInt("userid");

    if (
GetUserFlagBits(I_Client) & ADMFLAG_CUSTOM6) {
        
SetEntPropFloat(I_ClientProp_Send"m_flLaggedMovementValue"1.5);
        
SetEntityGravity(I_Client0.8);
    }

__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
OSWO is offline
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Old 09-16-2016 , 17:45   Re: [REQ] csgo speed and gravity
Reply With Quote #3

Quote:
Originally Posted by OSWO View Post
PHP Code:
public void OnPluginStart() {
    
HookEvent("player_spawn"event_spawnEventHookMode_Post);
}

public 
Action event_spawn(Event eventchar[] namebool dontBroadcast) {
    
int I_Client event.GetInt("userid");

    if (
GetUserFlagBits(I_Client) & ADMFLAG_CUSTOM6) {
        
SetEntPropFloat(I_ClientProp_Send"m_flLaggedMovementValue"1.5);
        
SetEntityGravity(I_Client0.8);
    }

I would not recommend using GetUserFlagBits, have a look into CheckCommandAccess or AdminID class instead.
__________________
xines 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 15:51.


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